summaryrefslogtreecommitdiff
path: root/opengl/libagl/array.cpp
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2020-06-12 14:26:18 -0700
committer Ady Abraham <adyabr@google.com> 2020-06-17 16:24:22 -0700
commitbf1349c867de1813a8002489fe2a5f5cc958ae17 (patch)
tree632c477b86272bbf1ea47fe27128f1ffae5447b4 /opengl/libagl/array.cpp
parent680edcf1209d440420de98300a33f8dac1cb8312 (diff)
SurfaceFlinger: add explicit eEarlyWakeup start and end
The current handling of eEarlyWakeup is using 2 frames of timeout in SurfaceFlinger to know when we are no longer in early offset config. There are few cases where a transaction is dropped or delayed (usually caused by the offset change itself) which results in switching back and forth from early offset to non-early offset. This change adds two new flags, eExplicitEarlyWakeupStart and eExplicitEarlyWakeupEnd that will be used by WindowManager to indicate when to enter early offset and when to exit. With these explicit flags, the timings on transaction no longer matters and we consistently stay at early offset config for the desired duration. Bug: 158127834 Test: Quick switch between apps and verify that offset doesn't change Test: adb shell /data/nativetest64/libsurfaceflinger_unittest/libsurfaceflinger_unittest Change-Id: Ie10af30a2d8c0f4f21ac7ffed469a74e1bf8dbc1
Diffstat (limited to 'opengl/libagl/array.cpp')
0 files changed, 0 insertions, 0 deletions