OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TREES_PROPERTY_TREE_H_ | 5 #ifndef CC_TREES_PROPERTY_TREE_H_ |
6 #define CC_TREES_PROPERTY_TREE_H_ | 6 #define CC_TREES_PROPERTY_TREE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 // computing visible rects, and |clip_in_target_space| is used for computing | 227 // computing visible rects, and |clip_in_target_space| is used for computing |
228 // clips applied at draw time. Both rects are expressed in the space of the | 228 // clips applied at draw time. Both rects are expressed in the space of the |
229 // target transform node, and may include clips contributed by ancestors. | 229 // target transform node, and may include clips contributed by ancestors. |
230 gfx::RectF combined_clip_in_target_space; | 230 gfx::RectF combined_clip_in_target_space; |
231 gfx::RectF clip_in_target_space; | 231 gfx::RectF clip_in_target_space; |
232 | 232 |
233 // The id of the transform node that defines the clip node's local space. | 233 // The id of the transform node that defines the clip node's local space. |
234 int transform_id; | 234 int transform_id; |
235 | 235 |
236 // The id of the transform node that defines the clip node's target space. | 236 // The id of the transform node that defines the clip node's target space. |
237 int target_id; | 237 int target_transform_id; |
| 238 |
| 239 // The id of the effect node that defines the clip node's target space. |
| 240 int target_effect_id; |
238 | 241 |
239 // Whether this node contributes a new clip (that is, whether |clip| needs to | 242 // Whether this node contributes a new clip (that is, whether |clip| needs to |
240 // be applied), rather than only inheriting ancestor clips. | 243 // be applied), rather than only inheriting ancestor clips. |
241 bool applies_local_clip : 1; | 244 bool applies_local_clip : 1; |
242 | 245 |
243 // When true, |clip_in_target_space| does not include clips from ancestor | 246 // When true, |clip_in_target_space| does not include clips from ancestor |
244 // nodes. | 247 // nodes. |
245 bool layer_clipping_uses_only_local_clip : 1; | 248 bool layer_clipping_uses_only_local_clip : 1; |
246 | 249 |
247 // True if target surface needs to be drawn with a clip applied. | 250 // True if target surface needs to be drawn with a clip applied. |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 846 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
844 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 847 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
845 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 848 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
846 | 849 |
847 PropertyTreesCachedData cached_data_; | 850 PropertyTreesCachedData cached_data_; |
848 }; | 851 }; |
849 | 852 |
850 } // namespace cc | 853 } // namespace cc |
851 | 854 |
852 #endif // CC_TREES_PROPERTY_TREE_H_ | 855 #endif // CC_TREES_PROPERTY_TREE_H_ |
OLD | NEW |