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

Unified Diff: cc/CCLayerTreeHostTest.cpp

Issue 11083003: Revert 160631 - [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
« no previous file with comments | « cc/CCLayerTreeHostImplTest.cpp ('k') | cc/CCOcclusionTrackerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCLayerTreeHostTest.cpp
===================================================================
--- cc/CCLayerTreeHostTest.cpp (revision 160631)
+++ cc/CCLayerTreeHostTest.cpp (working copy)
@@ -2428,7 +2428,7 @@
virtual void update(CCTextureUpdateQueue&, const CCOcclusionTracker*, CCRenderingStats&) OVERRIDE;
virtual bool drawsContent() const OVERRIDE { return true; }
- virtual scoped_ptr<CCLayerImpl> createCCLayerImpl() OVERRIDE;
+ virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE;
virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE;
virtual void setTexturePriorities(const CCPriorityCalculator&) OVERRIDE;
@@ -2456,9 +2456,9 @@
class EvictionTestLayerImpl : public CCLayerImpl {
public:
- static scoped_ptr<EvictionTestLayerImpl> create(int id)
+ static PassOwnPtr<EvictionTestLayerImpl> create(int id)
{
- return make_scoped_ptr(new EvictionTestLayerImpl(id));
+ return adoptPtr(new EvictionTestLayerImpl(id));
}
virtual ~EvictionTestLayerImpl() { }
@@ -2496,9 +2496,9 @@
queue.appendFullUpload(parameters);
}
-scoped_ptr<CCLayerImpl> EvictionTestLayer::createCCLayerImpl()
+PassOwnPtr<CCLayerImpl> EvictionTestLayer::createCCLayerImpl()
{
- return EvictionTestLayerImpl::create(m_layerId).PassAs<CCLayerImpl>();
+ return EvictionTestLayerImpl::create(m_layerId);
}
void EvictionTestLayer::pushPropertiesTo(CCLayerImpl* layerImpl)
« no previous file with comments | « cc/CCLayerTreeHostImplTest.cpp ('k') | cc/CCOcclusionTrackerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698