Index: cc/blink/web_filter_animation_curve_impl.cc |
diff --git a/cc/blink/web_filter_animation_curve_impl.cc b/cc/blink/web_filter_animation_curve_impl.cc |
index 606929ea0f888e8711b7e29f8dbeff52e0f9cb99..bdbffe8f89a81b617f96511a59741a34321a8ad7 100644 |
--- a/cc/blink/web_filter_animation_curve_impl.cc |
+++ b/cc/blink/web_filter_animation_curve_impl.cc |
@@ -32,7 +32,8 @@ void WebFilterAnimationCurveImpl::add(const WebFilterKeyframe& keyframe, |
static_cast<const WebFilterOperationsImpl&>(keyframe.value()) |
.AsFilterOperations(); |
curve_->AddKeyframe(cc::FilterKeyframe::Create( |
- keyframe.time(), filter_operations, CreateTimingFunction(type))); |
+ base::TimeDelta::FromSecondsD(keyframe.time()), filter_operations, |
+ CreateTimingFunction(type))); |
} |
void WebFilterAnimationCurveImpl::add(const WebFilterKeyframe& keyframe, |
@@ -44,8 +45,7 @@ void WebFilterAnimationCurveImpl::add(const WebFilterKeyframe& keyframe, |
static_cast<const WebFilterOperationsImpl&>(keyframe.value()) |
.AsFilterOperations(); |
curve_->AddKeyframe(cc::FilterKeyframe::Create( |
- keyframe.time(), |
- filter_operations, |
+ base::TimeDelta::FromSecondsD(keyframe.time()), filter_operations, |
cc::CubicBezierTimingFunction::Create(x1, y1, x2, y2))); |
} |