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

Unified Diff: cc/animation/timing_function.cc

Issue 606543002: CC: Stop TimingFunction inheriting from AnimationCurve. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/timing_function.cc
diff --git a/cc/animation/timing_function.cc b/cc/animation/timing_function.cc
index 71319e121d8c10ad3bf2f0c0a6b9dfd37c7bf165..eca77edbbf9efcd03915f19a73f554518478c120 100644
--- a/cc/animation/timing_function.cc
+++ b/cc/animation/timing_function.cc
@@ -11,10 +11,6 @@ TimingFunction::TimingFunction() {}
TimingFunction::~TimingFunction() {}
-double TimingFunction::Duration() const {
- return 1.0;
-}
-
scoped_ptr<CubicBezierTimingFunction> CubicBezierTimingFunction::Create(
double x1, double y1, double x2, double y2) {
return make_scoped_ptr(new CubicBezierTimingFunction(x1, y1, x2, y2));
@@ -32,9 +28,9 @@ float CubicBezierTimingFunction::GetValue(double x) const {
return static_cast<float>(bezier_.Solve(x));
}
-scoped_ptr<AnimationCurve> CubicBezierTimingFunction::Clone() const {
- return make_scoped_ptr(
- new CubicBezierTimingFunction(*this)).PassAs<AnimationCurve>();
+scoped_ptr<TimingFunction> CubicBezierTimingFunction::Clone() const {
+ return make_scoped_ptr(new CubicBezierTimingFunction(*this))
+ .PassAs<TimingFunction>();
}
void CubicBezierTimingFunction::Range(float* min, float* max) const {

Powered by Google App Engine
This is Rietveld 408576698