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

Unified Diff: cc/animation_events.h

Issue 12453010: Allow impl-only animations, and return opacity values via AnimationEvents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update transform on Layer also. Created 7 years, 9 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 | « cc/animation.cc ('k') | cc/layer.h » ('j') | cc/layer_animation_controller.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation_events.h
diff --git a/cc/animation_events.h b/cc/animation_events.h
index 69b44bca2652cc43d3b16cd35d94c5e793f3d13e..f84f038bf2639891c218d8996964b21b7c5dbaaf 100644
--- a/cc/animation_events.h
+++ b/cc/animation_events.h
@@ -8,11 +8,12 @@
#include <vector>
#include "cc/animation.h"
+#include "ui/gfx/transform.h"
namespace cc {
struct AnimationEvent {
- enum Type { Started, Finished };
+ enum Type { Started, Finished, PropertyUpdate };
AnimationEvent(Type type, int layerId, int groupId, Animation::TargetProperty targetProperty, double monotonicTime)
: type(type)
@@ -20,6 +21,7 @@ struct AnimationEvent {
, groupId(groupId)
, targetProperty(targetProperty)
, monotonicTime(monotonicTime)
+ , value(0)
{
}
@@ -28,6 +30,8 @@ struct AnimationEvent {
int groupId;
Animation::TargetProperty targetProperty;
double monotonicTime;
+ float value;
+ gfx::Transform transform;
Ian Vollick 2013/03/06 23:29:45 nit: s/value/opacity/. Here and elsewhere.
wjmaclean 2013/03/07 13:49:29 Done.
};
typedef std::vector<AnimationEvent> AnimationEventsVector;
« no previous file with comments | « cc/animation.cc ('k') | cc/layer.h » ('j') | cc/layer_animation_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698