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