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

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

Issue 19367002: Implement DeferredAnimatableValue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rename class 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.cpp
diff --git a/Source/core/animation/AnimatableValue.cpp b/Source/core/animation/AnimatableValue.cpp
index 763788093f624bd6cd513c236a73c9dcd4827904..63af8cbb00ccad50a959c8f3eca1568d40fdd4b8 100644
--- a/Source/core/animation/AnimatableValue.cpp
+++ b/Source/core/animation/AnimatableValue.cpp
@@ -34,6 +34,7 @@
#include "core/animation/AnimatableNeutral.h"
#include "core/animation/AnimatableNumber.h"
#include "core/animation/AnimatableUnknown.h"
+#include "core/animation/DeferredAnimatableValue.h"
#include <algorithm>
@@ -54,6 +55,12 @@ const AnimatableValue* AnimatableValue::neutralValue()
return neutralSentinelValue;
}
+const AnimatableValue* AnimatableValue::deferredSnapshotValue()
Steve Block 2013/08/05 08:14:56 deferredValue() to match DeferredAnimatableValue?
+{
+ static DeferredAnimatableValue* deferredAnimatableValueSentinel = DeferredAnimatableValue::create().leakRef();
+ return deferredAnimatableValueSentinel;
+}
+
PassRefPtr<AnimatableValue> AnimatableValue::interpolate(const AnimatableValue* left, const AnimatableValue* right, double fraction)
{
ASSERT(left);

Powered by Google App Engine
This is Rietveld 408576698