| 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 <vector> | 10 #include <vector> |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 235 |
| 236 typedef TreeNode<ClipNodeData> ClipNode; | 236 typedef TreeNode<ClipNodeData> ClipNode; |
| 237 | 237 |
| 238 struct CC_EXPORT EffectNodeData { | 238 struct CC_EXPORT EffectNodeData { |
| 239 EffectNodeData(); | 239 EffectNodeData(); |
| 240 | 240 |
| 241 float opacity; | 241 float opacity; |
| 242 float screen_space_opacity; | 242 float screen_space_opacity; |
| 243 | 243 |
| 244 bool has_render_surface; | 244 bool has_render_surface; |
| 245 bool contributes_to_copy_request; |
| 245 int num_copy_requests_in_subtree; | 246 int num_copy_requests_in_subtree; |
| 246 int transform_id; | 247 int transform_id; |
| 247 int clip_id; | 248 int clip_id; |
| 248 | 249 |
| 249 bool operator==(const EffectNodeData& other) const; | 250 bool operator==(const EffectNodeData& other) const; |
| 250 | 251 |
| 251 void ToProtobuf(proto::TreeNode* proto) const; | 252 void ToProtobuf(proto::TreeNode* proto) const; |
| 252 void FromProtobuf(const proto::TreeNode& proto); | 253 void FromProtobuf(const proto::TreeNode& proto); |
| 253 }; | 254 }; |
| 254 | 255 |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 EffectTree effect_tree; | 500 EffectTree effect_tree; |
| 500 ClipTree clip_tree; | 501 ClipTree clip_tree; |
| 501 bool needs_rebuild; | 502 bool needs_rebuild; |
| 502 bool non_root_surfaces_enabled; | 503 bool non_root_surfaces_enabled; |
| 503 int sequence_number; | 504 int sequence_number; |
| 504 }; | 505 }; |
| 505 | 506 |
| 506 } // namespace cc | 507 } // namespace cc |
| 507 | 508 |
| 508 #endif // CC_TREES_PROPERTY_TREE_H_ | 509 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |