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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 void AppendRenderPassQuads(RenderPass* render_pass, | 80 void AppendRenderPassQuads(RenderPass* render_pass, |
81 const RenderPass* delegated_render_pass, | 81 const RenderPass* delegated_render_pass, |
82 const gfx::Size& frame_size) const; | 82 const gfx::Size& frame_size) const; |
83 | 83 |
84 // LayerImpl overrides. | 84 // LayerImpl overrides. |
85 const char* LayerTypeAsString() const override; | 85 const char* LayerTypeAsString() const override; |
86 | 86 |
87 bool have_render_passes_to_push_; | 87 bool have_render_passes_to_push_; |
88 float inverse_device_scale_factor_; | 88 float inverse_device_scale_factor_; |
89 RenderPassList render_passes_in_draw_order_; | 89 RenderPassList render_passes_in_draw_order_; |
90 base::hash_map<RenderPassId, int> render_passes_index_by_id_; | 90 |
| 91 using RenderPassToIndexMap = base::hash_map<RenderPassId, size_t>; |
| 92 RenderPassToIndexMap render_passes_index_by_id_; |
91 ResourceProvider::ResourceIdSet resources_; | 93 ResourceProvider::ResourceIdSet resources_; |
92 | 94 |
93 int child_id_; | 95 int child_id_; |
94 bool own_child_id_; | 96 bool own_child_id_; |
95 | 97 |
96 DISALLOW_COPY_AND_ASSIGN(DelegatedRendererLayerImpl); | 98 DISALLOW_COPY_AND_ASSIGN(DelegatedRendererLayerImpl); |
97 }; | 99 }; |
98 | 100 |
99 } // namespace cc | 101 } // namespace cc |
100 | 102 |
101 #endif // CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ | 103 #endif // CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ |
OLD | NEW |