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

Unified Diff: ash/display/display_manager.cc

Issue 1012413002: Don't post mirror task before compositor is initialized (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | no next file » | 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 449a65ac23b9e35aeac63ac55ef998c0097a8cec..b731ded75629bb985b260d201867de780c7edb0c 100644
--- a/ash/display/display_manager.cc
+++ b/ash/display/display_manager.cc
@@ -1068,8 +1068,10 @@ bool DisplayManager::UpdateDisplayBounds(int64 display_id,
}
void DisplayManager::CreateMirrorWindowAsyncIfAny() {
- // Do not post a task if the software mirroring doesn't exist.
- if (!HasSoftwareMirroringDisplay())
+ // Do not post a task if the software mirroring doesn't exist, or
+ // during initialization when compositor's init task isn't posted yet.
+ // ash::Shell::Init() will call this after the compositor is initialized.
+ if (!HasSoftwareMirroringDisplay() || !delegate_)
return;
base::MessageLoopForUI::current()->PostTask(
FROM_HERE,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698