summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2019-12-03 17:36:12 -0800
committer Vishnu Nair <vishnun@google.com> 2019-12-03 17:36:51 -0800
commitefc42e2badd2be4e3404cc16619dd3d85d37a7e7 (patch)
treeda1d92a15c247d641dd99c7da6309c680bd2049e /libs/gui/BufferQueueThreadState.cpp
parenta3c5d2326e731dfb3b708001fa639d7a0eaa4c1c (diff)
Fix SurfaceControl#captureLayers when the layer is boundless
- Return an error if the client tries to screenshot a boundless layer without specifying a crop. Otherwise the client will get a screenshot of 0x0. - Use the crop in addition to the buffer size when determining the bounds of the captured layer. This will enable us to capture container layers and color layers that have a crop specified. Fixes: 141326137 Test: atest SurfaceFlinger_test Test: go/wm-smoke Change-Id: Ibba4c01ad2d6739caee0d85b8d9c2d236fbf0ce0
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions