| Index: cc/trees/layer_tree_host_common.cc
|
| diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
|
| index b94c34a5309861eb66ca78f12aa1db2142cb9a6f..bb75d7dab810c3ac9e4b8220ad1a31a3dcae78fa 100644
|
| --- a/cc/trees/layer_tree_host_common.cc
|
| +++ b/cc/trees/layer_tree_host_common.cc
|
| @@ -249,12 +249,6 @@ static inline bool IsRootLayer(const Layer* layer) {
|
| return !layer->parent();
|
| }
|
|
|
| -template <typename LayerType>
|
| -static bool HasInvertibleOrAnimatedTransform(LayerType* layer) {
|
| - return layer->transform_is_invertible() ||
|
| - layer->HasPotentiallyRunningTransformAnimation();
|
| -}
|
| -
|
| static inline void MarkLayerWithRenderSurfaceLayerListId(
|
| LayerImpl* layer,
|
| int current_render_surface_layer_list_id) {
|
| @@ -336,12 +330,6 @@ static void PreCalculateMetaInformationInternal(
|
| 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;
|
| - }
|
| -
|
| for (size_t i = 0; i < layer->children().size(); ++i) {
|
| Layer* child_layer = layer->child_at(i);
|
|
|
| @@ -375,12 +363,6 @@ static void PreCalculateMetaInformationInternalForTesting(
|
| 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;
|
| - }
|
| -
|
| for (size_t i = 0; i < layer->children().size(); ++i) {
|
| LayerImpl* child_layer = layer->child_at(i);
|
|
|
|
|