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

Unified Diff: cc/CCLayerTreeHostImpl.h

Issue 11099040: [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/CCLayerTreeHostImpl.h
diff --git a/cc/CCLayerTreeHostImpl.h b/cc/CCLayerTreeHostImpl.h
index e3596250b35d95c71184d42a633495ea972bddca..0c4a3807e6a32073297b2feac051da4ff418a758 100644
--- a/cc/CCLayerTreeHostImpl.h
+++ b/cc/CCLayerTreeHostImpl.h
@@ -174,7 +174,7 @@ public:
void readback(void* pixels, const IntRect&);
- void setRootLayer(PassOwnPtr<CCLayerImpl>);
+ void setRootLayer(scoped_ptr<CCLayerImpl>);
CCLayerImpl* rootLayer() { return m_rootLayerImpl.get(); }
void setHudLayer(CCHeadsUpDisplayLayerImpl* layerImpl) { m_hudLayerImpl = layerImpl; }
@@ -182,7 +182,7 @@ public:
// Release ownership of the current layer tree and replace it with an empty
// tree. Returns the root layer of the detached tree.
- PassOwnPtr<CCLayerImpl> detachLayerTree();
+ scoped_ptr<CCLayerImpl> detachLayerTree();
CCLayerImpl* rootScrollLayer() const { return m_rootScrollLayerImpl; }
@@ -307,7 +307,7 @@ private:
scoped_ptr<CCGraphicsContext> m_context;
OwnPtr<CCResourceProvider> m_resourceProvider;
OwnPtr<CCRenderer> m_renderer;
- OwnPtr<CCLayerImpl> m_rootLayerImpl;
+ scoped_ptr<CCLayerImpl> m_rootLayerImpl;
CCLayerImpl* m_rootScrollLayerImpl;
CCLayerImpl* m_currentlyScrollingLayerImpl;
CCHeadsUpDisplayLayerImpl* m_hudLayerImpl;

Powered by Google App Engine
This is Rietveld 408576698