| 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 3ab5385e93557778e1d28dea05215cb9a6ca369d..d621368253c88933c6b53e87599ff394bed8d633 100644
|
| --- a/cc/trees/layer_tree_host_impl.cc
|
| +++ b/cc/trees/layer_tree_host_impl.cc
|
| @@ -1460,6 +1460,8 @@ gfx::SizeF LayerTreeHostImpl::UnscaledScrollableViewportSize() const {
|
| }
|
|
|
| void LayerTreeHostImpl::DidLoseOutputSurface() {
|
| + if (resource_provider_)
|
| + resource_provider_->DidLoseOutputSurface();
|
| // TODO(jamesr): The renderer_ check is needed to make some of the
|
| // LayerTreeHostContextTest tests pass, but shouldn't be necessary (or
|
| // important) in production. We should adjust the test to not need this.
|
| @@ -1710,8 +1712,6 @@ bool LayerTreeHostImpl::InitializeRenderer(
|
| // the old resources (i.e. render_surfaces and texture IDs). Clear them
|
| // before we destroy the old resource provider.
|
| ReleaseTreeResources();
|
| - if (resource_provider_)
|
| - resource_provider_->DidLoseOutputSurface();
|
|
|
| // Note: order is important here.
|
| renderer_.reset();
|
|
|