Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Unified Diff: ash/display/display_manager.cc

Issue 1870733004: Clear the software mirroring display list when adding it to the updated list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/display/display_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_manager.cc
diff --git a/ash/display/display_manager.cc b/ash/display/display_manager.cc
index 1b79b9deeb10a30a7c9ede87fe062915df7f9dc1..33b0c0de5a0c4e54d8d46f0740a9898cce50a21e 100644
--- a/ash/display/display_manager.cc
+++ b/ash/display/display_manager.cc
@@ -1221,8 +1221,10 @@ gfx::Display* DisplayManager::FindDisplayForId(int64_t id) {
void DisplayManager::AddMirrorDisplayInfoIfAny(
std::vector<DisplayInfo>* display_info_list) {
- if (software_mirroring_enabled() && IsInMirrorMode())
+ if (software_mirroring_enabled() && IsInMirrorMode()) {
display_info_list->push_back(GetDisplayInfo(mirroring_display_id_));
+ software_mirroring_display_list_.clear();
+ }
}
void DisplayManager::InsertAndUpdateDisplayInfo(const DisplayInfo& new_info) {
« no previous file with comments | « no previous file | ash/display/display_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698