summaryrefslogtreecommitdiff
path: root/opengl/libagl/TextureObjectManager.cpp
diff options
context:
space:
mode:
author chaviw <chaviw@google.com> 2019-04-30 16:45:12 -0700
committer chaviw <chaviw@google.com> 2019-05-08 12:34:19 -0700
commit93df2ea991d6f9c5c64280ac9947e44653d61fbf (patch)
tree94f4cb874aef7b62f930988186ff2b98ef9e62c0 /opengl/libagl/TextureObjectManager.cpp
parent9d41bd7c39725289c4e996654105eb76c13bd8d8 (diff)
Added captureScreen function for displayId or layerStack
Previously, screencap shell command could accept a display id as an argument. It would use the id to look up information about the display (displayToken, orientation, colorMode) by making requests into SurfaceFlinger. Since those requests only worked for physical display ids, screencap didn't work to capture virtual displays. Instead of adding new methods to look up display information for a virtual display, this change just adds a new captureScreen function in SurfaceFlinger that accepts a displayId or layerStack and handles getting the default info for the requested display. This works for both physical and virtual displays. Test: adb shell screencap -d <layerStack for virt display> Fixes: 130974213 Change-Id: I24b7558c973a057414c6b4f81ab1d60152fff38d
Diffstat (limited to 'opengl/libagl/TextureObjectManager.cpp')
0 files changed, 0 insertions, 0 deletions