Index: cc/CCDelegatedRendererLayerImplTest.cpp |
diff --git a/cc/CCDelegatedRendererLayerImplTest.cpp b/cc/CCDelegatedRendererLayerImplTest.cpp |
index 312a3d31f382e03c38c66aeeb8df2171a4437760..1744c6d490e85c7f779774bc3be4368bfcc4afce 100644 |
--- a/cc/CCDelegatedRendererLayerImplTest.cpp |
+++ b/cc/CCDelegatedRendererLayerImplTest.cpp |
@@ -99,10 +99,10 @@ public: |
CCDelegatedRendererLayerImplTestSimple() |
: CCDelegatedRendererLayerImplTest() |
{ |
- OwnPtr<CCSolidColorLayerImpl> rootLayer = CCSolidColorLayerImpl::create(1); |
- OwnPtr<CCSolidColorLayerImpl> layerBefore = CCSolidColorLayerImpl::create(2); |
- OwnPtr<CCSolidColorLayerImpl> layerAfter = CCSolidColorLayerImpl::create(3); |
- OwnPtr<CCDelegatedRendererLayerImpl> delegatedRendererLayer = CCDelegatedRendererLayerImpl::create(4); |
+ scoped_ptr<CCLayerImpl> rootLayer = CCSolidColorLayerImpl::create(1).PassAs<CCLayerImpl>(); |
+ scoped_ptr<CCLayerImpl> layerBefore = CCSolidColorLayerImpl::create(2).PassAs<CCLayerImpl>(); |
+ scoped_ptr<CCLayerImpl> layerAfter = CCSolidColorLayerImpl::create(3).PassAs<CCLayerImpl>(); |
+ scoped_ptr<CCDelegatedRendererLayerImpl> delegatedRendererLayer = CCDelegatedRendererLayerImpl::create(4); |
m_hostImpl->setViewportSize(IntSize(100, 100), IntSize(100, 100)); |
rootLayer->setBounds(IntSize(100, 100)); |
@@ -146,19 +146,19 @@ public: |
m_delegatedRendererLayerPtr = delegatedRendererLayer.get(); |
// Force the delegated RenderPasses to come before the RenderPass from layerAfter. |
- layerAfter->addChild(delegatedRendererLayer.release()); |
- rootLayer->addChild(layerAfter.release()); |
+ layerAfter->addChild(delegatedRendererLayer.PassAs<CCLayerImpl>()); |
+ rootLayer->addChild(layerAfter.Pass()); |
// Get the RenderPass generated by layerBefore to come before the delegated RenderPasses. |
- rootLayer->addChild(layerBefore.release()); |
+ rootLayer->addChild(layerBefore.Pass()); |
- m_hostImpl->setRootLayer(rootLayer.release()); |
+ m_hostImpl->setRootLayer(rootLayer.Pass()); |
} |
protected: |
- CCSolidColorLayerImpl* m_rootLayerPtr; |
- CCSolidColorLayerImpl* m_layerBeforePtr; |
- CCSolidColorLayerImpl* m_layerAfterPtr; |
+ CCLayerImpl* m_rootLayerPtr; |
+ CCLayerImpl* m_layerBeforePtr; |
+ CCLayerImpl* m_layerAfterPtr; |
CCDelegatedRendererLayerImpl* m_delegatedRendererLayerPtr; |
}; |
@@ -382,8 +382,8 @@ public: |
CCDelegatedRendererLayerImplTestSharedData() |
: CCDelegatedRendererLayerImplTest() |
{ |
- OwnPtr<CCLayerImpl> rootLayer = CCLayerImpl::create(1); |
- OwnPtr<CCDelegatedRendererLayerImpl> delegatedRendererLayer = CCDelegatedRendererLayerImpl::create(2); |
+ scoped_ptr<CCLayerImpl> rootLayer = CCLayerImpl::create(1); |
+ scoped_ptr<CCDelegatedRendererLayerImpl> delegatedRendererLayer = CCDelegatedRendererLayerImpl::create(2); |
m_hostImpl->setViewportSize(IntSize(100, 100), IntSize(100, 100)); |
rootLayer->setBounds(IntSize(100, 100)); |
@@ -414,9 +414,9 @@ public: |
m_rootLayerPtr = rootLayer.get(); |
m_delegatedRendererLayerPtr = delegatedRendererLayer.get(); |
- rootLayer->addChild(delegatedRendererLayer.release()); |
+ rootLayer->addChild(delegatedRendererLayer.PassAs<CCLayerImpl>()); |
- m_hostImpl->setRootLayer(rootLayer.release()); |
+ m_hostImpl->setRootLayer(rootLayer.Pass()); |
} |
protected: |