summaryrefslogtreecommitdiff
path: root/libs/ui/DebugUtils.cpp
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2021-06-28 12:37:09 -0700
committer Ady Abraham <adyabr@google.com> 2021-06-28 12:38:41 -0700
commitec7aa8a7287629522b4fab712bad465f0d132be4 (patch)
tree059c8517ad2df5d50cdb58222606c0674f49b145 /libs/ui/DebugUtils.cpp
parentb3c68852626da31ae79870defbd54bfd9df7ffdf (diff)
SF: check previous present fence to avoid early presentation
If SurfaceFlinger finishes composition a vsyncPeriod or more before it planned to, it sleeps before calling composer to present the frame to avoid early presentation. In this CL we are removing the sleep if the previous present fence is still pending, as early presentation is not possible (composer has already a frame queued). Bug: 190842189 Test: Bouncy ball while forcing client composition Change-Id: Id913a21b3489973d82498c6154843656972b6e1a
Diffstat (limited to 'libs/ui/DebugUtils.cpp')
0 files changed, 0 insertions, 0 deletions