OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_HOST_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <bitset> | 10 #include <bitset> |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 virtual void CommitComplete(); | 240 virtual void CommitComplete(); |
241 virtual void UpdateAnimationState(bool start_ready_animations); | 241 virtual void UpdateAnimationState(bool start_ready_animations); |
242 bool Mutate(base::TimeTicks monotonic_time); | 242 bool Mutate(base::TimeTicks monotonic_time); |
243 void ActivateAnimations(); | 243 void ActivateAnimations(); |
244 void Animate(); | 244 void Animate(); |
245 void AnimatePendingTreeAfterCommit(); | 245 void AnimatePendingTreeAfterCommit(); |
246 void MainThreadHasStoppedFlinging(); | 246 void MainThreadHasStoppedFlinging(); |
247 void DidAnimateScrollOffset(); | 247 void DidAnimateScrollOffset(); |
248 void SetViewportDamage(const gfx::Rect& damage_rect); | 248 void SetViewportDamage(const gfx::Rect& damage_rect); |
249 | 249 |
250 void SetTreeLayerFilterMutated(ElementId element_id, | 250 void SetTreeLayerFilterMutated(int layer_id, |
251 LayerTreeImpl* tree, | 251 LayerTreeImpl* tree, |
252 const FilterOperations& filters); | 252 const FilterOperations& filters); |
253 void SetTreeLayerOpacityMutated(ElementId element_id, | 253 void SetTreeLayerOpacityMutated(int layer_id, |
254 LayerTreeImpl* tree, | 254 LayerTreeImpl* tree, |
255 float opacity); | 255 float opacity); |
256 void SetTreeLayerTransformMutated(ElementId element_id, | 256 void SetTreeLayerTransformMutated(int layer_id, |
257 LayerTreeImpl* tree, | 257 LayerTreeImpl* tree, |
258 const gfx::Transform& transform); | 258 const gfx::Transform& transform); |
259 void SetTreeLayerScrollOffsetMutated(ElementId element_id, | 259 void SetTreeLayerScrollOffsetMutated(int layer_id, |
260 LayerTreeImpl* tree, | 260 LayerTreeImpl* tree, |
261 const gfx::ScrollOffset& scroll_offset); | 261 const gfx::ScrollOffset& scroll_offset); |
262 bool AnimationsPreserveAxisAlignment(const LayerImpl* layer) const; | 262 bool AnimationsPreserveAxisAlignment(const LayerImpl* layer) const; |
263 | 263 |
264 // MutatorHostClient implementation. | 264 // MutatorHostClient implementation. |
265 bool IsElementInList(ElementId element_id, | 265 bool IsElementInList(ElementId element_id, |
266 ElementListType list_type) const override; | 266 ElementListType list_type) const override; |
267 void SetMutatorsNeedCommit() override; | 267 void SetMutatorsNeedCommit() override; |
268 void SetMutatorsNeedRebuildPropertyTrees() override; | 268 void SetMutatorsNeedRebuildPropertyTrees() override; |
269 void SetElementFilterMutated(ElementId element_id, | 269 void SetElementFilterMutated(ElementId element_id, |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
865 fixed_raster_scale_attempted_scale_change_history_; | 865 fixed_raster_scale_attempted_scale_change_history_; |
866 std::unique_ptr<PendingTreeDurationHistogramTimer> | 866 std::unique_ptr<PendingTreeDurationHistogramTimer> |
867 pending_tree_duration_timer_; | 867 pending_tree_duration_timer_; |
868 | 868 |
869 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 869 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
870 }; | 870 }; |
871 | 871 |
872 } // namespace cc | 872 } // namespace cc |
873 | 873 |
874 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 874 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |