diff options
| author | 2024-06-07 12:07:55 +0000 | |
|---|---|---|
| committer | 2024-06-12 17:37:36 +0000 | |
| commit | ddcac4038b8b18e291d3b02603e4fdd6c6c274da (patch) | |
| tree | 98a94be66b9ac0a5d3f1daa0c6bd3d538c1cf50b /libs/androidfw/StringPool.cpp | |
| parent | 1dba6d8e1abac3f1f8c53a5dbcae3b6854004fa5 (diff) | |
Split DesktopModeWindowDecoration relayout into two stages.
The idea here is to delay ViewHost (SurfaceControlViewHost) creation in
WindowDecoration#relayout() to avoid blocking the animation that will be
posted from TransitionPlayer.
We split WindowDecoration#relayout() in two:
1. View / Surface / Transaction updates.
2. SCVH creation / VRI creation
To delay stage 2 here we simply repost it to the shell-main thread with
a 0ms delay.
We should only split the two stages for app handles; for app headers
it's important to
1. show the header whenever the task/window is visible
2. keep transactions and ViewHost-draw in sync for resize events
Test: WMShellUnitTests
Bug: 346316691
Flag: com.android.window.flags.enable_desktop_windowing_mode
Change-Id: Id1f76cb106e2f9152f4d52c682829fffe53bd026
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions