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..3077a145c3fc5b18bf4a3f4f42a26c2b681c09e6 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(), |
jamesr
2014/03/10 20:37:28
what's wrong with this?
|
+ ToWebKitTime(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(), |
+ ToWebKitTime(monotonic_time), |
static_cast<blink::WebAnimation::TargetProperty>(target_property)); |
} |