Chromium Code Reviews| 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 309f87404944b3cd4349fef8b7c0495326795034..6704dce8f510353c6500084e09c31683d2dcdef3 100644 |
| --- a/cc/trees/layer_tree_host_impl.cc |
| +++ b/cc/trees/layer_tree_host_impl.cc |
| @@ -1626,6 +1626,11 @@ float LayerTreeHostImpl::VerticalAdjust() const { |
| } |
| void LayerTreeHostImpl::DidLoseOutputSurface() { |
| +#ifndef NDEBUG |
|
danakj
2014/06/13 18:34:10
why not #if DCHECK_IS_ON?
enne (OOO)
2014/06/13 20:10:41
Sorry, poor merge across three months.
|
| + // This must be set before calling the below functions as they may |
| + // synchronously try to recreate the output surface. |
| + did_lose_called_ = true; |
| +#endif |
| if (resource_provider_) |
| resource_provider_->DidLoseOutputSurface(); |
| // TODO(jamesr): The renderer_ check is needed to make some of the |
| @@ -1633,9 +1638,6 @@ void LayerTreeHostImpl::DidLoseOutputSurface() { |
| // important) in production. We should adjust the test to not need this. |
| if (renderer_) |
| client_->DidLoseOutputSurfaceOnImplThread(); |
| -#if DCHECK_IS_ON |
| - did_lose_called_ = true; |
| -#endif |
| } |
| bool LayerTreeHostImpl::HaveRootScrollLayer() const { |