Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4090)

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 1832233002: cc : Use effect tree to determine if a layer is inside replica (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/proto/property_tree.proto ('k') | cc/trees/property_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « cc/proto/property_tree.proto ('k') | cc/trees/property_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698