OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_LAYER_TREE_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 void MoveChangeTrackingToLayers(); | 139 void MoveChangeTrackingToLayers(); |
140 | 140 |
141 void ForceRecalculateRasterScales(); | 141 void ForceRecalculateRasterScales(); |
142 | 142 |
143 LayerImplList::const_iterator begin() const; | 143 LayerImplList::const_iterator begin() const; |
144 LayerImplList::const_iterator end() const; | 144 LayerImplList::const_iterator end() const; |
145 LayerImplList::reverse_iterator rbegin(); | 145 LayerImplList::reverse_iterator rbegin(); |
146 LayerImplList::reverse_iterator rend(); | 146 LayerImplList::reverse_iterator rend(); |
147 | 147 |
| 148 // TODO(crbug.com/702832): This won't be needed if overlay scrollbars have |
| 149 // element ids. |
148 void AddToOpacityAnimationsMap(int id, float opacity); | 150 void AddToOpacityAnimationsMap(int id, float opacity); |
149 void AddToTransformAnimationsMap(int id, gfx::Transform transform); | 151 |
150 void AddToFilterAnimationsMap(int id, const FilterOperations& filters); | 152 void SetTransformMutated(ElementId element_id, |
| 153 const gfx::Transform& transform); |
| 154 void SetOpacityMutated(ElementId element_id, float opacity); |
| 155 void SetFilterMutated(ElementId element_id, const FilterOperations& filters); |
151 | 156 |
152 int source_frame_number() const { return source_frame_number_; } | 157 int source_frame_number() const { return source_frame_number_; } |
153 void set_source_frame_number(int frame_number) { | 158 void set_source_frame_number(int frame_number) { |
154 source_frame_number_ = frame_number; | 159 source_frame_number_ = frame_number; |
155 } | 160 } |
156 | 161 |
157 bool is_first_frame_after_commit() const { | 162 bool is_first_frame_after_commit() const { |
158 return source_frame_number_ != is_first_frame_after_commit_tracker_; | 163 return source_frame_number_ != is_first_frame_after_commit_tracker_; |
159 } | 164 } |
160 | 165 |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 | 580 |
576 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 581 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
577 | 582 |
578 private: | 583 private: |
579 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 584 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
580 }; | 585 }; |
581 | 586 |
582 } // namespace cc | 587 } // namespace cc |
583 | 588 |
584 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 589 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |