summaryrefslogtreecommitdiffstats
path: root/cc/test/layer_tree_test.h
diff options
context:
space:
mode:
authorajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-09 21:30:25 +0000
committerajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-09 21:30:25 +0000
commit8dec4d09a4b963fe41e8dc36584bea451c7b39fd (patch)
treed899f9f1e83d8f888ef894fe28f2e994bc9a850e /cc/test/layer_tree_test.h
parentadd747d17d785bfbb8cebbcd5f34ee7d66e647c5 (diff)
downloadchromium_src-8dec4d09a4b963fe41e8dc36584bea451c7b39fd.zip
chromium_src-8dec4d09a4b963fe41e8dc36584bea451c7b39fd.tar.gz
chromium_src-8dec4d09a4b963fe41e8dc36584bea451c7b39fd.tar.bz2
Add monotonic time and target property to cc::AnimationDelegate notifications
This adds monotonic time and target property as arguments to cc::AnimationDelegate::NotifyAnimation{Started, Finished}. The existing wall clock time argument can be removed once Blink's legacy implementation of CSS animations and transitions is removed. The target property argument is needed so that Blink can distinguish between notifications for CSS animations/transitions and notifications for the scroll animations being added for the CSSOM View smooth scroll API. BUG=299945,243871 Review URL: https://codereview.chromium.org/99733003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239554 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/layer_tree_test.h')
-rw-r--r--cc/test/layer_tree_test.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/cc/test/layer_tree_test.h b/cc/test/layer_tree_test.h
index ac35a65..dd5a8d5 100644
--- a/cc/test/layer_tree_test.h
+++ b/cc/test/layer_tree_test.h
@@ -75,8 +75,14 @@ class TestHooks : public AnimationDelegate {
virtual base::TimeDelta LowFrequencyAnimationInterval() const;
// Implementation of AnimationDelegate:
- virtual void NotifyAnimationStarted(double time) OVERRIDE {}
- virtual void NotifyAnimationFinished(double time) OVERRIDE {}
+ virtual void NotifyAnimationStarted(
+ double wall_clock_time,
+ base::TimeTicks monotonic_time,
+ Animation::TargetProperty target_property) OVERRIDE {}
+ virtual void NotifyAnimationFinished(
+ double wall_clock_time,
+ base::TimeTicks monotonic_time,
+ Animation::TargetProperty target_property) OVERRIDE {}
virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback) = 0;
virtual scoped_refptr<ContextProvider> OffscreenContextProvider() = 0;