summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Dominik Laskowski <domlaskowski@google.com> 2024-06-25 11:50:43 -0400
committer Dominik Laskowski <domlaskowski@google.com> 2024-07-01 18:17:22 -0400
commit92900f8188bf923308c0b081c0a44c0f6ae36724 (patch)
treec911c2c92bbb0672ee6e5f92f440fdfadc3cf74e /libs/gui/ConsumerBase.cpp
parent6429b0b304e3684ae94366fb07c00c8b099c3138 (diff)
SF: Generalize immediate mode set to multi-display
When initiating a mode set, HWC may request an immediate mode change, in which case SF finalizes the change on the same (rather than next) frame. However, this would only be honored for at most one display, and further requests would be dropped. This was a historical hack: The loop used to iterate over mDisplays, and finalizeDisplayModeChange may recreate/invalidate the DisplayDevice. Now that the loop is over the immutable mPhysicalDisplays, the DisplayDevice can be safely recreated within the loop. Note that the only known user of this code path is ATV, so multi-display devices should not be affected by this change. Bug: 255635711 Flag: EXEMPT refactor Test: DisplayModeSwitchingTest (WithoutRefreshRequired cases) Change-Id: I842e39c2c5509de99b80fa9561ecb13b66f98c40
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions