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

Unified Diff: cc/animation/keyframed_animation_curve.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/keyframed_animation_curve.cc
diff --git a/cc/animation/keyframed_animation_curve.cc b/cc/animation/keyframed_animation_curve.cc
index 9094546c9c595234b1d5082701db1e94c4b4e051..be6399f2c1db7813fe11ac620e930c21ffeacb59 100644
--- a/cc/animation/keyframed_animation_curve.cc
+++ b/cc/animation/keyframed_animation_curve.cc
@@ -343,13 +343,13 @@ std::unique_ptr<AnimationCurve> KeyframedTransformAnimationCurve::Clone()
return std::move(to_return);
}
-gfx::Transform KeyframedTransformAnimationCurve::GetValue(
+TransformOperations KeyframedTransformAnimationCurve::GetValue(
base::TimeDelta t) const {
if (t <= TimeUtil::Scale(keyframes_.front()->Time(), scaled_duration()))
- return keyframes_.front()->Value().Apply();
+ return keyframes_.front()->Value();
if (t >= TimeUtil::Scale(keyframes_.back()->Time(), scaled_duration()))
- return keyframes_.back()->Value().Apply();
+ return keyframes_.back()->Value();
t = TransformedAnimationTime(keyframes_, timing_function_, scaled_duration(),
t);

Powered by Google App Engine
This is Rietveld 408576698