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

Unified Diff: cc/trees/layer_tree_host_common.cc

Issue 1906003002: cc: Stop cache transform invertibility at Layer and LayerImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more cleanup Created 4 years, 8 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
« cc/layers/layer.cc ('K') | « cc/layers/layer_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« cc/layers/layer.cc ('K') | « cc/layers/layer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698