summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Daniel Norman <danielnorman@google.com> 2022-09-26 10:11:15 -0700
committer Daniel Norman <danielnorman@google.com> 2022-09-26 17:40:41 +0000
commit3c44c6926b8f81b075a15b887110b94694b3164d (patch)
tree7caa3c94b31b6a72ea367682893a3ea8ba78d379 /libs/androidfw/AssetsProvider.cpp
parentbdf75500ffc52ceb25bd245e11be1e9898be54e8 (diff)
Adds back using WindowState for magnification letterbox bounds.
This is a partial revert of commit 35280c1dc4e9777d41d56f8a2cd991a577d3b7c8. Magnification bounds still use WindowStates for its window iteration instead of InputWindowHandles, so that change shouldn't have fully removed WindowState letterbox bounds handling yet. This change also includes a fix for the bounds calculation: the previous logic assumed that the letterbox insets were negative instead of positive. This new version reverses that assumption. Example bounds for an app in landscape mode, letterboxed to the center of the screen: app bounds = Rect(663, 0 - 1677, 1080) letterbox bounds = SkRegion((0,0,663,1080)(1677,0,2340,1080)) Bug: 248059823 Test: use magnification on a letterboxed app Test: log app & letterbox bounds, ensure they match expected values Change-Id: Ic77474c416d0e7097428ea0303302958701e8387
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions