| Index: cc/test/animation_test_common.cc
|
| diff --git a/cc/test/animation_test_common.cc b/cc/test/animation_test_common.cc
|
| index 7ceaf3fc0cf7d41dbad256b49318601580b73082..0cfb794b7aee8bf36bc0e34812f02a619b6f129b 100644
|
| --- a/cc/test/animation_test_common.cc
|
| +++ b/cc/test/animation_test_common.cc
|
| @@ -19,16 +19,16 @@ namespace {
|
| template <class Target>
|
| void addOpacityTransition(Target& target, double duration, float startOpacity, float endOpacity, bool useTimingFunction)
|
| {
|
| - scoped_ptr<CCKeyframedFloatAnimationCurve> curve(CCKeyframedFloatAnimationCurve::create());
|
| + scoped_ptr<KeyframedFloatAnimationCurve> curve(KeyframedFloatAnimationCurve::create());
|
|
|
| - scoped_ptr<CCTimingFunction> func;
|
| + scoped_ptr<TimingFunction> func;
|
| if (!useTimingFunction)
|
| - func = CCEaseTimingFunction::create();
|
| + func = EaseTimingFunction::create();
|
| if (duration > 0)
|
| - curve->addKeyframe(CCFloatKeyframe::create(0, startOpacity, func.Pass()));
|
| - curve->addKeyframe(CCFloatKeyframe::create(duration, endOpacity, scoped_ptr<cc::CCTimingFunction>()));
|
| + curve->addKeyframe(FloatKeyframe::create(0, startOpacity, func.Pass()));
|
| + curve->addKeyframe(FloatKeyframe::create(duration, endOpacity, scoped_ptr<cc::TimingFunction>()));
|
|
|
| - scoped_ptr<CCActiveAnimation> animation(CCActiveAnimation::create(curve.PassAs<CCAnimationCurve>(), 0, 0, CCActiveAnimation::Opacity));
|
| + scoped_ptr<ActiveAnimation> animation(ActiveAnimation::create(curve.PassAs<AnimationCurve>(), 0, 0, ActiveAnimation::Opacity));
|
| animation->setNeedsSynchronizedStartTime(true);
|
|
|
| target.addAnimation(animation.Pass());
|
| @@ -38,19 +38,19 @@ template <class Target>
|
| void addAnimatedTransform(Target& target, double duration, int deltaX, int deltaY)
|
| {
|
| static int id = 0;
|
| - scoped_ptr<CCKeyframedTransformAnimationCurve> curve(CCKeyframedTransformAnimationCurve::create());
|
| + scoped_ptr<KeyframedTransformAnimationCurve> curve(KeyframedTransformAnimationCurve::create());
|
|
|
| if (duration > 0) {
|
| WebKit::WebTransformOperations startOperations;
|
| startOperations.appendTranslate(deltaX, deltaY, 0);
|
| - curve->addKeyframe(CCTransformKeyframe::create(0, startOperations, scoped_ptr<cc::CCTimingFunction>()));
|
| + curve->addKeyframe(TransformKeyframe::create(0, startOperations, scoped_ptr<cc::TimingFunction>()));
|
| }
|
|
|
| WebKit::WebTransformOperations operations;
|
| operations.appendTranslate(deltaX, deltaY, 0);
|
| - curve->addKeyframe(CCTransformKeyframe::create(duration, operations, scoped_ptr<cc::CCTimingFunction>()));
|
| + curve->addKeyframe(TransformKeyframe::create(duration, operations, scoped_ptr<cc::TimingFunction>()));
|
|
|
| - scoped_ptr<CCActiveAnimation> animation(CCActiveAnimation::create(curve.PassAs<CCAnimationCurve>(), id++, 0, CCActiveAnimation::Transform));
|
| + scoped_ptr<ActiveAnimation> animation(ActiveAnimation::create(curve.PassAs<AnimationCurve>(), id++, 0, ActiveAnimation::Transform));
|
| animation->setNeedsSynchronizedStartTime(true);
|
|
|
| target.addAnimation(animation.Pass());
|
| @@ -84,9 +84,9 @@ float FakeFloatAnimationCurve::getValue(double now) const
|
| return 0;
|
| }
|
|
|
| -scoped_ptr<cc::CCAnimationCurve> FakeFloatAnimationCurve::clone() const
|
| +scoped_ptr<cc::AnimationCurve> FakeFloatAnimationCurve::clone() const
|
| {
|
| - return make_scoped_ptr(new FakeFloatAnimationCurve).PassAs<cc::CCAnimationCurve>();
|
| + return make_scoped_ptr(new FakeFloatAnimationCurve).PassAs<cc::AnimationCurve>();
|
| }
|
|
|
| FakeTransformTransition::FakeTransformTransition(double duration)
|
| @@ -108,9 +108,9 @@ WebKit::WebTransformationMatrix FakeTransformTransition::getValue(double time) c
|
| return WebKit::WebTransformationMatrix();
|
| }
|
|
|
| -scoped_ptr<cc::CCAnimationCurve> FakeTransformTransition::clone() const
|
| +scoped_ptr<cc::AnimationCurve> FakeTransformTransition::clone() const
|
| {
|
| - return make_scoped_ptr(new FakeTransformTransition(*this)).PassAs<cc::CCAnimationCurve>();
|
| + return make_scoped_ptr(new FakeTransformTransition(*this)).PassAs<cc::AnimationCurve>();
|
| }
|
|
|
|
|
| @@ -172,37 +172,37 @@ const WebKit::WebTransformationMatrix& FakeLayerAnimationControllerClient::trans
|
| return m_transform;
|
| }
|
|
|
| -scoped_ptr<cc::CCAnimationCurve> FakeFloatTransition::clone() const
|
| +scoped_ptr<cc::AnimationCurve> FakeFloatTransition::clone() const
|
| {
|
| - return make_scoped_ptr(new FakeFloatTransition(*this)).PassAs<cc::CCAnimationCurve>();
|
| + return make_scoped_ptr(new FakeFloatTransition(*this)).PassAs<cc::AnimationCurve>();
|
| }
|
|
|
| -void addOpacityTransitionToController(cc::CCLayerAnimationController& controller, double duration, float startOpacity, float endOpacity, bool useTimingFunction)
|
| +void addOpacityTransitionToController(cc::LayerAnimationController& controller, double duration, float startOpacity, float endOpacity, bool useTimingFunction)
|
| {
|
| addOpacityTransition(controller, duration, startOpacity, endOpacity, useTimingFunction);
|
| }
|
|
|
| -void addAnimatedTransformToController(cc::CCLayerAnimationController& controller, double duration, int deltaX, int deltaY)
|
| +void addAnimatedTransformToController(cc::LayerAnimationController& controller, double duration, int deltaX, int deltaY)
|
| {
|
| addAnimatedTransform(controller, duration, deltaX, deltaY);
|
| }
|
|
|
| -void addOpacityTransitionToLayer(cc::LayerChromium& layer, double duration, float startOpacity, float endOpacity, bool useTimingFunction)
|
| +void addOpacityTransitionToLayer(cc::Layer& layer, double duration, float startOpacity, float endOpacity, bool useTimingFunction)
|
| {
|
| addOpacityTransition(layer, duration, startOpacity, endOpacity, useTimingFunction);
|
| }
|
|
|
| -void addOpacityTransitionToLayer(cc::CCLayerImpl& layer, double duration, float startOpacity, float endOpacity, bool useTimingFunction)
|
| +void addOpacityTransitionToLayer(cc::LayerImpl& layer, double duration, float startOpacity, float endOpacity, bool useTimingFunction)
|
| {
|
| addOpacityTransition(*layer.layerAnimationController(), duration, startOpacity, endOpacity, useTimingFunction);
|
| }
|
|
|
| -void addAnimatedTransformToLayer(cc::LayerChromium& layer, double duration, int deltaX, int deltaY)
|
| +void addAnimatedTransformToLayer(cc::Layer& layer, double duration, int deltaX, int deltaY)
|
| {
|
| addAnimatedTransform(layer, duration, deltaX, deltaY);
|
| }
|
|
|
| -void addAnimatedTransformToLayer(cc::CCLayerImpl& layer, double duration, int deltaX, int deltaY)
|
| +void addAnimatedTransformToLayer(cc::LayerImpl& layer, double duration, int deltaX, int deltaY)
|
| {
|
| addAnimatedTransform(*layer.layerAnimationController(), duration, deltaX, deltaY);
|
| }
|
|
|