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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 void SetPropertyTrees(PropertyTrees* property_trees) { | 93 void SetPropertyTrees(PropertyTrees* property_trees) { |
94 property_trees_ = property_trees; | 94 property_trees_ = property_trees; |
95 } | 95 } |
96 PropertyTrees* property_trees() const { return property_trees_; } | 96 PropertyTrees* property_trees() const { return property_trees_; } |
97 | 97 |
98 void AsValueInto(base::trace_event::TracedValue* value) const; | 98 void AsValueInto(base::trace_event::TracedValue* value) const; |
99 | 99 |
100 private: | 100 private: |
101 std::vector<T> nodes_; | 101 std::vector<T> nodes_; |
102 | 102 |
103 friend class TransformTree; | |
104 bool needs_update_; | 103 bool needs_update_; |
105 PropertyTrees* property_trees_; | 104 PropertyTrees* property_trees_; |
106 }; | 105 }; |
107 | 106 |
108 struct StickyPositionNodeData { | 107 struct StickyPositionNodeData { |
109 int scroll_ancestor; | 108 int scroll_ancestor; |
110 LayerStickyPositionConstraint constraints; | 109 LayerStickyPositionConstraint constraints; |
111 | 110 |
112 // This is the offset that blink has already applied to counteract the main | 111 // This is the offset that blink has already applied to counteract the main |
113 // thread scroll offset of the scroll ancestor. We need to account for this | 112 // thread scroll offset of the scroll ancestor. We need to account for this |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const; | 662 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const; |
664 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id, | 663 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id, |
665 int effect_id) const; | 664 int effect_id) const; |
666 | 665 |
667 PropertyTreesCachedData cached_data_; | 666 PropertyTreesCachedData cached_data_; |
668 }; | 667 }; |
669 | 668 |
670 } // namespace cc | 669 } // namespace cc |
671 | 670 |
672 #endif // CC_TREES_PROPERTY_TREE_H_ | 671 #endif // CC_TREES_PROPERTY_TREE_H_ |
OLD | NEW |