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

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: Fix compile error 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
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 18562bc1c19fbc0da298083cf3ad6adbe1595510..e28742bc62a21eb087ddeab9df0f5da8ffe0e2fe 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -540,21 +540,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;
}

Powered by Google App Engine
This is Rietveld 408576698