summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Dan Stoza <stoza@google.com> 2016-04-05 16:45:26 -0700
committer Dan Stoza <stoza@google.com> 2016-04-07 14:03:02 -0700
commitf34b9be610ce286af224364cb6e69ef6f7697ee9 (patch)
tree0096a8de0b2e5f1747bd6ac9569520230d71652a /libs/gui/ConsumerBase.cpp
parent90e840f00713bf9c1016c4f2584ef70e0a87ca14 (diff)
DispSync: Always resync after inactivity
Changes DispSync to enable hardware vsync immediately when new frames arrive after a period of inactivity. No matter how hard we try, we can't avoid drifting over time without being able to detect error based on display retire fences. By enabling hardware vsync immediately, we avoid having a weird period or phase offset relative to hardware while we retrain the model. Once the model has locked, we turn hardware vsync back off to save power (until we detect drift again). Bug: 26255070 Change-Id: If4dd17c2d541015c730f47d824359d7cb4b52c3c
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions