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

Unified Diff: cc/animation/animation_player.cc

Issue 2971503002: Transform animations should not collapse by default when interpolating (Closed)
Patch Set: . Created 3 years, 5 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/animation/animation_curve.h ('k') | cc/animation/element_animations.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_player.cc
diff --git a/cc/animation/animation_player.cc b/cc/animation/animation_player.cc
index b08284f6ad190715f5c313dbd5be81756cc478ca..42137731dcf73cb478916aa0035f6e4f3a700ea5 100644
--- a/cc/animation/animation_player.cc
+++ b/cc/animation/animation_player.cc
@@ -12,6 +12,7 @@
#include "cc/animation/animation_host.h"
#include "cc/animation/animation_timeline.h"
#include "cc/animation/scroll_offset_animation_curve.h"
+#include "cc/animation/transform_operations.h"
#include "cc/trees/property_animation_state.h"
namespace cc {
@@ -739,10 +740,10 @@ void AnimationPlayer::TickAnimations(base::TimeTicks monotonic_time) {
case TargetProperty::TRANSFORM: {
const TransformAnimationCurve* transform_animation_curve =
animations_[i]->curve()->ToTransformAnimationCurve();
- const gfx::Transform transform =
+ const TransformOperations operations =
transform_animation_curve->GetValue(trimmed);
- element_animations_->NotifyClientTransformAnimated(
- transform, animations_[i]->affects_active_elements(),
+ element_animations_->NotifyClientTransformOperationsAnimated(
+ operations, animations_[i]->affects_active_elements(),
animations_[i]->affects_pending_elements());
break;
}
« no previous file with comments | « cc/animation/animation_curve.h ('k') | cc/animation/element_animations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698