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

Unified Diff: cc/animation/animation_player.cc

Issue 2971503002: Transform animations should not collapse by default when interpolating (Closed)
Patch Set: try again Created 3 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/animation/animation_player.cc
diff --git a/cc/animation/animation_player.cc b/cc/animation/animation_player.cc
index 3174dcbdab096b0c5b8c3269e6a638372bdbfa47..01b1a1a39ae6d152a894e4450c4758a0589cd71b 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;
}

Powered by Google App Engine
This is Rietveld 408576698