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

Side by Side Diff: cc/delegated_renderer_layer_impl.h

Issue 11365025: Make cc a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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/delegated_renderer_layer.h ('k') | cc/direct_renderer.h » ('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 "cc/cc_export.h"
8 #include "cc/layer_impl.h" 9 #include "cc/layer_impl.h"
9 #include "cc/scoped_ptr_vector.h" 10 #include "cc/scoped_ptr_vector.h"
10 11
11 namespace cc { 12 namespace cc {
12 13
13 class DelegatedRendererLayerImpl : public LayerImpl { 14 class CC_EXPORT DelegatedRendererLayerImpl : public LayerImpl {
14 public: 15 public:
15 static scoped_ptr<DelegatedRendererLayerImpl> create(int id) { return make_s coped_ptr(new DelegatedRendererLayerImpl(id)); } 16 static scoped_ptr<DelegatedRendererLayerImpl> create(int id) { return make_s coped_ptr(new DelegatedRendererLayerImpl(id)); }
16 virtual ~DelegatedRendererLayerImpl(); 17 virtual ~DelegatedRendererLayerImpl();
17 18
18 virtual bool descendantDrawsContent() OVERRIDE; 19 virtual bool descendantDrawsContent() OVERRIDE;
19 virtual bool hasContributingDelegatedRenderPasses() const OVERRIDE; 20 virtual bool hasContributingDelegatedRenderPasses() const OVERRIDE;
20 21
21 // This gives ownership of the RenderPasses to the layer. 22 // This gives ownership of the RenderPasses to the layer.
22 void setRenderPasses(ScopedPtrVector<RenderPass>&); 23 void setRenderPasses(ScopedPtrVector<RenderPass>&);
23 void clearRenderPasses(); 24 void clearRenderPasses();
(...skipping 15 matching lines...) Expand all
39 40
40 virtual const char* layerTypeAsString() const OVERRIDE; 41 virtual const char* layerTypeAsString() const OVERRIDE;
41 42
42 ScopedPtrVector<RenderPass> m_renderPassesInDrawOrder; 43 ScopedPtrVector<RenderPass> m_renderPassesInDrawOrder;
43 base::hash_map<RenderPass::Id, int> m_renderPassesIndexById; 44 base::hash_map<RenderPass::Id, int> m_renderPassesIndexById;
44 }; 45 };
45 46
46 } 47 }
47 48
48 #endif // CCDelegatedRendererLayerImpl_h 49 #endif // CCDelegatedRendererLayerImpl_h
OLDNEW
« no previous file with comments | « cc/delegated_renderer_layer.h ('k') | cc/direct_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698