| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 // When true, |combined_clip_in_target_space| does not include clips from | 189 // When true, |combined_clip_in_target_space| does not include clips from |
| 190 // ancestor nodes. | 190 // ancestor nodes. |
| 191 bool layer_visibility_uses_only_local_clip : 1; | 191 bool layer_visibility_uses_only_local_clip : 1; |
| 192 | 192 |
| 193 // True if target surface needs to be drawn with a clip applied. | 193 // True if target surface needs to be drawn with a clip applied. |
| 194 bool target_is_clipped : 1; | 194 bool target_is_clipped : 1; |
| 195 | 195 |
| 196 // True if layers with this clip tree node need to be drawn with a clip | 196 // True if layers with this clip tree node need to be drawn with a clip |
| 197 // applied. | 197 // applied. |
| 198 bool layers_are_clipped : 1; | 198 bool layers_are_clipped : 1; |
| 199 bool layers_are_clipped_when_surfaces_disabled : 1; |
| 199 | 200 |
| 200 // Nodes that correspond to unclipped surfaces disregard ancestor clips. | 201 // Nodes that correspond to unclipped surfaces disregard ancestor clips. |
| 201 bool resets_clip : 1; | 202 bool resets_clip : 1; |
| 202 }; | 203 }; |
| 203 | 204 |
| 204 typedef TreeNode<ClipNodeData> ClipNode; | 205 typedef TreeNode<ClipNodeData> ClipNode; |
| 205 | 206 |
| 206 struct CC_EXPORT EffectNodeData { | 207 struct CC_EXPORT EffectNodeData { |
| 207 EffectNodeData(); | 208 EffectNodeData(); |
| 208 | 209 |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 }; | 396 }; |
| 396 | 397 |
| 397 class CC_EXPORT PropertyTrees final { | 398 class CC_EXPORT PropertyTrees final { |
| 398 public: | 399 public: |
| 399 PropertyTrees(); | 400 PropertyTrees(); |
| 400 | 401 |
| 401 TransformTree transform_tree; | 402 TransformTree transform_tree; |
| 402 EffectTree effect_tree; | 403 EffectTree effect_tree; |
| 403 ClipTree clip_tree; | 404 ClipTree clip_tree; |
| 404 bool needs_rebuild; | 405 bool needs_rebuild; |
| 406 bool non_root_surfaces_enabled; |
| 405 int sequence_number; | 407 int sequence_number; |
| 406 }; | 408 }; |
| 407 | 409 |
| 408 } // namespace cc | 410 } // namespace cc |
| 409 | 411 |
| 410 #endif // CC_TREES_PROPERTY_TREE_H_ | 412 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |