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

Side by Side Diff: cc/CCDelegatedRendererLayerImpl.h

Issue 11076013: [cc] Store CCLayerImpls as scoped_ptrs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/CCDamageTrackerTest.cpp ('k') | cc/CCDelegatedRendererLayerImplTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CCDelegatedRendererLayerImpl_h 5 #ifndef CCDelegatedRendererLayerImpl_h
6 #define CCDelegatedRendererLayerImpl_h 6 #define CCDelegatedRendererLayerImpl_h
7 7
8 #include "CCLayerImpl.h" 8 #include "CCLayerImpl.h"
9 #include "cc/scoped_ptr_vector.h" 9 #include "cc/scoped_ptr_vector.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 class CCDelegatedRendererLayerImpl : public CCLayerImpl { 13 class CCDelegatedRendererLayerImpl : public CCLayerImpl {
14 public: 14 public:
15 static PassOwnPtr<CCDelegatedRendererLayerImpl> create(int id) { return adop tPtr(new CCDelegatedRendererLayerImpl(id)); } 15 static scoped_ptr<CCDelegatedRendererLayerImpl> create(int id) { return make _scoped_ptr(new CCDelegatedRendererLayerImpl(id)); }
16 virtual ~CCDelegatedRendererLayerImpl(); 16 virtual ~CCDelegatedRendererLayerImpl();
17 17
18 virtual bool descendantDrawsContent() OVERRIDE; 18 virtual bool descendantDrawsContent() OVERRIDE;
19 virtual bool hasContributingDelegatedRenderPasses() const OVERRIDE; 19 virtual bool hasContributingDelegatedRenderPasses() const OVERRIDE;
20 20
21 // This gives ownership of the RenderPasses to the layer. 21 // This gives ownership of the RenderPasses to the layer.
22 void setRenderPasses(ScopedPtrVector<CCRenderPass>&); 22 void setRenderPasses(ScopedPtrVector<CCRenderPass>&);
23 void clearRenderPasses(); 23 void clearRenderPasses();
24 24
25 virtual void didLoseContext() OVERRIDE; 25 virtual void didLoseContext() OVERRIDE;
(...skipping 15 matching lines...) Expand all
41 41
42 virtual const char* layerTypeAsString() const OVERRIDE; 42 virtual const char* layerTypeAsString() const OVERRIDE;
43 43
44 ScopedPtrVector<CCRenderPass> m_renderPassesInDrawOrder; 44 ScopedPtrVector<CCRenderPass> m_renderPassesInDrawOrder;
45 base::hash_map<CCRenderPass::Id, int> m_renderPassesIndexById; 45 base::hash_map<CCRenderPass::Id, int> m_renderPassesIndexById;
46 }; 46 };
47 47
48 } 48 }
49 49
50 #endif // CCDelegatedRendererLayerImpl_h 50 #endif // CCDelegatedRendererLayerImpl_h
OLDNEW
« no previous file with comments | « cc/CCDamageTrackerTest.cpp ('k') | cc/CCDelegatedRendererLayerImplTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698