summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2024-02-06 15:13:02 +0000
committer Riddle Hsu <riddlehsu@google.com> 2024-02-07 16:44:26 +0000
commitd896230f35a149d6ddd343cb491bd083814f453b (patch)
tree61691497cad6d5d338b9151ae70718eb2caa7cdf /libs/hwui/FrameInfoVisualizer.cpp
parentb872b297fe0252e69d42f2f0014adb3a417e7493 (diff)
Preserve decor insets cache if screen is not turned on
Currently, the steps of display switch could be: 1. Awake 2. Transition 3. Screen on fully The order of 2 and 3 is not always the same. The condition "mDisplayContent.isSleeping()" depends on 1. So to avoid the cache from being cleared too early which may cause additional display configuration changes, preserve the cache until 2+3 is done rather than 1+2. Remove the validator after transition because it can be called before the insets provider windows update new layout, then it doesn't really help to validate but trigger extra configuration changes. Bug: 266197298 Test: DisplayPolicyTests#testSwitchDecorInsets Change-Id: Iab5fbeb8685a306d5e57c5d4923cf7ad6ed0f454
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions