| 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 ed71923b8f40d7813ddd828a59f6b593f8067b85..9b15475b7368b343ff96eed49bf22e3d96a374fb 100644
|
| --- a/cc/trees/layer_tree_host_impl.cc
|
| +++ b/cc/trees/layer_tree_host_impl.cc
|
| @@ -1988,11 +1988,9 @@ void LayerTreeHostImpl::SetVisible(bool visible) {
|
| else
|
| EvictAllUIResources();
|
|
|
| - // Call PrepareTiles unconditionally on visibility change since this tab may
|
| - // never get another draw or timer tick. When becoming visible we care about
|
| - // unblocking the scheduler which might be waiting for activation / ready to
|
| - // draw. When becoming invisible we care about evicting tiles immediately.
|
| - PrepareTiles();
|
| + // Call PrepareTiles to evict tiles when we become invisible.
|
| + if (!visible)
|
| + PrepareTiles();
|
|
|
| if (!renderer_)
|
| return;
|
|
|