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

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: 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
« cc/output/output_surface.cc ('K') | « 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..d48caa90befc3eda76f4b611c5106bec69f70c83 100644
--- a/content/renderer/gpu/compositor_output_surface.cc
+++ b/content/renderer/gpu/compositor_output_surface.cc
@@ -81,12 +81,11 @@ bool CompositorOutputSurface::BindToClient(
}
void CompositorOutputSurface::DetachFromClient() {
- if (!HasClient())
enne (OOO) 2016/05/06 19:43:30 I don't understand the changes here in this functi
danakj 2016/05/06 20:15:27 This calls cc::OutputSurface::DetachFromClient whi
- return;
- if (output_surface_proxy_.get())
+ if (output_surface_proxy_) {
output_surface_proxy_->ClearOutputSurface();
- output_surface_filter_->RemoveHandlerOnCompositorThread(
danakj 2016/05/06 20:15:27 Moving this inside the if is needed because we can
- routing_id_, output_surface_filter_handler_);
+ output_surface_filter_->RemoveHandlerOnCompositorThread(
+ routing_id_, output_surface_filter_handler_);
+ }
cc::OutputSurface::DetachFromClient();
}
« cc/output/output_surface.cc ('K') | « cc/output/output_surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698