summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Melody Hsu <melodymhsu@google.com> 2024-08-27 22:27:29 +0000
committer Melody Hsu <melodymhsu@google.com> 2024-11-12 04:57:24 +0000
commite524dd9d136049bbca78c2e148b5556ad3c128eb (patch)
tree8c15c6e2e9c559ba4cd297c14d803e770f85303a /libs/gui/BufferQueueThreadState.cpp
parent027013d8a68d0e754ef8c17dde5abf744505f5e2 (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. Use SF backdoor command 1045 to inject jank. Usage: adb shell service call SurfaceFlinger 1045 f 1 Bug: b/294922229 Test: atest EventThreadTest Test: presubmit, manually check perfetto traces Flag: android.view.flags.buffer_stuffing_recovery Change-Id: I38f0eb3d6ef1331e07d6022fa3a0e16c556ba06f
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions