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

Unified Diff: mojo/skia/ganesh_context.cc

Issue 753643002: Enable the Sky compositor again (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Moar comments 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
« no previous file with comments | « no previous file | sky/compositor/layer_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/skia/ganesh_context.cc
diff --git a/mojo/skia/ganesh_context.cc b/mojo/skia/ganesh_context.cc
index f2f312782d1c8d7ede6c04b6015984a78d937e97..f483cf23bff00997a0cae01dc72ad2faf3bd6c2f 100644
--- a/mojo/skia/ganesh_context.cc
+++ b/mojo/skia/ganesh_context.cc
@@ -46,6 +46,10 @@ GaneshContext::GaneshContext(base::WeakPtr<GLContext> gl_context)
}
GaneshContext::~GaneshContext() {
+ if (context_) {
+ Scope scope(this);
+ context_.clear();
+ }
if (gl_context_.get())
gl_context_->RemoveObserver(this);
}
« no previous file with comments | « no previous file | sky/compositor/layer_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698