summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author ramindani <ramindani@google.com> 2023-11-13 17:25:41 -0800
committer Ram Indani <ramindani@google.com> 2023-11-14 01:30:27 +0000
commitf115e508ebb5f5ef09ec57b9d6be1f61a18dde33 (patch)
tree8210ba2a80bfb28eca1524b65e1a50ba7e59cdaf /services/surfaceflinger/RegionSamplingThread.cpp
parent09acbb8ca6fd123713bb73869f0fb0c8a54687d4 (diff)
Update lastExpectedPresentTime when cadence changes
When cadence changes, updating the lastExpectedPresentTime prevents from having an expected present time from a different cadence. From getDeviceCompositionChanges we only store the future expectedPresentTime. getDeviceCompositionChanges follows after onVsyncGenerated and stores the expectedPresentTime otherwise from the past when rate changes. This causes the next onVsyncGenerated to think that the rate has changed, while it stayed the same, and SF is flushing rest of the buffers at the previous rate. BUG: 296636253 BUG: 296635769 Test: manual Change-Id: Ifb45d875e381a737b5e944d2e6cb080c5eb81196
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions