Chromium Code Reviews| 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 SetTreeLayerTransformMutated(ElementId element_id, |
| 153 const gfx::Transform& transform); | |
| 154 void SetTreeLayerOpacityMutated(ElementId element_id, float opacity); | |
| 155 void SetTreeLayerFilterMutated(ElementId element_id, | |
|
ajuma
2017/03/21 22:00:30
Wdyt of removing 'TreeLayer' from these names sinc
weiliangc
2017/03/22 18:44:15
Done.
| |
| 156 const FilterOperations& filters); | |
| 151 | 157 |
| 152 int source_frame_number() const { return source_frame_number_; } | 158 int source_frame_number() const { return source_frame_number_; } |
| 153 void set_source_frame_number(int frame_number) { | 159 void set_source_frame_number(int frame_number) { |
| 154 source_frame_number_ = frame_number; | 160 source_frame_number_ = frame_number; |
| 155 } | 161 } |
| 156 | 162 |
| 157 bool is_first_frame_after_commit() const { | 163 bool is_first_frame_after_commit() const { |
| 158 return source_frame_number_ != is_first_frame_after_commit_tracker_; | 164 return source_frame_number_ != is_first_frame_after_commit_tracker_; |
| 159 } | 165 } |
| 160 | 166 |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 577 | 583 |
| 578 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 584 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 579 | 585 |
| 580 private: | 586 private: |
| 581 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 587 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 582 }; | 588 }; |
| 583 | 589 |
| 584 } // namespace cc | 590 } // namespace cc |
| 585 | 591 |
| 586 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 592 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |