Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Unified Diff: ui/compositor/layer_animator.h

Issue 11316135: NOT READY FOR REVIEW - Add support for custom animation timers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/compositor/layer_animation_timer.h ('k') | ui/compositor/layer_animator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_animator.h
diff --git a/ui/compositor/layer_animator.h b/ui/compositor/layer_animator.h
index 6c24008cb0d7698e1cb2ecca9d43bd3de14a8244..37e182b743b93e0bd69ee0c08a003e22de2bfa07 100644
--- a/ui/compositor/layer_animator.h
+++ b/ui/compositor/layer_animator.h
@@ -29,6 +29,7 @@ class Layer;
class LayerAnimationSequence;
class LayerAnimationDelegate;
class LayerAnimationObserver;
+class LayerAnimationTimer;
class ScopedLayerAnimationSettings;
// When a property of layer needs to be changed it is set by way of
@@ -193,6 +194,13 @@ class COMPOSITOR_EXPORT LayerAnimator
return disable_animations_for_test_;
}
+ // Takes ownership of the given timer.
+ // FIXME(vollick): Once we've written a TestLayerAnimationTimer than can be
+ // used to advance animations, we can probably get rid of last_tick_time() and
+ // all the code in the layer animation tests that advances animations using
+ // AnimationContainerElement::Step.
+ static void SetAnimationTimer(LayerAnimationTimer* timer);
+
protected:
virtual ~LayerAnimator();
« no previous file with comments | « ui/compositor/layer_animation_timer.h ('k') | ui/compositor/layer_animator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698