| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 237 |
| 238 typedef TreeNode<ClipNodeData> ClipNode; | 238 typedef TreeNode<ClipNodeData> ClipNode; |
| 239 | 239 |
| 240 struct CC_EXPORT EffectNodeData { | 240 struct CC_EXPORT EffectNodeData { |
| 241 EffectNodeData(); | 241 EffectNodeData(); |
| 242 | 242 |
| 243 float opacity; | 243 float opacity; |
| 244 float screen_space_opacity; | 244 float screen_space_opacity; |
| 245 | 245 |
| 246 bool has_render_surface; | 246 bool has_render_surface; |
| 247 bool has_copy_request; | |
| 248 bool has_background_filters; | |
| 249 bool is_drawn; | |
| 250 bool screen_space_opacity_is_animating; | |
| 251 int num_copy_requests_in_subtree; | 247 int num_copy_requests_in_subtree; |
| 252 int transform_id; | 248 int transform_id; |
| 253 int clip_id; | 249 int clip_id; |
| 254 | 250 |
| 255 bool operator==(const EffectNodeData& other) const; | 251 bool operator==(const EffectNodeData& other) const; |
| 256 | 252 |
| 257 void ToProtobuf(proto::TreeNode* proto) const; | 253 void ToProtobuf(proto::TreeNode* proto) const; |
| 258 void FromProtobuf(const proto::TreeNode& proto); | 254 void FromProtobuf(const proto::TreeNode& proto); |
| 259 }; | 255 }; |
| 260 | 256 |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 }; | 492 }; |
| 497 | 493 |
| 498 class CC_EXPORT EffectTree final : public PropertyTree<EffectNode> { | 494 class CC_EXPORT EffectTree final : public PropertyTree<EffectNode> { |
| 499 public: | 495 public: |
| 500 bool operator==(const EffectTree& other) const; | 496 bool operator==(const EffectTree& other) const; |
| 501 | 497 |
| 502 void UpdateEffects(int id); | 498 void UpdateEffects(int id); |
| 503 | 499 |
| 504 void ClearCopyRequests(); | 500 void ClearCopyRequests(); |
| 505 | 501 |
| 506 bool ContributesToDrawnSurface(int id); | |
| 507 | |
| 508 void ToProtobuf(proto::PropertyTree* proto) const; | 502 void ToProtobuf(proto::PropertyTree* proto) const; |
| 509 void FromProtobuf(const proto::PropertyTree& proto); | 503 void FromProtobuf(const proto::PropertyTree& proto); |
| 510 | 504 |
| 511 private: | 505 private: |
| 512 void UpdateOpacities(EffectNode* node, EffectNode* parent_node); | 506 void UpdateOpacities(EffectNode* node, EffectNode* parent_node); |
| 513 void UpdateIsDrawn(EffectNode* node, EffectNode* parent_node); | |
| 514 }; | 507 }; |
| 515 | 508 |
| 516 class CC_EXPORT ScrollTree final : public PropertyTree<ScrollNode> { | 509 class CC_EXPORT ScrollTree final : public PropertyTree<ScrollNode> { |
| 517 public: | 510 public: |
| 518 bool operator==(const ScrollTree& other) const; | 511 bool operator==(const ScrollTree& other) const; |
| 519 | 512 |
| 520 void ToProtobuf(proto::PropertyTree* proto) const; | 513 void ToProtobuf(proto::PropertyTree* proto) const; |
| 521 void FromProtobuf(const proto::PropertyTree& proto); | 514 void FromProtobuf(const proto::PropertyTree& proto); |
| 522 }; | 515 }; |
| 523 | 516 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 536 ClipTree clip_tree; | 529 ClipTree clip_tree; |
| 537 ScrollTree scroll_tree; | 530 ScrollTree scroll_tree; |
| 538 bool needs_rebuild; | 531 bool needs_rebuild; |
| 539 bool non_root_surfaces_enabled; | 532 bool non_root_surfaces_enabled; |
| 540 int sequence_number; | 533 int sequence_number; |
| 541 }; | 534 }; |
| 542 | 535 |
| 543 } // namespace cc | 536 } // namespace cc |
| 544 | 537 |
| 545 #endif // CC_TREES_PROPERTY_TREE_H_ | 538 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |