Commit 9859a501 authored by mithro@mithis.com's avatar mithro@mithis.com

Second step to remove wallClockTime from Blink's animation delegate interface.

We are currently removing trying to remove all references to base::Time (wall
clock time) from Chrome/Blink compositor/graphics stack.

This requires multiple two-sided patches. Following the process found at
https://groups.google.com/a/chromium.org/d/msg/chromium-dev/ukaRczAK6t8/0ludyZ1Nu4cJ

The steps are;
 * Adding monotonic only API to Blink's animation delegate interface
   https://codereview.chromium.org/185633002

 * (This Patch) -- Making the delegate adapter use monotonic only API
   https://codereview.chromium.org/185643002

 * Remove the wallClockTime API from Blink/WebKit.
   https://codereview.chromium.org/185393005

BUG=299945

Review URL: https://codereview.chromium.org/185643002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255613 0039d316-1c4b-4281-b951-d872f2087c98
parent be1bd6d3
......@@ -17,7 +17,6 @@ void WebToCCAnimationDelegateAdapter::NotifyAnimationStarted(
base::TimeTicks monotonic_time,
cc::Animation::TargetProperty target_property) {
delegate_->notifyAnimationStarted(
wall_clock_time,
(monotonic_time - base::TimeTicks()).InSecondsF(),
static_cast<blink::WebAnimation::TargetProperty>(target_property));
}
......@@ -27,7 +26,6 @@ void WebToCCAnimationDelegateAdapter::NotifyAnimationFinished(
base::TimeTicks monotonic_time,
cc::Animation::TargetProperty target_property) {
delegate_->notifyAnimationFinished(
wall_clock_time,
(monotonic_time - base::TimeTicks()).InSecondsF(),
static_cast<blink::WebAnimation::TargetProperty>(target_property));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment