summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceComposerClient.cpp
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2021-04-20 18:39:00 -0700
committer Ady Abraham <adyabr@google.com> 2021-04-21 21:16:32 +0000
commit3645e64d89f72af768134bd9e03b6db9a711a6f1 (patch)
tree08cf32b8038dc9e4707ee1b8f383c151fd945fd1 /libs/gui/SurfaceComposerClient.cpp
parenta8bfb932d3c2a1d950cd463d53d54977ac80b935 (diff)
SF: wait instead of presenting early
If SurfaceFlinger duration is configured to a larger value than the vsync period, there might be a chance that SF would present the frame too early, if its actual duration is much shorter than anticipating. To prevent this, we wait until the vsync occurs before calling to hwc::present. Bug: 185949581 Test: Configure large SF duration and observe systrace Change-Id: Ic0c112a2808036d0f2e14a345c401fa56c2d29ab
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
0 files changed, 0 insertions, 0 deletions