diff options
| author | 2025-03-07 12:36:52 -0800 | |
|---|---|---|
| committer | 2025-03-07 14:58:42 -0800 | |
| commit | 70a58b70fa136a10a0790976c572c4f87ffcdd7d (patch) | |
| tree | 809c2fd707939d5daee9fae1f61df4c9bedd2ede /libs/androidfw/AssetsProvider.cpp | |
| parent | ff56fe9985c255cf78977846ef98ce814e5e9768 (diff) | |
Enforce at least a minimal size change for resize
In PiP2, we use config-at-end transitions for
certain resize transitions as they help easily
run animations as a part of the transition with the draws
being deferred until the transition is over. This also helps
reduce latency of how long it takes until we reenable user interactions.
However, config-at-end transitions have shown to evince WindowState offset
flickers when their size isn't changing during such transition, as
described in b/393159816.
So as a workaround we enforce a minimal one-pixel size change in such
event.
This CL also refactors PipDoubleTapHelper and PipDoubleTapHelperTest,
as its implementation had some gaps after workaround was applied.
Bug: 381014478
Flag: com.android.wm.shell.enable_pip2
Test: atest PipDoubleTapHelperTest
Test: pinch resize to max allowed size and then keep resizing to max size
Test: stash, then unstash PiP repeatedly
Change-Id: I6f11e7f73567be79190b66a50b58a358272a3f3a
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions