commit | 7c5646f1898fd14114644e22f657edde866e8e01 | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Wed Oct 30 11:45:36 2024 -0400 |
committer | John Reck <jreck@google.com> | Thu Oct 31 19:41:07 2024 +0000 |
tree | 59739487ad55675d1847cc6b1df484673e23942a | |
parent | a8ef53cc8b3318645ece18b249739d47587c41ab [diff] |
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