-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[M116 Merge][wayland] Keep Output state consistent when propagating n…
…otifications This CL updates OnOutputRemoved() such that both display_id_map_ and display_list_ are updated at the same time after a new primary display has been set. Currently we are hitting an error condition where the display is removed from the display_id_map_ first, then the primary display is updated, then it is removed from display_list_. As clients respond to the change of primary display, they may call back into WaylandScreen and end up hitting DCHECKs/CHECKs due to inconsistency between the two structures. Specifically this was happening when updating the primary display in OnOutputRemoved(). Clients could end up calling into WaylandWindow::GetPreferredEnteredOutputId(), which had the potential to check the state of display_list_. (cherry picked from commit 367e530) Bug: 1408304 Change-Id: I517ccb394c565dd04c8d1ab644eb5fd672e8d19f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4633241 Reviewed-by: Mitsuru Oshima <oshima@chromium.org> Commit-Queue: Thomas Lukaszewicz <tluk@chromium.org> Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com> Cr-Original-Commit-Position: refs/heads/main@{#1161606} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4643752 Auto-Submit: Thomas Lukaszewicz <tluk@chromium.org> Cr-Commit-Position: refs/branch-heads/5845@{#94} Cr-Branched-From: 5a5dff6-refs/heads/main@{#1160321}
- Loading branch information
Thomas Lukaszewicz
authored and
Chromium LUCI CQ
committed
Jun 26, 2023
1 parent
d695bdf
commit 79e8b18
Showing
3 changed files
with
79 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters