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_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ |
6 #define CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ | 6 #define CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ |
7 | 7 |
8 #include "base/containers/hash_tables.h" | 8 #include "base/containers/hash_tables.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 virtual ~DelegatedRendererLayerImpl(); | 24 virtual ~DelegatedRendererLayerImpl(); |
25 | 25 |
26 // LayerImpl overrides. | 26 // LayerImpl overrides. |
27 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) | 27 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) |
28 OVERRIDE; | 28 OVERRIDE; |
29 virtual bool HasDelegatedContent() const OVERRIDE; | 29 virtual bool HasDelegatedContent() const OVERRIDE; |
30 virtual bool HasContributingDelegatedRenderPasses() const OVERRIDE; | 30 virtual bool HasContributingDelegatedRenderPasses() const OVERRIDE; |
31 virtual RenderPass::Id FirstContributingRenderPassId() const OVERRIDE; | 31 virtual RenderPass::Id FirstContributingRenderPassId() const OVERRIDE; |
32 virtual RenderPass::Id NextContributingRenderPassId( | 32 virtual RenderPass::Id NextContributingRenderPassId( |
33 RenderPass::Id previous) const OVERRIDE; | 33 RenderPass::Id previous) const OVERRIDE; |
34 virtual void DidLoseOutputSurface() OVERRIDE; | 34 virtual void ReleaseResources() OVERRIDE; |
35 virtual bool WillDraw(DrawMode draw_mode, | 35 virtual bool WillDraw(DrawMode draw_mode, |
36 ResourceProvider* resource_provider) OVERRIDE; | 36 ResourceProvider* resource_provider) OVERRIDE; |
37 virtual void AppendQuads(QuadSink* quad_sink, | 37 virtual void AppendQuads(QuadSink* quad_sink, |
38 AppendQuadsData* append_quads_data) OVERRIDE; | 38 AppendQuadsData* append_quads_data) OVERRIDE; |
39 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; | 39 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; |
40 | 40 |
41 void AppendContributingRenderPasses(RenderPassSink* render_pass_sink); | 41 void AppendContributingRenderPasses(RenderPassSink* render_pass_sink); |
42 | 42 |
43 // Creates an ID with the resource provider for the child renderer | 43 // Creates an ID with the resource provider for the child renderer |
44 // that will be sending quads to the layer. Registers the callback to | 44 // that will be sending quads to the layer. Registers the callback to |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 gfx::Size display_size_; | 97 gfx::Size display_size_; |
98 int child_id_; | 98 int child_id_; |
99 bool own_child_id_; | 99 bool own_child_id_; |
100 | 100 |
101 DISALLOW_COPY_AND_ASSIGN(DelegatedRendererLayerImpl); | 101 DISALLOW_COPY_AND_ASSIGN(DelegatedRendererLayerImpl); |
102 }; | 102 }; |
103 | 103 |
104 } // namespace cc | 104 } // namespace cc |
105 | 105 |
106 #endif // CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ | 106 #endif // CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ |
OLD | NEW |