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

Unified Diff: ui/aura/mus/window_tree_client.cc

Issue 2833093002: WIP: simplified display management in ash (Closed)
Patch Set: x Created 3 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 | « services/ui/ws/window_server.cc ('k') | ui/aura/window_tree_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_client.cc
diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc
index 6094207625bebc209dee695fea0f3f9f7c638120..7c816feb39fc4b601ffc682e79d0f323903be8d2 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -1467,6 +1467,7 @@ void WindowTreeClient::RequestClose(uint32_t window_id) {
}
bool WindowTreeClient::WaitForInitialDisplays() {
+ LOG(WARNING) << "WaitForInitialDisplays got=" << got_initial_displays_;
if (got_initial_displays_)
return true;
@@ -1474,6 +1475,7 @@ bool WindowTreeClient::WaitForInitialDisplays() {
// TODO(sky): having to block here is not ideal. http://crbug.com/594852.
while (!got_initial_displays_ && valid_wait)
valid_wait = binding_.WaitForIncomingMethodCall();
+ LOG(WARNING) << "wait done, valid=" << valid_wait;
return valid_wait;
}
@@ -1487,7 +1489,9 @@ WindowTreeHostMusInitParams WindowTreeClient::CreateInitParamsForNewDisplay() {
}
void WindowTreeClient::OnConnect(ClientSpecificId client_id) {
+ LOG(WARNING) << "OnConnect";
client_id_ = client_id;
+ got_initial_displays_ = true;
if (window_manager_delegate_)
window_manager_delegate_->OnWmConnected();
}
« no previous file with comments | « services/ui/ws/window_server.cc ('k') | ui/aura/window_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698