| 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 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 // individual nodes. | 654 // individual nodes. |
| 655 bool full_tree_damaged; | 655 bool full_tree_damaged; |
| 656 int sequence_number; | 656 int sequence_number; |
| 657 bool is_main_thread; | 657 bool is_main_thread; |
| 658 bool is_active; | 658 bool is_active; |
| 659 enum ResetFlags { EFFECT_TREE, TRANSFORM_TREE, ALL_TREES }; | 659 enum ResetFlags { EFFECT_TREE, TRANSFORM_TREE, ALL_TREES }; |
| 660 | 660 |
| 661 void SetInnerViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta); | 661 void SetInnerViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta); |
| 662 void SetOuterViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta); | 662 void SetOuterViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta); |
| 663 void SetInnerViewportScrollBoundsDelta(gfx::Vector2dF bounds_delta); | 663 void SetInnerViewportScrollBoundsDelta(gfx::Vector2dF bounds_delta); |
| 664 void UpdateChangeTracking(); |
| 664 void PushChangeTrackingTo(PropertyTrees* tree); | 665 void PushChangeTrackingTo(PropertyTrees* tree); |
| 665 void ResetAllChangeTracking(ResetFlags flag); | 666 void ResetAllChangeTracking(ResetFlags flag); |
| 666 | 667 |
| 667 gfx::Vector2dF inner_viewport_container_bounds_delta() const { | 668 gfx::Vector2dF inner_viewport_container_bounds_delta() const { |
| 668 return inner_viewport_container_bounds_delta_; | 669 return inner_viewport_container_bounds_delta_; |
| 669 } | 670 } |
| 670 | 671 |
| 671 gfx::Vector2dF outer_viewport_container_bounds_delta() const { | 672 gfx::Vector2dF outer_viewport_container_bounds_delta() const { |
| 672 return outer_viewport_container_bounds_delta_; | 673 return outer_viewport_container_bounds_delta_; |
| 673 } | 674 } |
| 674 | 675 |
| 675 gfx::Vector2dF inner_viewport_scroll_bounds_delta() const { | 676 gfx::Vector2dF inner_viewport_scroll_bounds_delta() const { |
| 676 return inner_viewport_scroll_bounds_delta_; | 677 return inner_viewport_scroll_bounds_delta_; |
| 677 } | 678 } |
| 678 | 679 |
| 679 private: | 680 private: |
| 680 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 681 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
| 681 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 682 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
| 682 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 683 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
| 683 }; | 684 }; |
| 684 | 685 |
| 685 } // namespace cc | 686 } // namespace cc |
| 686 | 687 |
| 687 #endif // CC_TREES_PROPERTY_TREE_H_ | 688 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |