diff options
Diffstat (limited to 'cc/trees/layer_tree_host_common.cc')
-rw-r--r-- | cc/trees/layer_tree_host_common.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc index b094c94..489a9e9 100644 --- a/cc/trees/layer_tree_host_common.cc +++ b/cc/trees/layer_tree_host_common.cc @@ -1102,15 +1102,15 @@ static void PreCalculateMetaInformationInternal( layer->set_layer_or_descendant_is_drawn(false); layer->set_visited(false); + if (layer->clip_parent()) + recursive_data->num_unclipped_descendants++; + if (!HasInvertibleOrAnimatedTransform(layer)) { // Layers with singular transforms should not be drawn, the whole subtree // can be skipped. return; } - if (layer->clip_parent()) - recursive_data->num_unclipped_descendants++; - for (size_t i = 0; i < layer->children().size(); ++i) { Layer* child_layer = layer->child_at(i); @@ -1146,15 +1146,15 @@ static void PreCalculateMetaInformationInternal( layer->set_layer_or_descendant_is_drawn(false); layer->set_visited(false); + if (layer->clip_parent()) + recursive_data->num_unclipped_descendants++; + if (!HasInvertibleOrAnimatedTransform(layer)) { // Layers with singular transforms should not be drawn, the whole subtree // can be skipped. return; } - if (layer->clip_parent()) - recursive_data->num_unclipped_descendants++; - for (size_t i = 0; i < layer->children().size(); ++i) { LayerImpl* child_layer = layer->child_at(i); |