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

Unified Diff: cc/layers/layer.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.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index b02c456e77dad686bce13d86edb489d8fd33ddc1..4d66004bf38568c77fac9f13fbe0fe8ab30a28f5 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -1705,23 +1705,11 @@ void Layer::OnTransformIsPotentiallyAnimatingChanged(
node->data.has_potential_animation = has_potential_animation;
if (has_potential_animation) {
- 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;
- }
- property_trees->transform_tree.set_needs_update(true);
+ } else {
+ node->data.has_only_translation_animations = true;
+ }
+ property_trees->transform_tree.set_needs_update(true);
}
void Layer::OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating) {

Powered by Google App Engine
This is Rietveld 408576698