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

Unified Diff: cc/animation/scroll_offset_animation_curve.cc

Issue 2032643003: CC Animation: Erase EaseTimingFunction helpers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gmock
Patch Set: Created 4 years, 7 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/scroll_offset_animation_curve.cc
diff --git a/cc/animation/scroll_offset_animation_curve.cc b/cc/animation/scroll_offset_animation_curve.cc
index 5b95f561685fa48533c61b4a1efebb5c894ae3e0..b207994c092a327a70c753d99b7c93f4446bf4c2 100644
--- a/cc/animation/scroll_offset_animation_curve.cc
+++ b/cc/animation/scroll_offset_animation_curve.cc
@@ -69,7 +69,8 @@ static std::unique_ptr<TimingFunction> EaseOutWithInitialVelocity(
// Clamp velocity to a sane value.
velocity = std::min(std::max(velocity, -1000.0), 1000.0);
- // Based on EaseInOutTimingFunction::Create with first control point scaled.
+ // Based on CubicBezierTimingFunction::EaseType::EASE_IN_OUT preset
+ // with first control point scaled.
const double x1 = 0.42;
const double y1 = velocity * x1;
return CubicBezierTimingFunction::Create(x1, y1, 0.58, 1);
« no previous file with comments | « cc/animation/keyframed_animation_curve_unittest.cc ('k') | cc/animation/scroll_offset_animation_curve_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698