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

Unified Diff: ui/aura/window.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: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 83a532b0524371c09cd0bb47625a93eedcd6e9f9..0f6452662b4683e5db15a1b4fa3f88357f7627f5 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -144,7 +144,7 @@ void Window::Init(ui::LayerType layer_type) {
port_ = port_owner_.get();
}
SetLayer(base::MakeUnique<ui::Layer>(layer_type));
- port_->OnPreInit(this);
+ port_->OnPreInit(this, layer_type);
layer()->SetVisible(false);
layer()->set_delegate(this);
UpdateLayerName();

Powered by Google App Engine
This is Rietveld 408576698