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

Unified Diff: ui/compositor/layer_animation_delegate.h

Issue 1533643003: CC Animations: Port UI Browser Compositor to use compositor animation timelines. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@eventobserver
Patch Set: Rebase. Created 5 years 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.cc ('k') | ui/compositor/layer_animator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_animation_delegate.h
diff --git a/ui/compositor/layer_animation_delegate.h b/ui/compositor/layer_animation_delegate.h
index cc83f43d5364be081441defbc0995d934735d469..e1ec62451ca795add295898d3753f7dfdd8b049d 100644
--- a/ui/compositor/layer_animation_delegate.h
+++ b/ui/compositor/layer_animation_delegate.h
@@ -39,11 +39,15 @@ class COMPOSITOR_EXPORT LayerAnimationDelegate {
virtual float GetGrayscaleForAnimation() const = 0;
virtual SkColor GetColorForAnimation() const = 0;
virtual float GetDeviceScaleFactor() const = 0;
+
+ // TODO(loyso): Extract these 3 methods as a separate
+ // LayerThreadedAnimationDelegate.
virtual void AddThreadedAnimation(scoped_ptr<cc::Animation> animation) = 0;
virtual void RemoveThreadedAnimation(int animation_id) = 0;
- virtual LayerAnimatorCollection* GetLayerAnimatorCollection() = 0;
virtual cc::Layer* GetCcLayer() const = 0;
+ virtual LayerAnimatorCollection* GetLayerAnimatorCollection() = 0;
+
protected:
virtual ~LayerAnimationDelegate() {}
};
« no previous file with comments | « ui/compositor/layer.cc ('k') | ui/compositor/layer_animator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698