summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2021-01-06 10:47:15 -0800
committer Ady Abraham <adyabr@google.com> 2021-01-06 22:34:12 +0000
commit63a3e592e71169909b06843f781f7ea2cd1ff958 (patch)
treea64d68cf9245a9fdb394c8b9dcda3c2e250c4e67 /libs/gui/LayerState.cpp
parentae9bf1e192f93b5ad259f7c13c5b72264d9c57a2 (diff)
SurfaceFlinger: Layer::shouldPresentNow should consider early frames
Move the decision whether to latch a buffer or not based on the expected present time (that is whether a frame is considered too early or out of vsync phase) from Layer::latchBuffer to Layer::shouldPresentNow as the code assumes that Layer::latchBuffer would not fail based on the expected present. Bug: 176755514 Bug: 176416352 Test: atest CtsViewTestCases:android.view.cts.ASurfaceControlTest Test: atest FrameRateOverrideHostTest Change-Id: Ib83bda41c824549011f12fa5414263c8b03032e4
Diffstat (limited to 'libs/gui/LayerState.cpp')
0 files changed, 0 insertions, 0 deletions