| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 151 |
| 152 int TransformTreeIndex() const; | 152 int TransformTreeIndex() const; |
| 153 int ClipTreeIndex() const; | 153 int ClipTreeIndex() const; |
| 154 | 154 |
| 155 void set_effect_tree_index(int index) { effect_tree_index_ = index; } | 155 void set_effect_tree_index(int index) { effect_tree_index_ = index; } |
| 156 int EffectTreeIndex() const; | 156 int EffectTreeIndex() const; |
| 157 | 157 |
| 158 private: | 158 private: |
| 159 void SetContentRect(const gfx::Rect& content_rect); | 159 void SetContentRect(const gfx::Rect& content_rect); |
| 160 gfx::Rect CalculateClippedAccumulatedContentRect(); | 160 gfx::Rect CalculateClippedAccumulatedContentRect(); |
| 161 gfx::Rect CalculateExpandedClipForFilters( |
| 162 const gfx::Transform& target_to_surface); |
| 161 | 163 |
| 162 const EffectNode* OwningEffectNode() const; | 164 const EffectNode* OwningEffectNode() const; |
| 163 | 165 |
| 164 LayerImpl* owning_layer_; | 166 LayerImpl* owning_layer_; |
| 165 | 167 |
| 166 LayerTreeImpl* layer_tree_impl_; | 168 LayerTreeImpl* layer_tree_impl_; |
| 167 int stable_effect_id_; | 169 int stable_effect_id_; |
| 168 int effect_tree_index_; | 170 int effect_tree_index_; |
| 169 | 171 |
| 170 // Container for properties that render surfaces need to compute before they | 172 // Container for properties that render surfaces need to compute before they |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 int target_render_surface_layer_index_history_; | 215 int target_render_surface_layer_index_history_; |
| 214 size_t current_layer_index_history_; | 216 size_t current_layer_index_history_; |
| 215 | 217 |
| 216 friend class LayerIterator; | 218 friend class LayerIterator; |
| 217 | 219 |
| 218 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); | 220 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); |
| 219 }; | 221 }; |
| 220 | 222 |
| 221 } // namespace cc | 223 } // namespace cc |
| 222 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ | 224 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ |
| OLD | NEW |