summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Evan Rosky <erosky@google.com> 2023-10-12 08:19:23 -0700
committer Evan Rosky <erosky@google.com> 2023-10-12 08:19:23 -0700
commit05f0664be98651709f1b68ec4a2ccd4a71f80831 (patch)
treec3377e632ddaeb080965fd397789d2c98d138d25 /libs/hwui/FrameInfoVisualizer.cpp
parent7273f04176d038724b1c0b1bd0dc425ba0c6d0a3 (diff)
Support playNow on queued SLEEP transits
When a transition is queued, we usually post the onCollectStarted callback to avoid ordering issues w/ the prior transition. This means that anything in the handler queue will execute before onCollectStarted. Again, this is desired normally and it means those actions will be collected in the new transition. However, SLEEP transitions are currently treated as empty sentinels (at-least today). While there's nothing wrong with collecting changes in SLEEP transitions, we still have some transitions (eg. around keyguard) that can race with it, so to reduce those races short-term, this adds a check for SLEEP when dequeuing and start that immediately vs. posting. Bug: 304713150 Test: Existing tests pass. Change-Id: Id234414c220367a2e971fa29cf03ba631c7564f1
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions