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
Loading
Please register or sign in to comment