| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_RENDER_SURFACE_IMPL_H_ | 5 #ifndef CC_LAYERS_RENDER_SURFACE_IMPL_H_ |
| 6 #define CC_LAYERS_RENDER_SURFACE_IMPL_H_ | 6 #define CC_LAYERS_RENDER_SURFACE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 const Occlusion& occlusion_in_content_space, | 148 const Occlusion& occlusion_in_content_space, |
| 149 SkColor debug_border_color, | 149 SkColor debug_border_color, |
| 150 float debug_border_width, | 150 float debug_border_width, |
| 151 LayerImpl* mask_layer, | 151 LayerImpl* mask_layer, |
| 152 AppendQuadsData* append_quads_data, | 152 AppendQuadsData* append_quads_data, |
| 153 RenderPassId render_pass_id); | 153 RenderPassId render_pass_id); |
| 154 | 154 |
| 155 int TransformTreeIndex() const; | 155 int TransformTreeIndex() const; |
| 156 int ClipTreeIndex() const; | 156 int ClipTreeIndex() const; |
| 157 int EffectTreeIndex() const; | 157 int EffectTreeIndex() const; |
| 158 int TargetEffectTreeIndex() const; | |
| 159 | 158 |
| 160 private: | 159 private: |
| 161 LayerImpl* owning_layer_; | 160 LayerImpl* owning_layer_; |
| 162 | 161 |
| 163 // Uses this surface's space. | 162 // Uses this surface's space. |
| 164 gfx::Rect content_rect_; | 163 gfx::Rect content_rect_; |
| 165 gfx::Rect content_rect_from_property_trees_; | 164 gfx::Rect content_rect_from_property_trees_; |
| 166 // Is used to calculate the content rect from property trees. | 165 // Is used to calculate the content rect from property trees. |
| 167 gfx::Rect accumulated_content_rect_; | 166 gfx::Rect accumulated_content_rect_; |
| 168 bool surface_property_changed_ : 1; | 167 bool surface_property_changed_ : 1; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 194 int target_render_surface_layer_index_history_; | 193 int target_render_surface_layer_index_history_; |
| 195 size_t current_layer_index_history_; | 194 size_t current_layer_index_history_; |
| 196 | 195 |
| 197 friend class LayerIterator; | 196 friend class LayerIterator; |
| 198 | 197 |
| 199 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); | 198 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); |
| 200 }; | 199 }; |
| 201 | 200 |
| 202 } // namespace cc | 201 } // namespace cc |
| 203 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ | 202 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ |
| OLD | NEW |