Index: cc/CCLayerTreeHostTest.cpp |
diff --git a/cc/CCLayerTreeHostTest.cpp b/cc/CCLayerTreeHostTest.cpp |
index 0a79ea2ad7c70e1de160a446d4781c035738565e..2e3d88d8c35eb63abfb088ab3e3432377e42ff22 100644 |
--- a/cc/CCLayerTreeHostTest.cpp |
+++ b/cc/CCLayerTreeHostTest.cpp |
@@ -2188,9 +2188,9 @@ public: |
layer->setLayerAnimationDelegate(this); |
// Any valid CCAnimationCurve will do here. |
- OwnPtr<CCAnimationCurve> curve(CCEaseTimingFunction::create()); |
- OwnPtr<CCActiveAnimation> animation(CCActiveAnimation::create(curve.release(), 1, 1, CCActiveAnimation::Opacity)); |
- layer->layerAnimationController()->addAnimation(animation.release()); |
+ scoped_ptr<CCAnimationCurve> curve(CCEaseTimingFunction::create()); |
+ scoped_ptr<CCActiveAnimation> animation(CCActiveAnimation::create(curve.Pass(), 1, 1, CCActiveAnimation::Opacity)); |
+ layer->layerAnimationController()->addAnimation(animation.Pass()); |
// We add the animation *before* attaching the layer to the tree. |
m_layerTreeHost->rootLayer()->addChild(layer); |