| 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 <memory> | 10 #include <memory> |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 void set_effect_tree_index(int index) { effect_tree_index_ = index; } | 156 void set_effect_tree_index(int index) { effect_tree_index_ = index; } |
| 157 int EffectTreeIndex() const; | 157 int EffectTreeIndex() const; |
| 158 | 158 |
| 159 private: | 159 private: |
| 160 void SetContentRect(const gfx::Rect& content_rect); | 160 void SetContentRect(const gfx::Rect& content_rect); |
| 161 gfx::Rect CalculateClippedAccumulatedContentRect(); | 161 gfx::Rect CalculateClippedAccumulatedContentRect(); |
| 162 gfx::Rect CalculateExpandedClipForFilters( | 162 gfx::Rect CalculateExpandedClipForFilters( |
| 163 const gfx::Transform& target_to_surface); | 163 const gfx::Transform& target_to_surface); |
| 164 | 164 |
| 165 const EffectNode* OwningEffectNode() const; | 165 const EffectNode* OwningEffectNode() const; |
| 166 void TileMaskLayer(RenderPass* render_pass, |
| 167 SharedQuadState* shared_quad_state, |
| 168 const gfx::Rect& visible_layer_rect); |
| 166 | 169 |
| 167 LayerTreeImpl* layer_tree_impl_; | 170 LayerTreeImpl* layer_tree_impl_; |
| 168 int stable_effect_id_; | 171 int stable_effect_id_; |
| 169 int effect_tree_index_; | 172 int effect_tree_index_; |
| 170 | 173 |
| 171 // Container for properties that render surfaces need to compute before they | 174 // Container for properties that render surfaces need to compute before they |
| 172 // can be drawn. | 175 // can be drawn. |
| 173 struct DrawProperties { | 176 struct DrawProperties { |
| 174 DrawProperties(); | 177 DrawProperties(); |
| 175 ~DrawProperties(); | 178 ~DrawProperties(); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 int target_render_surface_layer_index_history_; | 217 int target_render_surface_layer_index_history_; |
| 215 size_t current_layer_index_history_; | 218 size_t current_layer_index_history_; |
| 216 | 219 |
| 217 friend class LayerIterator; | 220 friend class LayerIterator; |
| 218 | 221 |
| 219 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); | 222 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); |
| 220 }; | 223 }; |
| 221 | 224 |
| 222 } // namespace cc | 225 } // namespace cc |
| 223 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ | 226 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ |
| OLD | NEW |