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

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

Issue 143573004: [wip] interpolable value refactor. NOT FOR LANDING. Base URL: https://chromium.googlesource.com/chromium/blink.git@interpolationWrap
Patch Set: Created 6 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
« no previous file with comments | « Source/core/animation/Animation.cpp ('k') | Source/core/animation/AnimationStack.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimationEffect.h
diff --git a/Source/core/animation/AnimationEffect.h b/Source/core/animation/AnimationEffect.h
index 7ea4d21d06218dab3469fe8e4323598c55f37504..0658dc983356e5399bfcf9406fc2cc0ab183574a 100644
--- a/Source/core/animation/AnimationEffect.h
+++ b/Source/core/animation/AnimationEffect.h
@@ -39,6 +39,7 @@
namespace WebCore {
class AnimatableValue;
+class Interpolation;
class AnimationEffect : public RefCounted<AnimationEffect> {
public:
@@ -54,12 +55,14 @@ public:
virtual ~CompositableValue() { }
virtual bool dependsOnUnderlyingValue() const = 0;
virtual PassRefPtr<AnimatableValue> compositeOnto(const AnimatableValue*) const = 0;
+
+ virtual bool isAnimatableValue() const { return false; }
};
virtual ~AnimationEffect() { }
typedef HashMap<CSSPropertyID, RefPtr<CompositableValue> > CompositableValueMap;
typedef Vector<std::pair<CSSPropertyID, RefPtr<CompositableValue> > > CompositableValueList;
- virtual PassOwnPtr<CompositableValueList> sample(int iteration, double fraction) const = 0;
+ virtual PassOwnPtr<Vector<RefPtr<Interpolation> > > sample(int iteration, double fraction) const = 0;
virtual bool affects(CSSPropertyID) { return false; };
virtual bool isKeyframeEffectModel() const { return false; }
« no previous file with comments | « Source/core/animation/Animation.cpp ('k') | Source/core/animation/AnimationStack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698