summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Melody Hsu <melodymhsu@google.com> 2024-08-27 22:37:04 +0000
committer Melody Hsu <melodymhsu@google.com> 2024-11-06 11:10:29 +0000
commita3f1355010d8d76e592c731f3904da0800d0f624 (patch)
treeaa0e41ac597099b76aec8d7e428decf6b497a8c4 /libs/androidfw/ObbFile.cpp
parent2f6d590bd7900e0e85a23aa849d82d98064f9846 (diff)
Recover from buffer stuffing for canned animations
Buffer stuffing occurs when SurfaceFlinger misses a frame, but the client continues to produce buffers at the same rate, causing a greater risk for jank to occur. Recovery is achieved for canned animations by adjusting the animation timeline on the client side so that SurfaceFlinger is no longer behind. Choreographer adds a negative offset to each frame when buffer stuffing is detected to effectively adjust the animation timeline after an intentional frame delay. Bug: b/294922229 Test: presubmit, manually check perfetto traces Flag: android.view.flags.buffer_stuffing_recovery Change-Id: Ic48208252c899a97cd72177fedaa2c2788028338
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions