Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f69d11d6 authored by Ady Abraham's avatar Ady Abraham
Browse files

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 2492a02b)
parent 01d265d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment