| Index: cc/blink/web_float_animation_curve_impl.cc
|
| diff --git a/cc/blink/web_float_animation_curve_impl.cc b/cc/blink/web_float_animation_curve_impl.cc
|
| index 243d1336ad46d50fd2779ccb6be76b3a6ce9a6b2..e5eee53eb872efd7b778b8808e90d75419888aa9 100644
|
| --- a/cc/blink/web_float_animation_curve_impl.cc
|
| +++ b/cc/blink/web_float_animation_curve_impl.cc
|
| @@ -46,6 +46,18 @@ void WebFloatAnimationCurveImpl::add(const WebFloatKeyframe& keyframe,
|
| cc::CubicBezierTimingFunction::Create(x1, y1, x2, y2)));
|
| }
|
|
|
| +void WebFloatAnimationCurveImpl::setTimingFunction(TimingFunctionType type) {
|
| + curve_->SetTimingFunction(CreateTimingFunction(type));
|
| +}
|
| +
|
| +void WebFloatAnimationCurveImpl::setTimingFunction(double x1,
|
| + double y1,
|
| + double x2,
|
| + double y2) {
|
| + curve_->SetTimingFunction(
|
| + cc::CubicBezierTimingFunction::Create(x1, y1, x2, y2).Pass());
|
| +}
|
| +
|
| float WebFloatAnimationCurveImpl::getValue(double time) const {
|
| return curve_->GetValue(time);
|
| }
|
|
|