| Index: webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapter.cc
|
| diff --git a/webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapter.cc b/webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapter.cc
|
| index a1de2a26869f9fa71e85bf7a84e890552fd3d2f8..2c4b4e461128a17266ca30d371612457b3eefe40 100644
|
| --- a/webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapter.cc
|
| +++ b/webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapter.cc
|
| @@ -5,6 +5,7 @@
|
| #include "webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapter.h"
|
|
|
| #include "third_party/WebKit/public/platform/WebAnimationDelegate.h"
|
| +#include "webkit/renderer/compositor_bindings/webkit_time.h"
|
|
|
| namespace webkit {
|
|
|
| @@ -16,7 +17,7 @@ void WebToCCAnimationDelegateAdapter::NotifyAnimationStarted(
|
| base::TimeTicks monotonic_time,
|
| cc::Animation::TargetProperty target_property) {
|
| delegate_->notifyAnimationStarted(
|
| - (monotonic_time - base::TimeTicks()).InSecondsF(),
|
| + ToWebKitMonotonicTime(monotonic_time),
|
| static_cast<blink::WebAnimation::TargetProperty>(target_property));
|
| }
|
|
|
| @@ -24,7 +25,7 @@ void WebToCCAnimationDelegateAdapter::NotifyAnimationFinished(
|
| base::TimeTicks monotonic_time,
|
| cc::Animation::TargetProperty target_property) {
|
| delegate_->notifyAnimationFinished(
|
| - (monotonic_time - base::TimeTicks()).InSecondsF(),
|
| + ToWebKitMonotonicTime(monotonic_time),
|
| static_cast<blink::WebAnimation::TargetProperty>(target_property));
|
| }
|
|
|
|
|