summaryrefslogtreecommitdiff
path: root/libs/hwui/Gainmap.cpp
diff options
context:
space:
mode:
author Evan Rosky <erosky@google.com> 2023-03-02 01:01:24 -0800
committer Evan Rosky <erosky@google.com> 2023-03-06 20:25:24 +0000
commit032e5d004c629c900ef961b4e857b6a825a8cd5f (patch)
tree3ddb50b1fa0a5dcba1a7033df0dc754b3b986a8a /libs/hwui/Gainmap.cpp
parent66948922135fb7f94f1fd1afa956e4d06f01ce4f (diff)
Use a SLEEP transition to trigger failsafe animation cancelling
Some remote animations can misbehave. In particular, recents. When this happens in the form of the remote not reporting finish, the transition system can get stuck waiting. Legacy recents had the same problem and solved it by cancelling the recents and independently finishing/cleaning-up after a "failsafe" duration from turning the screen off. This CL sets-up something similar for shell-transitions. It uses SLEEP as a signal to "quickly end all animations". This signal gets sent (via merge) to all the animations. Each animation gets a small amount of time to finish after-which we forcibly finish it. Bug: 267738124 Test: Observe sleep transitions and cancelling in logs. Change-Id: I36a856e1a798526ad0bb5006477dd08c5bb8792f
Diffstat (limited to 'libs/hwui/Gainmap.cpp')
0 files changed, 0 insertions, 0 deletions