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

Unified Diff: Source/core/animation/AnimatableValue.h

Issue 19367002: Implement DeferredAnimatableValue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 5 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: Source/core/animation/AnimatableValue.h
diff --git a/Source/core/animation/AnimatableValue.h b/Source/core/animation/AnimatableValue.h
index 3cc1697f9b9d938de42a9ca809c2e70d847ab43a..82661a073a4b759313380713a96bc491229dda8f 100644
--- a/Source/core/animation/AnimatableValue.h
+++ b/Source/core/animation/AnimatableValue.h
@@ -47,12 +47,16 @@ public:
static const AnimatableValue* neutralValue();
virtual bool isNeutral() const { return false; }
+ static const AnimatableValue* deferredSnapshotValue();
+ virtual bool isDeferredSnapshot() const { return false; }
+
static PassRefPtr<AnimatableValue> interpolate(const AnimatableValue*, const AnimatableValue*, double fraction);
// For noncommutative values read add(A, B) to mean the value A with B composed onto it.
static PassRefPtr<AnimatableValue> add(const AnimatableValue*, const AnimatableValue*);
protected:
enum AnimatableType {
+ TypeDeferredSnapshot,
TypeNeutral,
TypeNumber,
TypeUnknown,

Powered by Google App Engine
This is Rietveld 408576698