| Index: cc/trees/layer_tree_host_impl.cc
|
| diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
|
| index 6d8aaa614416f7b54b4c6a1c3fb1b7ee04d38a5d..1c9546bbf64ad21bc1fc7fca1a101b7a59606a5f 100644
|
| --- a/cc/trees/layer_tree_host_impl.cc
|
| +++ b/cc/trees/layer_tree_host_impl.cc
|
| @@ -275,6 +275,9 @@ LayerTreeHostImpl::~LayerTreeHostImpl() {
|
| TRACE_EVENT_OBJECT_DELETED_WITH_ID(
|
| TRACE_DISABLED_BY_DEFAULT("cc.debug"), "cc::LayerTreeHostImpl", id_);
|
|
|
| + // It is released before shutdown.
|
| + DCHECK(!output_surface_);
|
| +
|
| if (input_handler_client_) {
|
| input_handler_client_->WillShutdown();
|
| input_handler_client_ = NULL;
|
| @@ -300,11 +303,6 @@ LayerTreeHostImpl::~LayerTreeHostImpl() {
|
| CleanUpTileManagerAndUIResources();
|
| renderer_ = nullptr;
|
| resource_provider_ = nullptr;
|
| -
|
| - if (output_surface_) {
|
| - output_surface_->DetachFromClient();
|
| - output_surface_ = nullptr;
|
| - }
|
| }
|
|
|
| void LayerTreeHostImpl::BeginMainFrameAborted(CommitEarlyOutReason reason) {
|
|
|