summaryrefslogtreecommitdiff
path: root/libs/hwui/AutoBackendTextureRelease.cpp
diff options
context:
space:
mode:
author Kevin Chyn <kchyn@google.com> 2023-06-12 21:40:36 +0000
committer Kevin Chyn <kchyn@google.com> 2023-06-14 19:01:14 +0000
commit32f5bd101a4606867bca7dc027e3af2f913f0a80 (patch)
treeb10d34ef6a5dc158b353bf50b3052f32b6cae0ac /libs/hwui/AutoBackendTextureRelease.cpp
parentb3ea50636a8c0429f67b64aec383d0da06889a1a (diff)
Transform displayMetrics if needed
Display#getRotation returns ROTATION_0 for displays that are not active. Display#getRealMetrics relies on rotation to flip width/height when the display is rotated. This results in incorrect metrics being reported from getRearDisplayMetrics() when the rear display is off and the device is rotated. This CL adjusts the rear display metrics so that they are reflective of the actual device rotation. Bug: 281952366 Test: atest WindowAreaComponentImplTests Test: Run CTS tests starting in different initial orientations Change-Id: I0b60039217f706b7829550d21c4f883778ca1f6d
Diffstat (limited to 'libs/hwui/AutoBackendTextureRelease.cpp')
0 files changed, 0 insertions, 0 deletions