summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2023-02-01 16:47:05 +0800
committer Riddle Hsu <riddlehsu@google.com> 2023-02-02 06:35:49 +0000
commita8b5e7bd893c21040dabe8f12deb5dd60d3d85c2 (patch)
tree406b3ed7b3cb3cec7596415e1861b5252c02c54b /libs/androidfw/AttributeResolution.cpp
parente37a7d5e0c4e2604904409a3328172257882f52f (diff)
Avoid changing resolution by display mode when animating
There was a logic to use default refresh rate when animating (e.g. default is high refresh rate, but app requested low refresh rate). But since display mode can also affect display size, if the mode triggers the size change when animating, the animation may be interrupted or canceled. So it is better to keep the current mode, and the mode will be updated on the window traversal after the animation is finished. Also do not set display properties when display is seamless rotating, otherwise there will be obvious flickering because there won't be screenshot to cover the resolution change. Fixes: 238771010 Bug: 255850221 Bug: 267365057 Test: RefreshRatePolicyTest#testAnimatingAppOverridePreferredModeId Change-Id: I5b3ddbc8278a95b4c5239812b2c4a293775c740a Merged-In: I5b3ddbc8278a95b4c5239812b2c4a293775c740a
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions