| OLD | NEW |
| 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 CC_DELEGATED_RENDERER_LAYER_IMPL_H_ | 5 #ifndef CC_DELEGATED_RENDERER_LAYER_IMPL_H_ |
| 6 #define CC_DELEGATED_RENDERER_LAYER_IMPL_H_ | 6 #define CC_DELEGATED_RENDERER_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include "cc/cc_export.h" | 8 #include "cc/cc_export.h" |
| 9 #include "cc/layer_impl.h" | 9 #include "cc/layer_impl.h" |
| 10 #include "cc/scoped_ptr_vector.h" | 10 #include "cc/scoped_ptr_vector.h" |
| 11 | 11 |
| 12 namespace cc { | 12 namespace cc { |
| 13 | 13 |
| 14 class CC_EXPORT DelegatedRendererLayerImpl : public LayerImpl { | 14 class CC_EXPORT DelegatedRendererLayerImpl : public LayerImpl { |
| 15 public: | 15 public: |
| 16 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)); } |
| 17 virtual ~DelegatedRendererLayerImpl(); | 17 virtual ~DelegatedRendererLayerImpl(); |
| 18 | 18 |
| 19 virtual bool descendantDrawsContent() OVERRIDE; | |
| 20 virtual bool hasContributingDelegatedRenderPasses() const OVERRIDE; | 19 virtual bool hasContributingDelegatedRenderPasses() const OVERRIDE; |
| 21 | 20 |
| 22 // This gives ownership of the RenderPasses to the layer. | 21 // This gives ownership of the RenderPasses to the layer. |
| 23 void setRenderPasses(ScopedPtrVector<RenderPass>&); | 22 void setRenderPasses(ScopedPtrVector<RenderPass>&); |
| 24 void clearRenderPasses(); | 23 void clearRenderPasses(); |
| 25 | 24 |
| 26 virtual void didLoseContext() OVERRIDE; | 25 virtual void didLoseContext() OVERRIDE; |
| 27 | 26 |
| 28 virtual RenderPass::Id firstContributingRenderPassId() const OVERRIDE; | 27 virtual RenderPass::Id firstContributingRenderPassId() const OVERRIDE; |
| 29 virtual RenderPass::Id nextContributingRenderPassId(RenderPass::Id) const OV
ERRIDE; | 28 virtual RenderPass::Id nextContributingRenderPassId(RenderPass::Id) const OV
ERRIDE; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 40 | 39 |
| 41 virtual const char* layerTypeAsString() const OVERRIDE; | 40 virtual const char* layerTypeAsString() const OVERRIDE; |
| 42 | 41 |
| 43 ScopedPtrVector<RenderPass> m_renderPassesInDrawOrder; | 42 ScopedPtrVector<RenderPass> m_renderPassesInDrawOrder; |
| 44 base::hash_map<RenderPass::Id, int> m_renderPassesIndexById; | 43 base::hash_map<RenderPass::Id, int> m_renderPassesIndexById; |
| 45 }; | 44 }; |
| 46 | 45 |
| 47 } | 46 } |
| 48 | 47 |
| 49 #endif // CC_DELEGATED_RENDERER_LAYER_IMPL_H_ | 48 #endif // CC_DELEGATED_RENDERER_LAYER_IMPL_H_ |
| OLD | NEW |