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

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: Fix ash_unittests Created 7 years, 10 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
« no previous file with comments | « ui/compositor/layer.cc ('k') | ui/compositor/layer_animation_element.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 223eca2a781b3fe2222ee60721c4824f5349ba24..8d144d3028aabce21e48b3d30b7e43627470a13e 100644
--- a/ui/compositor/layer_animation_delegate.h
+++ b/ui/compositor/layer_animation_delegate.h
@@ -5,6 +5,8 @@
#ifndef UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_
#define UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_
+#include "base/memory/scoped_ptr.h"
+#include "cc/animation.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/compositor/compositor_export.h"
#include "ui/gfx/rect.h"
@@ -30,6 +32,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() {}
« no previous file with comments | « ui/compositor/layer.cc ('k') | ui/compositor/layer_animation_element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698