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

Unified Diff: cc/animation/timing_function.h

Issue 393713002: Scroll offset animation curve retargeting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove workaround. Created 6 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/scroll_offset_animation_curve_unittest.cc ('k') | cc/animation/timing_function.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/timing_function.h
diff --git a/cc/animation/timing_function.h b/cc/animation/timing_function.h
index 647701f30ce596627279804ab0d6a765d04b209a..cc979398e4b4b098ece44d57269c1e220605129b 100644
--- a/cc/animation/timing_function.h
+++ b/cc/animation/timing_function.h
@@ -22,6 +22,7 @@ class CC_EXPORT TimingFunction : public FloatAnimationCurve {
// The smallest and largest values returned by GetValue for inputs in
// [0, 1].
virtual void Range(float* min, float* max) const = 0;
+ virtual float Velocity(double time) const = 0;
protected:
TimingFunction();
@@ -41,6 +42,7 @@ class CC_EXPORT CubicBezierTimingFunction : public TimingFunction {
virtual scoped_ptr<AnimationCurve> Clone() const OVERRIDE;
virtual void Range(float* min, float* max) const OVERRIDE;
+ virtual float Velocity(double time) const OVERRIDE;
protected:
CubicBezierTimingFunction(double x1, double y1, double x2, double y2);
« no previous file with comments | « cc/animation/scroll_offset_animation_curve_unittest.cc ('k') | cc/animation/timing_function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698