commit | 9e16a485b39a9e39191666d56d7d847ee801830f | [log] [tgz] |
---|---|---|
author | Ady Abraham <adyabr@google.com> | Tue Dec 03 17:19:41 2019 -0800 |
committer | Ady Abraham <adyabr@google.com> | Thu Dec 19 18:25:12 2019 -0800 |
tree | 3f9e40c27fe6c0bf04944c7a14fe312e48c24267 | |
parent | b89b959d28d7b5a83b9b1c6d1b17dbf98c634697 [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