diff options
| author | 2022-08-10 23:49:53 +0800 | |
|---|---|---|
| committer | 2022-08-12 19:11:28 +0800 | |
| commit | 213fab27f67e23ba86fcf41aa29c3ad36a4deeeb (patch) | |
| tree | b710d97958e6f8f5cbb3000c6b6af4c381cc4cdc /libs/androidfw/StringPool.cpp | |
| parent | 9de781b8a4549ed0a2477959bf8c60ae47325a74 (diff) | |
Defer rotation change while running display change transition
This aligns the behavior of shell transition with legacy transition.
The rotation change will be skipped if there is a display change
transition. And then after the transition is finished, check again
if there is still a change to send.
The benefits:
1. If the new transition will cancel previous transition (current
behavior), it can avoid jump cut that the display transition
will go to the end state directly.
2. If the new transition will be queued, it may avoid unnecessary
temporal states change from preempting CPU with animation.
3. It may make some tests stabler that the sync state and async
rotation controller won't need to worry about crossing transition
if the tests request changing various rotations in a short time.
Also optimize WMS#updateRotationUnchecked a bit, which eliminates an
unnecessary surface placement if nothing is changed.
Bug: 234585256
Bug: 209920544
Test: AppConfigurationTests
Change-Id: I6a0e9ae7449dc361998e1f8066a76dd4647ae0b0
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions