Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7c5646f1 authored by John Reck's avatar John Reck
Browse files

Adjust crop to account for child scaling

The computed crop is in view-relative domain, but we need
it to be in surface-relative domain since that's what
surfaceflinger is speaking. So adjust the crop by the scale
from surfaceWidth/Height to the RenderNode's width/height

Bug: 298621623
Flag: com.android.graphics.hwui.flags.clip_surfaceviews
Test: HwAccelerationTest demo & atest CtsUiRenderingTestCases
Change-Id: I9d5908c2ca2c6b6331c8f35f658783ab3b2fe6f1
parent a8ef53cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment