summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Dominik Laskowski <domlaskowski@google.com> 2023-02-11 14:24:19 -0500
committer Dominik Laskowski <domlaskowski@google.com> 2023-02-17 17:16:32 +0000
commitaee9a6254992f5ff3d86d2e47893be99de1f8446 (patch)
treef614cc9e026649f803cd75fc8f2a705ec20d82e4 /libs/gui/LayerState.cpp
parent5fc135bf77a1d4379aca32d2b400cd3ff864d6fc (diff)
SF: Deduplicate mock scheduler setup in tests
Extract TestableSurfaceFlinger::setupMockScheduler, and add an option to customize the PhysicalDisplayId of the injected RefreshRateSelector (and its display modes), so that tests can later inject a DisplayDevice with a matching ID. Remove the DisplayModesVariant with two display modes, as the few tests that used it are unrelated to scheduling and will later be decoupled entirely. Bug: 259436835 Bug: 241285191 Test: libsurfaceflinger_unittest Change-Id: Ie58b6947201a1911342e7bcd5ea64dd8702aaa57 Merged-In: Ie58b6947201a1911342e7bcd5ea64dd8702aaa57 (cherry picked from commit fb281c53240c3e2420a20cf0ea071198e963ed3d)
Diffstat (limited to 'libs/gui/LayerState.cpp')
0 files changed, 0 insertions, 0 deletions