summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2020-07-24 11:09:55 -0700
committer Ady Abraham <adyabr@google.com> 2020-07-30 21:04:41 +0000
commitf69d11d6aa09629a8af185359147e3c4510d1e89 (patch)
treea375306f03ae8bfd63febe8bbcbdcdbeb4341ed0 /services/surfaceflinger/RegionSamplingThread.cpp
parent01d265d4267213611f9818f3097aff050870ca9b (diff)
SF: use cached vsync period
Don't query the vsync period from hwc but instead use the cached value in SF. The reason for this change is a race condition with AOD: 1. SF changes refresh rate to from X to Y 2. HWC is caching Y since the display is already in AOD and can't change refresh rate. 3. SF calls HWC to get the display out from AOD and query the refresh rate. At this point HWC returns X as the refresh rate didn't change yet. 4. HWC changes the refresh rate to Y. 5. SF thinks the refresh rate is X -- mismatch. Test: enable / disable AOD in a loop Bug: 160966959 Change-Id: I127c3a445416607dee9402031e07c8fece7d167b (cherry picked from commit 2492a02b8a04f9cd6e806e1bdb55a3dbc4d7ae91)
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions