summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/tests/unittests/SchedulerTest.cpp
diff options
context:
space:
mode:
authorAna Krulec <akrulec@google.com>2020-01-23 15:48:01 -0800
committerAna Krulec <akrulec@google.com>2020-01-31 19:52:02 -0800
commit8c6f3f6bd0c5edce7aa9bfd61b64dd2e7dc43deb (patch)
tree9f3b28c4f7d87914a5de1174e9c1ef280d75798b /services/surfaceflinger/tests/unittests/SchedulerTest.cpp
parent5ca59db02b5338df237faad94e8d6f24f3ab11c7 (diff)
SF: Remove refresh_rate_switching flag.
ag/9294789 introduce a flag to only allow refresh rate switching on the devices that have that flag set to true, because it broke devices that didn't support multiple refresh rates, and Android TV. LocalDisplayAdapter sets the refresh rate to default when booting the phone, so no need for that in SF anymore. Test: Install on devices that doesn't have multiple refresh rates. Test: Run SF unittests. Test: Turn on all the flags, and run through set of examples: Video playback stays at 60. Camera stays at 60. Maps play at 60. Low brightness stays at 90. Swappy successfully switches between 60 & 90. Test: Turn off all the flags, and rerun the examples from previous. If applications requested the change, the change is honored, otherwise we stay at default (set by DM). Test: Ask Android TV team to test the patch. Bug: 148427603 Change-Id: I44085e91a74902d102bcf9f1491164cdb50650cc
Diffstat (limited to 'services/surfaceflinger/tests/unittests/SchedulerTest.cpp')
-rw-r--r--services/surfaceflinger/tests/unittests/SchedulerTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/surfaceflinger/tests/unittests/SchedulerTest.cpp b/services/surfaceflinger/tests/unittests/SchedulerTest.cpp
index 82a00ee734..89002a8f3e 100644
--- a/services/surfaceflinger/tests/unittests/SchedulerTest.cpp
+++ b/services/surfaceflinger/tests/unittests/SchedulerTest.cpp
@@ -73,8 +73,7 @@ SchedulerTest::SchedulerTest() {
std::vector<scheduler::RefreshRateConfigs::InputConfig> configs{
{{HwcConfigIndexType(0), HwcConfigGroupType(0), 16666667}}};
mRefreshRateConfigs = std::make_unique<
- scheduler::RefreshRateConfigs>(/*refreshRateSwitching=*/false, configs,
- /*currentConfig=*/HwcConfigIndexType(0));
+ scheduler::RefreshRateConfigs>(configs, /*currentConfig=*/HwcConfigIndexType(0));
mScheduler = std::make_unique<TestableScheduler>(*mRefreshRateConfigs, false);