summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimationUtil.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2023-05-10 15:10:45 +0000
committer Riddle Hsu <riddlehsu@google.com> 2023-05-11 17:23:23 +0000
commit79e9167e93e2c60ca679489839db36089d92600a (patch)
tree045244483123327f503dc98d571f6a1789e84628 /cmds/bootanimation/BootAnimationUtil.cpp
parent1c5290f25c2d9e790453fb012244d2e61891e23c (diff)
Cache decor insets for display switch
In general this can reduce the amount of display configuration change from 2~4 times to 1 when switching physical display, e.g. fold/unfold. The multiple configuration changes are from the insets provider windows that change their provided insets size which can affect display configuration. Or even the windows can be added or removed that also triggers the change. The concept: 1. The first time fold->unfold: Cache folded insets. Still perform multiple config changes to calculate unfold. 2. Unfold->fold: The decor insets in folded state is known, use it directly. Cache unfolded insets. 3. Fold->unfold: Cached unfolded insets is available, similar as 2. Bug: 266197298 Test: DisplayPolicyTests#testSwitchDecorInsets Change-Id: Icb832bad8c6a7412b6fc0ecba318d2034681d3f7
Diffstat (limited to 'cmds/bootanimation/BootAnimationUtil.cpp')
0 files changed, 0 insertions, 0 deletions