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

Unified Diff: content/renderer/gpu/compositor_output_surface.cc

Issue 1949753007: Detach the output surface if bind fails. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: detach: . Created 4 years, 7 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 | « cc/output/output_surface.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/compositor_output_surface.cc
diff --git a/content/renderer/gpu/compositor_output_surface.cc b/content/renderer/gpu/compositor_output_surface.cc
index ae3f5142ba87611dcc38c75631888ca805005af1..4a46925bb001a76a1ce0030a87119f11e745b977 100644
--- a/content/renderer/gpu/compositor_output_surface.cc
+++ b/content/renderer/gpu/compositor_output_surface.cc
@@ -83,10 +83,11 @@ bool CompositorOutputSurface::BindToClient(
void CompositorOutputSurface::DetachFromClient() {
if (!HasClient())
return;
- if (output_surface_proxy_.get())
+ if (output_surface_proxy_) {
output_surface_proxy_->ClearOutputSurface();
- output_surface_filter_->RemoveHandlerOnCompositorThread(
- routing_id_, output_surface_filter_handler_);
+ output_surface_filter_->RemoveHandlerOnCompositorThread(
+ routing_id_, output_surface_filter_handler_);
+ }
cc::OutputSurface::DetachFromClient();
}
« no previous file with comments | « cc/output/output_surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698