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

Unified Diff: services/ui/ws/window_manager_display_root.cc

Issue 2582823002: WIP: Surface Synchronization System
Patch Set: Only create ClientSurfaceEmbedder if window is visible. Trash it otherwise. Created 3 years, 11 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
Index: services/ui/ws/window_manager_display_root.cc
diff --git a/services/ui/ws/window_manager_display_root.cc b/services/ui/ws/window_manager_display_root.cc
index f8ff144b2b3b1e735e2eb5037d33b3547b97ce3b..d9eb5b3c0a59ae2baab52f95992b37192279abef 100644
--- a/services/ui/ws/window_manager_display_root.cc
+++ b/services/ui/ws/window_manager_display_root.cc
@@ -15,11 +15,14 @@ WindowManagerDisplayRoot::WindowManagerDisplayRoot(Display* display)
: display_(display) {
root_.reset(window_server()->CreateServerWindow(
window_server()->display_manager()->GetAndAdvanceNextRootId(),
- ServerWindow::Properties()));
+ ServerWindow::Properties(), allocator_.GenerateId()));
+ fprintf(stderr, ">>>WindowManagerDisplayRoot %d\n",
+ WindowIdToTransportId(root_->id()));
// Our root is always a child of the Display's root. Do this
// before the WindowTree has been created so that the client doesn't get
// notified of the add, bounds change and visibility change.
- root_->SetBounds(gfx::Rect(display->root_window()->bounds().size()));
+ root_->SetBounds(gfx::Rect(display->root_window()->bounds().size()),
+ allocator_.GenerateId());
root_->SetVisible(true);
display->root_window()->Add(root_.get());
}

Powered by Google App Engine
This is Rietveld 408576698