summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/tests/unittests/SetFrameRateTest.cpp
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2022-04-04 05:51:50 -0700
committerLinux Build Service Account <lnxbuild@localhost>2022-04-04 05:51:50 -0700
commitbcb95726067e422d4d55ab078c4b898915a91a45 (patch)
treedd8ded958bfdfda4007b7325353f5d10a45b00da /services/surfaceflinger/tests/unittests/SetFrameRateTest.cpp
parent310298e2816e5393a85ea10a7661416376cf505d (diff)
parentc3e6bd2fb2223973f26325d11c28b32b8685cfbd (diff)
Merge c3e6bd2fb2223973f26325d11c28b32b8685cfbd on remote branch
Change-Id: Ic5966863c7610787847f8f7fc4f939af5f87f13e
Diffstat (limited to 'services/surfaceflinger/tests/unittests/SetFrameRateTest.cpp')
-rw-r--r--services/surfaceflinger/tests/unittests/SetFrameRateTest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/surfaceflinger/tests/unittests/SetFrameRateTest.cpp b/services/surfaceflinger/tests/unittests/SetFrameRateTest.cpp
index 2761470c31..a4e9d20b75 100644
--- a/services/surfaceflinger/tests/unittests/SetFrameRateTest.cpp
+++ b/services/surfaceflinger/tests/unittests/SetFrameRateTest.cpp
@@ -479,7 +479,9 @@ TEST_P(SetFrameRateTest, SetOnParentActivatesTree) {
->record(child.get(), 0, 0, LayerHistory::LayerUpdateType::Buffer);
const auto layerHistorySummary =
- mFlinger.mutableScheduler().mutableLayerHistory()->summarize(0);
+ mFlinger.mutableScheduler()
+ .mutableLayerHistory()
+ ->summarize(*mFlinger.mutableScheduler().refreshRateConfigs(), 0);
ASSERT_EQ(2u, layerHistorySummary.size());
EXPECT_TRUE(FRAME_RATE_VOTE1.rate.equalsWithMargin(layerHistorySummary[0].desiredRefreshRate));
EXPECT_TRUE(FRAME_RATE_VOTE1.rate.equalsWithMargin(layerHistorySummary[1].desiredRefreshRate));