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

Unified Diff: sky/compositor/layer_host.cc

Issue 761503004: Fix several leaks in the Sky compositor (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix typo Created 6 years, 1 month 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: sky/compositor/layer_host.cc
diff --git a/sky/compositor/layer_host.cc b/sky/compositor/layer_host.cc
index a4d5a0897eb3b2caedb2d228228209ca3f0eb640..ef6b543cd97ec7abccabaa69901eb74d975e74f3 100644
--- a/sky/compositor/layer_host.cc
+++ b/sky/compositor/layer_host.cc
@@ -19,9 +19,9 @@ LayerHost::LayerHost(LayerHostClient* client)
state_(kWaitingForSurfaceService),
frame_requested_(false),
surface_holder_(this, client->GetShell()),
- gl_context_(mojo::GLContext::Create(client->GetShell())),
- ganesh_context_(gl_context_),
- resource_manager_(gl_context_),
+ gl_context_owner_(client->GetShell()),
+ ganesh_context_(gl_context()),
+ resource_manager_(gl_context()),
weak_factory_(this) {
}

Powered by Google App Engine
This is Rietveld 408576698