summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Marin Shalamanov <shalamanov@google.com> 2020-12-10 15:22:29 +0100
committer Marin Shalamanov <shalamanov@google.com> 2020-12-22 14:43:24 +0100
commit526c338970dbaacafdf3e2e0dd95766bb76ea3c3 (patch)
treed9098ed91c2f38823b887b452a5bda84f17360cf /services/surfaceflinger/RegionSamplingThread.cpp
parenta176f5f2585d250a3cd1b9f689eb8bef22e766c2 (diff)
SF: Break dependency between VsyncConfiguration and RefreshRateConfigs
The VsyncConfiguration class doesn't need to know the list of supported refresh rates, because the offsets can be calculated and cached on the fly. This is better because the list of refresh rates can change during runtime (for example for Android TV). After fixing this the dependency on RefreshRateConfigs is only needed for getting the current refresh rate at construction time. For this it's sufficient to pass only the Fps instead of the whole RefreshRateConfigs object. Bug: 159590486 Test: presubmit Change-Id: I1c0ceaf2524b517e85c8067577fc9f5146f1f632
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions