summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Marin Shalamanov <shalamanov@google.com> 2021-06-08 20:44:06 +0200
committer Marin Shalamanov <shalamanov@google.com> 2021-06-14 10:47:02 +0200
commit4c7831e4c511dd2344030490d2c8b0060f5a6640 (patch)
treea972dfe6f79fb407b15d6aab75426a57a3dadc85 /vulkan/libvulkan/api.cpp
parent2cde1001345b0b3bac2441ced1d059b65a5d7980 (diff)
SF: Move mode caching from Scheduler to RefreshRateConfigs
In the existing behavior Scheduler checks if the layerReuquirements have changes since the last time and only then calls into RefreshRateConfigs to getBestRefreshRate. There are two problems with that 1. on the first iteration of the algorithm mFeatures.contentRequirements is empty. If we happen to have an empty list of current content requirements (for example if all layers have NoVote), we won't execute the refresh rate selection algorithm and we'll end up with a wrong initial refresh rate. 2. the cached value needs to be invalided when one of these change - globalSignals - supported display modes (happens on TV) - display manager policy Bug: 188872896 Test: atest SchedulerTest RefreshRateConfigsTest Change-Id: I101f401522fae8358752e283d8375caa93957b6a
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions