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

Unified Diff: cc/layers/layer_impl.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/layers/layer.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 1ad29f0a51f300aed28b34fbe6e220075691ab15..9a1b979d613ea6a0acfeab76580c49acf8998909 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -539,21 +539,9 @@ void LayerImpl::UpdatePropertyTreeTransformIsAnimated(bool is_animated) {
if (node->data.has_potential_animation != is_animated) {
node->data.has_potential_animation = is_animated;
if (is_animated) {
- float maximum_target_scale = 0.f;
- node->data.local_maximum_animation_target_scale =
- MaximumTargetScale(&maximum_target_scale) ? maximum_target_scale
- : 0.f;
-
- float animation_start_scale = 0.f;
- node->data.local_starting_animation_scale =
- AnimationStartScale(&animation_start_scale) ? animation_start_scale
- : 0.f;
-
node->data.has_only_translation_animations =
HasOnlyTranslationTransforms();
} else {
- node->data.local_maximum_animation_target_scale = 0.f;
- node->data.local_starting_animation_scale = 0.f;
node->data.has_only_translation_animations = true;
}
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698