summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2019-12-03 17:19:41 -0800
committer Ady Abraham <adyabr@google.com> 2019-12-19 18:25:12 -0800
commit9e16a485b39a9e39191666d56d7d847ee801830f (patch)
tree3f9e40c27fe6c0bf04944c7a14fe312e48c24267 /services/surfaceflinger/RegionSamplingThread.cpp
parentb89b959d28d7b5a83b9b1c6d1b17dbf98c634697 (diff)
SurfaceFlinger: introduce PhaseOffsetsAsDurations
Currently we define phase offset for each refresh rate. This works for <= 2 refresh rates, but doesn't scale well. This change is introducing a new way to calculate phase offsets, which is based on duration. Then, based on the duration and refresh rate, a phase offset is calculated. The calculation is captured here: https://docs.google.com/spreadsheets/d/1a_5cVNY3LUAkeg-yL56rYQNwved6Hy-dvEcKSxp6f8k/edit#gid=0 Bug: 145561086 Bug: 141329414 Test: jank tests Test: adb shell /data/nativetest64/libsurfaceflinger_unittest/libsurfaceflinger_unittest Change-Id: I16aaf7437d30c4b12f955bdaac36582dd100519f
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions