summaryrefslogtreecommitdiff
path: root/opengl/libagl/BufferObjectManager.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2019-03-15 12:48:54 -0700
committer Vishnu Nair <vishnun@google.com> 2019-03-18 21:10:57 +0000
commitc652ff885e5e654a13a4c7b8f5c1575f96f88033 (patch)
treea5d4f256872de32036b1219badda65df6d168125 /opengl/libagl/BufferObjectManager.cpp
parent65d807025e4f869c416c7338325e1034a25299f5 (diff)
SF: Handle buffer scale transforms when calculating layer geometry
In addition to layer transforms, buffer scale transform applied to a layer should be applied to all its children. This is to ensure WM can treat child surfaces as pixels in the parent surface. Current bounds calculations is based on the cropped parent bounds in parent layer space and its effective transform. This breaks because if the parent buffer has a scale transform, the parent bounds passed on to the child already has the buffer scale transform applied to it. To fix this, we undo the scale transform on the cropped parent bounds before passing it on to its children for cropping. Fixes: 127368943 Test: atest SurfaceFlinger_test Test: go/wm-smoke Change-Id: I17966d08b98fbfbf44538cab0a95c9e78b23e11e
Diffstat (limited to 'opengl/libagl/BufferObjectManager.cpp')
0 files changed, 0 insertions, 0 deletions