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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 132 |
133 typedef TreeNode<TransformNodeData> TransformNode; | 133 typedef TreeNode<TransformNodeData> TransformNode; |
134 | 134 |
135 struct CC_EXPORT ClipNodeData { | 135 struct CC_EXPORT ClipNodeData { |
136 ClipNodeData(); | 136 ClipNodeData(); |
137 | 137 |
138 gfx::RectF clip; | 138 gfx::RectF clip; |
139 gfx::RectF combined_clip; | 139 gfx::RectF combined_clip; |
140 int transform_id; | 140 int transform_id; |
141 int target_id; | 141 int target_id; |
| 142 // This value is true for clip nodes created by layers that do not apply any |
| 143 // clip themselves, but own a render surface that inherits the parent |
| 144 // target space clip. |
| 145 bool inherit_parent_target_space_clip; |
142 }; | 146 }; |
143 | 147 |
144 typedef TreeNode<ClipNodeData> ClipNode; | 148 typedef TreeNode<ClipNodeData> ClipNode; |
145 | 149 |
146 struct CC_EXPORT OpacityNodeData { | 150 struct CC_EXPORT OpacityNodeData { |
147 OpacityNodeData(); | 151 OpacityNodeData(); |
148 | 152 |
149 float opacity; | 153 float opacity; |
150 float screen_space_opacity; | 154 float screen_space_opacity; |
151 }; | 155 }; |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 TransformTree transform_tree; | 325 TransformTree transform_tree; |
322 OpacityTree opacity_tree; | 326 OpacityTree opacity_tree; |
323 ClipTree clip_tree; | 327 ClipTree clip_tree; |
324 bool needs_rebuild; | 328 bool needs_rebuild; |
325 int sequence_number; | 329 int sequence_number; |
326 }; | 330 }; |
327 | 331 |
328 } // namespace cc | 332 } // namespace cc |
329 | 333 |
330 #endif // CC_TREES_PROPERTY_TREE_H_ | 334 #endif // CC_TREES_PROPERTY_TREE_H_ |
OLD | NEW |