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

Unified Diff: mojo/cc/output_surface_mojo.cc

Issue 1362243002: mojo: Add proper implementation of DetachFromClient to OutputSurfaceMojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « mojo/cc/output_surface_mojo.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/cc/output_surface_mojo.cc
diff --git a/mojo/cc/output_surface_mojo.cc b/mojo/cc/output_surface_mojo.cc
index c0998cae543c5e140d719e4a770d57f1cad8f95d..f06835f43c49a95960ce017900f6f44137e5fd00 100644
--- a/mojo/cc/output_surface_mojo.cc
+++ b/mojo/cc/output_surface_mojo.cc
@@ -30,6 +30,11 @@ bool OutputSurfaceMojo::BindToClient(cc::OutputSurfaceClient* client) {
return cc::OutputSurface::BindToClient(client);
}
+void OutputSurfaceMojo::DetachFromClient() {
+ surface_.reset();
+ cc::OutputSurface::DetachFromClient();
+}
+
void OutputSurfaceMojo::SwapBuffers(cc::CompositorFrame* frame) {
// TODO(fsamuel, rjkroege): We should probably throttle compositor frames.
client_->DidSwapBuffers();
« no previous file with comments | « mojo/cc/output_surface_mojo.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698