commit | 5e7ee86d60fde894e5162e3a3cd2d962ce62d4db | [log] [tgz] |
---|---|---|
author | Ady Abraham <adyabr@google.com> | Wed Jun 23 17:43:41 2021 -0700 |
committer | Ady Abraham <adyabr@google.com> | Thu Jul 01 23:20:55 2021 -0700 |
tree | 2d8d320fd045cd80a8c3a4e2924d355577a62323 | |
parent | 3e461c42ed735227ea6c2bb1b4f5eb34cbf9f900 [diff] [blame] |
SF: add PhysicalDisplayId to DisplayMode A DisplayMode should include the PhysicalDisplayId it belongs to we could use that to know which display the mode belogs to. Change-Id: I781cf30c5ccf886f061a45073b369b4f04cc9140 Bug: 187539899 Test: SF unit tests Test: refresh rate switching is working on device with more than one display Change-Id: I9c73b43384cbe934f7584695e5fe5c53ab402bfb
diff --git a/services/surfaceflinger/tests/unittests/RefreshRateStatsTest.cpp b/services/surfaceflinger/tests/unittests/RefreshRateStatsTest.cpp index bf07106..0a8759d 100644 --- a/services/surfaceflinger/tests/unittests/RefreshRateStatsTest.cpp +++ b/services/surfaceflinger/tests/unittests/RefreshRateStatsTest.cpp
@@ -81,6 +81,7 @@ int64_t vsyncPeriod) { return DisplayMode::Builder(static_cast<hal::HWConfigId>(modeId.value())) .setId(modeId) + .setPhysicalDisplayId(PhysicalDisplayId::fromPort(0)) .setVsyncPeriod(static_cast<int32_t>(vsyncPeriod)) .setGroup(group) .build();