Index: cc/keyframed_animation_curve.h |
diff --git a/cc/keyframed_animation_curve.h b/cc/keyframed_animation_curve.h |
index 5685eb87bdc8bfb912831ea6728e9d78395262f8..02136d18d9c9f4a6c36de607a42e0fe80e4c9098 100644 |
--- a/cc/keyframed_animation_curve.h |
+++ b/cc/keyframed_animation_curve.h |
@@ -9,6 +9,7 @@ |
#include "cc/cc_export.h" |
#include "cc/scoped_ptr_vector.h" |
#include "cc/timing_function.h" |
+#include "cc/transform_operations.h" |
#include "third_party/WebKit/Source/Platform/chromium/public/WebTransformOperations.h" |
namespace cc { |
@@ -44,6 +45,22 @@ private: |
float m_value; |
}; |
+#if WEB_TRANSFORM_OPERATIONS_IS_VIRTUAL |
+class CC_EXPORT TransformKeyframe : public Keyframe { |
+public: |
+ static scoped_ptr<TransformKeyframe> create(double time, const TransformOperations& value, scoped_ptr<TimingFunction>); |
+ virtual ~TransformKeyframe(); |
+ |
+ const TransformOperations& value() const; |
+ |
+ scoped_ptr<TransformKeyframe> clone() const; |
+ |
+private: |
+ TransformKeyframe(double time, const TransformOperations& value, scoped_ptr<TimingFunction>); |
+ |
+ TransformOperations m_value; |
+}; |
+#else |
class CC_EXPORT TransformKeyframe : public Keyframe { |
public: |
static scoped_ptr<TransformKeyframe> create(double time, const WebKit::WebTransformOperations& value, scoped_ptr<TimingFunction>); |
@@ -58,6 +75,7 @@ private: |
WebKit::WebTransformOperations m_value; |
}; |
+#endif // WEB_TRANSFORM_OPERATIONS_IS_VIRTUAL |
class CC_EXPORT KeyframedFloatAnimationCurve : public FloatAnimationCurve { |
public: |