Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: cc/CCLayerTreeHostTest.cpp

Issue 11076013: [cc] Store CCLayerImpls as scoped_ptrs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/CCLayerTreeHostTest.cpp
diff --git a/cc/CCLayerTreeHostTest.cpp b/cc/CCLayerTreeHostTest.cpp
index 53dba8ea2cdb425433b181246f525e324bcf0558..881a3ac630486b23a425ffa54e54e2e6611b8789 100644
--- a/cc/CCLayerTreeHostTest.cpp
+++ b/cc/CCLayerTreeHostTest.cpp
@@ -2428,7 +2428,7 @@ public:
virtual void update(CCTextureUpdateQueue&, const CCOcclusionTracker*, CCRenderingStats&) OVERRIDE;
virtual bool drawsContent() const OVERRIDE { return true; }
- virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE;
+ virtual scoped_ptr<CCLayerImpl> createCCLayerImpl() OVERRIDE;
virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE;
virtual void setTexturePriorities(const CCPriorityCalculator&) OVERRIDE;
@@ -2456,9 +2456,9 @@ private:
class EvictionTestLayerImpl : public CCLayerImpl {
public:
- static PassOwnPtr<EvictionTestLayerImpl> create(int id)
+ static scoped_ptr<EvictionTestLayerImpl> create(int id)
{
- return adoptPtr(new EvictionTestLayerImpl(id));
+ return make_scoped_ptr(new EvictionTestLayerImpl(id));
}
virtual ~EvictionTestLayerImpl() { }
@@ -2496,9 +2496,9 @@ void EvictionTestLayer::update(CCTextureUpdateQueue& queue, const CCOcclusionTra
queue.appendFullUpload(parameters);
}
-PassOwnPtr<CCLayerImpl> EvictionTestLayer::createCCLayerImpl()
+scoped_ptr<CCLayerImpl> EvictionTestLayer::createCCLayerImpl()
{
- return EvictionTestLayerImpl::create(m_layerId);
+ return EvictionTestLayerImpl::create(m_layerId).PassAs<CCLayerImpl>();
}
void EvictionTestLayer::pushPropertiesTo(CCLayerImpl* layerImpl)

Powered by Google App Engine
This is Rietveld 408576698