summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author Ikram Gabiyev <gabiyev@google.com> 2024-05-03 14:33:59 -0700
committer Ikram Gabiyev <gabiyev@google.com> 2024-05-03 14:43:05 -0700
commitcdc6a51c9ad27e75a6f56d1972ece23e6495ed31 (patch)
treefe1c402476cd45ad470324652199fabfc6de3a76 /libs/input/SpriteController.cpp
parentb027fca2951f16d77f9d92126c903a4f22bb203c (diff)
Refactor startResizeAnimation in PipTransition
In PiP2, we want to allow for the animator to manipulate startTx (and apply startTx) and finishTx and update PipTransitionState to let PipTransition finishTransition() while continuing playing the animation after. See go/pip2-transitions PiP Double Tap CUJ > Approach #2 This is done by updating the state and sending an extra bundle to a subscriber handling animator scheduling. The bundle contains startTx, finishTx, and destination bounds (in case the animator is somehow already finished). This should reduce the latency of PiP interactions such as pinching and double tapping as describe in the design doc. Also added SWIPING_TO_PIP to stateToString(), otherwise we can get IllegalStateException when swiping up. Bug: 332770512 Test: N/A until connected to PipTouchHandler e.g. Test: atest WMShellUnitTests:PipTransitionStateTest Change-Id: I1dc4f709f76bdfa50584153c41f2af224b03ba3b
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions