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