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

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: 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/draw_properties.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index 1865815b707fcb16e38f2e47a4fe790a9d884b7e..60afdfb525ce79420c2e9edbffe60c4bb5ed2349 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -1715,23 +1715,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) {
« no previous file with comments | « cc/layers/draw_properties.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698