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

Unified Diff: cc/trees/draw_property_utils.cc

Issue 2105673003: cc: Compute animation scale on demand (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit changes Created 4 years, 6 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/test/layer_tree_host_common_test.h ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/draw_property_utils.cc
diff --git a/cc/trees/draw_property_utils.cc b/cc/trees/draw_property_utils.cc
index d46151d683598cdf8f0e0e53c3f8ae36c3585c0e..50c2b90e22594d9278645725e350df498b70e5f3 100644
--- a/cc/trees/draw_property_utils.cc
+++ b/cc/trees/draw_property_utils.cc
@@ -1209,17 +1209,6 @@ void ComputeLayerDrawProperties(LayerImpl* layer,
}
layer->draw_properties().screen_space_transform_is_animating =
transform_node->data.to_screen_is_potentially_animated;
- if (layer->layer_tree_impl()
- ->settings()
- .layer_transforms_should_scale_layer_contents) {
- layer->draw_properties().maximum_animation_contents_scale =
- transform_node->data.combined_maximum_animation_target_scale;
- layer->draw_properties().starting_animation_contents_scale =
- transform_node->data.combined_starting_animation_scale;
- } else {
- layer->draw_properties().maximum_animation_contents_scale = 0.f;
- layer->draw_properties().starting_animation_contents_scale = 0.f;
- }
layer->draw_properties().opacity =
LayerDrawOpacity(layer, property_trees->effect_tree);
« no previous file with comments | « cc/test/layer_tree_host_common_test.h ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698