| Index: cc/trees/layer_tree_impl.cc
|
| diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
|
| index 0420344247132d31c1a144f60545119b769a9d73..6132b70e3392758f50bb2b838a35b611695063dc 100644
|
| --- a/cc/trees/layer_tree_impl.cc
|
| +++ b/cc/trees/layer_tree_impl.cc
|
| @@ -861,15 +861,7 @@ bool LayerTreeImpl::UpdateDrawProperties(bool update_lcd_text) {
|
| it != end; ++it) {
|
| occlusion_tracker.EnterLayer(it);
|
|
|
| - // There are very few render targets so this should be cheap to do for
|
| - // each layer instead of something more complicated.
|
| - bool inside_replica = false;
|
| - LayerImpl* layer = it->render_target();
|
| - while (layer && !inside_replica) {
|
| - if (layer->render_target()->has_replica())
|
| - inside_replica = true;
|
| - layer = layer->render_target()->parent();
|
| - }
|
| + bool inside_replica = it->render_target()->InsideReplica();
|
|
|
| // Don't use occlusion if a layer will appear in a replica, since the
|
| // tile raster code does not know how to look for the replica and would
|
|
|