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

Unified Diff: ui/display/chromeos/update_display_configuration_task.cc

Issue 1456623002: Add support for virtual displays (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use std::max as suggested by oshima@ Created 5 years 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 | « ui/display/chromeos/update_display_configuration_task.h ('k') | ui/display/display.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/chromeos/update_display_configuration_task.cc
diff --git a/ui/display/chromeos/update_display_configuration_task.cc b/ui/display/chromeos/update_display_configuration_task.cc
index 335c661bb1154a5ceee36528b667bf005cf17867..6b412714d8fb93c91214e60b6bd1bed2901e5d32 100644
--- a/ui/display/chromeos/update_display_configuration_task.cc
+++ b/ui/display/chromeos/update_display_configuration_task.cc
@@ -48,6 +48,11 @@ void UpdateDisplayConfigurationTask::OnDisplaysUpdated(
const std::vector<DisplaySnapshot*>& displays) {
cached_displays_ = displays;
+ // Add virtual displays after retrieving the physical displays from the NDD.
+ cached_displays_.insert(cached_displays_.end(),
+ virtual_display_snapshots_.begin(),
+ virtual_display_snapshots_.end());
+
if (cached_displays_.size() > 1 && background_color_argb_)
delegate_->SetBackgroundColor(background_color_argb_);
« no previous file with comments | « ui/display/chromeos/update_display_configuration_task.h ('k') | ui/display/display.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698