summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Dominik Laskowski <domlaskowski@google.com> 2023-06-29 12:01:13 -0400
committer Dominik Laskowski <domlaskowski@google.com> 2023-08-01 11:50:39 -0400
commit53eb040899b8b4a689d8017820a0accae552a958 (patch)
treec76bc030f7ab949c9e5c043929d38e1d399060c9 /libs/gui/ConsumerBase.cpp
parentb7a9610d164f8cb23810ef63073eb83cdc7bb3d4 (diff)
SF: Fix mode setting for secondary displays
Desired modes were only propagated to HWC for the "active" display, i.e. generally the primary display and specially the rear display when in the folded state. In other words, mode setting did not happen for external displays, and the rear display when driving both displays concurrently. Store per-display state for whether a mode set is pending. Propagate the desired mode for both internal and external displays as long as they are powered on. Fixes: 277776378 Fixes: 289182528 Bug: 255635711 Bug: 255635821 Test: The 60 Hz constraint applies to both displays in concurrent mode. Test: ADB `set-user-preferred-display-mode` applies to external display. Test: DisplayModeSwitchingTest#inner{Xor,And}OuterDisplay Test: DisplayModeSwitchingTest#powerOffDuringModeSet Change-Id: I9da3a0be07f9fbb08f11485aa6ab9400259a4e09 Merged-In: I9da3a0be07f9fbb08f11485aa6ab9400259a4e09
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions