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

Unified Diff: ui/compositor/layer_animation_delegate.h

Issue 11896017: Thread ui opacity animations (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Correctly deal with sequences meant to start together Created 7 years, 11 months 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
Index: ui/compositor/layer_animation_delegate.h
diff --git a/ui/compositor/layer_animation_delegate.h b/ui/compositor/layer_animation_delegate.h
index 223eca2a781b3fe2222ee60721c4824f5349ba24..765c2d05a1a8a82ba274e56e84b50af5281e123c 100644
--- a/ui/compositor/layer_animation_delegate.h
+++ b/ui/compositor/layer_animation_delegate.h
@@ -5,11 +5,16 @@
#ifndef UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_
#define UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_
+#include "base/memory/scoped_ptr.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/compositor/compositor_export.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/transform.h"
+namespace cc {
+class Animation;
+}
+
namespace ui {
// Layer animations interact with the layers using this interface.
@@ -30,6 +35,8 @@ class COMPOSITOR_EXPORT LayerAnimationDelegate {
virtual float GetBrightnessForAnimation() const = 0;
virtual float GetGrayscaleForAnimation() const = 0;
virtual SkColor GetColorForAnimation() const = 0;
+ virtual void AddThreadedAnimation(scoped_ptr<cc::Animation> animation) = 0;
+ virtual void RemoveThreadedAnimation(int animation_id) = 0;
protected:
virtual ~LayerAnimationDelegate() {}

Powered by Google App Engine
This is Rietveld 408576698