| 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 <unordered_map> | 10 #include <unordered_map> |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 void FromProtobuf(const proto::PropertyTree& proto); | 549 void FromProtobuf(const proto::PropertyTree& proto); |
| 550 | 550 |
| 551 private: | 551 private: |
| 552 void UpdateOpacities(EffectNode* node, EffectNode* parent_node); | 552 void UpdateOpacities(EffectNode* node, EffectNode* parent_node); |
| 553 void UpdateIsDrawn(EffectNode* node, EffectNode* parent_node); | 553 void UpdateIsDrawn(EffectNode* node, EffectNode* parent_node); |
| 554 }; | 554 }; |
| 555 | 555 |
| 556 class CC_EXPORT ScrollTree final : public PropertyTree<ScrollNode> { | 556 class CC_EXPORT ScrollTree final : public PropertyTree<ScrollNode> { |
| 557 public: | 557 public: |
| 558 ScrollTree(); | 558 ScrollTree(); |
| 559 ScrollTree(const ScrollTree& other); |
| 559 ~ScrollTree() override; | 560 ~ScrollTree() override; |
| 560 | 561 |
| 561 ScrollTree& operator=(const ScrollTree& from); | 562 ScrollTree& operator=(const ScrollTree& from); |
| 562 bool operator==(const ScrollTree& other) const; | 563 bool operator==(const ScrollTree& other) const; |
| 563 | 564 |
| 564 void ToProtobuf(proto::PropertyTree* proto) const; | 565 void ToProtobuf(proto::PropertyTree* proto) const; |
| 565 void FromProtobuf(const proto::PropertyTree& proto); | 566 void FromProtobuf(const proto::PropertyTree& proto); |
| 566 | 567 |
| 567 void clear() override; | 568 void clear() override; |
| 568 | 569 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 void UpdateScrollOffsetMapEntry(int key, | 613 void UpdateScrollOffsetMapEntry(int key, |
| 613 ScrollOffsetMap* new_scroll_offset_map, | 614 ScrollOffsetMap* new_scroll_offset_map, |
| 614 LayerTreeImpl* layer_tree_impl); | 615 LayerTreeImpl* layer_tree_impl); |
| 615 gfx::ScrollOffset ClampScrollOffsetToLimits(gfx::ScrollOffset offset, | 616 gfx::ScrollOffset ClampScrollOffsetToLimits(gfx::ScrollOffset offset, |
| 616 ScrollNode* scroll_node) const; | 617 ScrollNode* scroll_node) const; |
| 617 }; | 618 }; |
| 618 | 619 |
| 619 class CC_EXPORT PropertyTrees final { | 620 class CC_EXPORT PropertyTrees final { |
| 620 public: | 621 public: |
| 621 PropertyTrees(); | 622 PropertyTrees(); |
| 623 PropertyTrees(const PropertyTrees& other); |
| 622 ~PropertyTrees(); | 624 ~PropertyTrees(); |
| 623 | 625 |
| 624 bool operator==(const PropertyTrees& other) const; | 626 bool operator==(const PropertyTrees& other) const; |
| 625 PropertyTrees& operator=(const PropertyTrees& from); | 627 PropertyTrees& operator=(const PropertyTrees& from); |
| 626 | 628 |
| 627 void ToProtobuf(proto::PropertyTrees* proto) const; | 629 void ToProtobuf(proto::PropertyTrees* proto) const; |
| 628 void FromProtobuf(const proto::PropertyTrees& proto); | 630 void FromProtobuf(const proto::PropertyTrees& proto); |
| 629 | 631 |
| 630 TransformTree transform_tree; | 632 TransformTree transform_tree; |
| 631 EffectTree effect_tree; | 633 EffectTree effect_tree; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 | 671 |
| 670 private: | 672 private: |
| 671 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 673 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
| 672 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 674 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
| 673 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 675 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
| 674 }; | 676 }; |
| 675 | 677 |
| 676 } // namespace cc | 678 } // namespace cc |
| 677 | 679 |
| 678 #endif // CC_TREES_PROPERTY_TREE_H_ | 680 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |