summaryrefslogtreecommitdiff
path: root/libs/gui/DisplayEventReceiver.cpp
diff options
context:
space:
mode:
author Leon Scroggins III <scroggo@google.com> 2023-01-30 20:17:56 -0500
committer Leon Scroggins III <scroggo@google.com> 2023-01-30 21:35:20 -0500
commitda21f422c2de37bca9addcdace3badc329be24b7 (patch)
tree55405c1bf5cb8859bb21193626df2e959b539b17 /libs/gui/DisplayEventReceiver.cpp
parent6f5ed5b81afbb312c1da8dff6a692c69570a5bb1 (diff)
Scheduler: Prevent removing the last display
unregisterDisplay calls promoteLeaderDisplay, which assumes that there is at least one RefreshRateSelector remaining. Other Scheduler code also assumes that there will be at least one display, which is necessary for there to be a leader. In SchedulerTest, remove the final call to unregisterDisplay, so we don't put Scheduler in a bad state. Remove hasRefreshRateSelectors(), since this condition must be true. Bug: 241285191 Test: libsurfaceflinger_unittest Change-Id: I827f20acd6a105d9f99e1ca9a7bfc59e633ab33f
Diffstat (limited to 'libs/gui/DisplayEventReceiver.cpp')
0 files changed, 0 insertions, 0 deletions