diff options
Diffstat (limited to 'cc/CCLayerTreeHostTest.cpp')
-rw-r--r-- | cc/CCLayerTreeHostTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cc/CCLayerTreeHostTest.cpp b/cc/CCLayerTreeHostTest.cpp index 2e3d88d..0a79ea2 100644 --- a/cc/CCLayerTreeHostTest.cpp +++ b/cc/CCLayerTreeHostTest.cpp @@ -2188,9 +2188,9 @@ public: layer->setLayerAnimationDelegate(this); // Any valid CCAnimationCurve will do here. - scoped_ptr<CCAnimationCurve> curve(CCEaseTimingFunction::create()); - scoped_ptr<CCActiveAnimation> animation(CCActiveAnimation::create(curve.Pass(), 1, 1, CCActiveAnimation::Opacity)); - layer->layerAnimationController()->addAnimation(animation.Pass()); + OwnPtr<CCAnimationCurve> curve(CCEaseTimingFunction::create()); + OwnPtr<CCActiveAnimation> animation(CCActiveAnimation::create(curve.release(), 1, 1, CCActiveAnimation::Opacity)); + layer->layerAnimationController()->addAnimation(animation.release()); // We add the animation *before* attaching the layer to the tree. m_layerTreeHost->rootLayer()->addChild(layer); |