Chromium Code Reviews| 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(); |
| } |