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

Unified Diff: ash/shell.cc

Issue 23620060: Try to enable software mirror mode in UI message loop after Init() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 7 years, 3 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 | « ash/display/mirror_window_controller_unittest.cc ('k') | ash/shell/window_watcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 411fcc9090cdb03110bf898448fd4ab5f168ae07..34fb55b6c325b1941f5963c6ace9f3e2edc3fc55 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -621,6 +621,14 @@ void Shell::Init() {
// Let the first mouse event show the cursor.
env_filter_->set_cursor_hidden_by_filter(true);
}
+
+ // The compositor thread and main message loop have to be running in
+ // order to create mirror window. Run it after the main message loop
+ // is started.
+ base::MessageLoopForUI::current()->PostTask(
+ FROM_HERE,
+ base::Bind(&internal::DisplayManager::CreateMirrorWindowIfAny,
+ base::Unretained(display_manager_.get())));
}
void Shell::ShowContextMenu(const gfx::Point& location_in_screen,
« no previous file with comments | « ash/display/mirror_window_controller_unittest.cc ('k') | ash/shell/window_watcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698