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

Unified Diff: mojo/cc/output_surface_mojo.cc

Issue 695183003: Bring skydebugger closer to clean-shutdown (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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: mojo/cc/output_surface_mojo.cc
diff --git a/mojo/cc/output_surface_mojo.cc b/mojo/cc/output_surface_mojo.cc
index 193c7acb78649d606cfcbcc9c954bf111e44141f..e3b87e1ee4e0bd4cbbd7d7fe44788f3cfc247831 100644
--- a/mojo/cc/output_surface_mojo.cc
+++ b/mojo/cc/output_surface_mojo.cc
@@ -25,6 +25,8 @@ OutputSurfaceMojo::OutputSurfaceMojo(
}
OutputSurfaceMojo::~OutputSurfaceMojo() {
+ if (!surface_id_.is_null())
+ surface_->DestroySurface(SurfaceId::From(surface_id_));
eseidel 2014/11/05 18:27:08 My understanding is that this is necessary based o
}
void OutputSurfaceMojo::ReturnResources(Array<ReturnedResourcePtr> resources) {
« no previous file with comments | « no previous file | mojo/services/view_manager/display_manager.cc » ('j') | mojo/services/view_manager/display_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698