| 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 <memory> | 10 #include <memory> |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 bool changed; | 691 bool changed; |
| 692 // We cache a global bool for full tree damages to avoid walking the entire | 692 // We cache a global bool for full tree damages to avoid walking the entire |
| 693 // tree. | 693 // tree. |
| 694 // TODO(jaydasika): Changes to transform and effects that damage the entire | 694 // TODO(jaydasika): Changes to transform and effects that damage the entire |
| 695 // tree should be tracked by this bool. Currently, they are tracked by the | 695 // tree should be tracked by this bool. Currently, they are tracked by the |
| 696 // individual nodes. | 696 // individual nodes. |
| 697 bool full_tree_damaged; | 697 bool full_tree_damaged; |
| 698 int sequence_number; | 698 int sequence_number; |
| 699 bool is_main_thread; | 699 bool is_main_thread; |
| 700 bool is_active; | 700 bool is_active; |
| 701 enum ResetFlags { EFFECT_TREE, TRANSFORM_TREE, ALL_TREES }; | |
| 702 | 701 |
| 703 void SetInnerViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta); | 702 void SetInnerViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta); |
| 704 void SetOuterViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta); | 703 void SetOuterViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta); |
| 705 void SetInnerViewportScrollBoundsDelta(gfx::Vector2dF bounds_delta); | 704 void SetInnerViewportScrollBoundsDelta(gfx::Vector2dF bounds_delta); |
| 706 void PushOpacityIfNeeded(PropertyTrees* target_tree); | 705 void PushOpacityIfNeeded(PropertyTrees* target_tree); |
| 707 void UpdateChangeTracking(); | 706 void UpdateChangeTracking(); |
| 708 void PushChangeTrackingTo(PropertyTrees* tree); | 707 void PushChangeTrackingTo(PropertyTrees* tree); |
| 709 void ResetAllChangeTracking(ResetFlags flag); | 708 void ResetAllChangeTracking(); |
| 710 | 709 |
| 711 gfx::Vector2dF inner_viewport_container_bounds_delta() const { | 710 gfx::Vector2dF inner_viewport_container_bounds_delta() const { |
| 712 return inner_viewport_container_bounds_delta_; | 711 return inner_viewport_container_bounds_delta_; |
| 713 } | 712 } |
| 714 | 713 |
| 715 gfx::Vector2dF outer_viewport_container_bounds_delta() const { | 714 gfx::Vector2dF outer_viewport_container_bounds_delta() const { |
| 716 return outer_viewport_container_bounds_delta_; | 715 return outer_viewport_container_bounds_delta_; |
| 717 } | 716 } |
| 718 | 717 |
| 719 gfx::Vector2dF inner_viewport_scroll_bounds_delta() const { | 718 gfx::Vector2dF inner_viewport_scroll_bounds_delta() const { |
| 720 return inner_viewport_scroll_bounds_delta_; | 719 return inner_viewport_scroll_bounds_delta_; |
| 721 } | 720 } |
| 722 | 721 |
| 723 std::unique_ptr<base::trace_event::TracedValue> AsTracedValue() const; | 722 std::unique_ptr<base::trace_event::TracedValue> AsTracedValue() const; |
| 724 | 723 |
| 725 private: | 724 private: |
| 726 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 725 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
| 727 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 726 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
| 728 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 727 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
| 729 }; | 728 }; |
| 730 | 729 |
| 731 } // namespace cc | 730 } // namespace cc |
| 732 | 731 |
| 733 #endif // CC_TREES_PROPERTY_TREE_H_ | 732 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |