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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 void set_effect_tree_index(int index) { effect_tree_index_ = index; } | 162 void set_effect_tree_index(int index) { effect_tree_index_ = index; } |
163 int EffectTreeIndex() const; | 163 int EffectTreeIndex() const; |
164 | 164 |
165 const EffectNode* OwningEffectNode() const; | 165 const EffectNode* OwningEffectNode() const; |
166 | 166 |
167 private: | 167 private: |
168 void SetContentRect(const gfx::Rect& content_rect); | 168 void SetContentRect(const gfx::Rect& content_rect); |
169 gfx::Rect CalculateClippedAccumulatedContentRect(); | 169 gfx::Rect CalculateClippedAccumulatedContentRect(); |
170 gfx::Rect CalculateExpandedClipForFilters( | 170 gfx::Rect CalculateExpandedClipForFilters( |
171 const gfx::Transform& target_to_surface); | 171 const gfx::Transform& target_to_surface); |
| 172 void TileMaskLayer(RenderPass* render_pass, |
| 173 SharedQuadState* shared_quad_state, |
| 174 const gfx::Rect& visible_layer_rect); |
172 | 175 |
173 LayerTreeImpl* layer_tree_impl_; | 176 LayerTreeImpl* layer_tree_impl_; |
174 int stable_effect_id_; | 177 int stable_effect_id_; |
175 int effect_tree_index_; | 178 int effect_tree_index_; |
176 | 179 |
177 // Container for properties that render surfaces need to compute before they | 180 // Container for properties that render surfaces need to compute before they |
178 // can be drawn. | 181 // can be drawn. |
179 struct DrawProperties { | 182 struct DrawProperties { |
180 DrawProperties(); | 183 DrawProperties(); |
181 ~DrawProperties(); | 184 ~DrawProperties(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 // surface, and that ignores outside occlusion. This can point to itself. | 219 // surface, and that ignores outside occlusion. This can point to itself. |
217 const RenderSurfaceImpl* nearest_occlusion_immune_ancestor_; | 220 const RenderSurfaceImpl* nearest_occlusion_immune_ancestor_; |
218 | 221 |
219 std::unique_ptr<DamageTracker> damage_tracker_; | 222 std::unique_ptr<DamageTracker> damage_tracker_; |
220 | 223 |
221 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); | 224 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); |
222 }; | 225 }; |
223 | 226 |
224 } // namespace cc | 227 } // namespace cc |
225 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ | 228 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ |
OLD | NEW |