From fdac56296ec1b7c862c64baa4606a983f9fb07e2 Mon Sep 17 00:00:00 2001 From: "dstockwell@chromium.org" Date: Wed, 9 Apr 2014 01:16:56 +0000 Subject: cc: Respect specified animation start times Although setting of start time was exposed via the WebAnimation interface it was clobbered when starting impl side animations. This patch removes the unused Animation::Clone method and makes Animation::CloneAndInitialize always copy the specified start time, if any. Start times are not currently specified outside tests but will soon be used by blink for animations started through the Web Animations API. BUG=360471 Review URL: https://codereview.chromium.org/228203004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262582 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/animation/animation.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cc/animation/animation.h') diff --git a/cc/animation/animation.h b/cc/animation/animation.h index f996c38..3cfc8bb 100644 --- a/cc/animation/animation.h +++ b/cc/animation/animation.h @@ -118,9 +118,7 @@ class CC_EXPORT Animation { // of iterations, returns the relative time in the current iteration. double TrimTimeToCurrentIteration(double monotonic_time) const; - scoped_ptr Clone() const; - scoped_ptr CloneAndInitialize(RunState initial_run_state, - double start_time) const; + scoped_ptr CloneAndInitialize(RunState initial_run_state) const; bool is_controlling_instance() const { return is_controlling_instance_; } void PushPropertiesTo(Animation* other) const; -- cgit v1.1