| 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 <memory> | 10 #include <memory> |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 const FilterOperations& filters); | 244 const FilterOperations& filters); |
| 245 void SetTreeLayerOpacityMutated(int layer_id, | 245 void SetTreeLayerOpacityMutated(int layer_id, |
| 246 LayerTreeImpl* tree, | 246 LayerTreeImpl* tree, |
| 247 float opacity); | 247 float opacity); |
| 248 void SetTreeLayerTransformMutated(int layer_id, | 248 void SetTreeLayerTransformMutated(int layer_id, |
| 249 LayerTreeImpl* tree, | 249 LayerTreeImpl* tree, |
| 250 const gfx::Transform& transform); | 250 const gfx::Transform& transform); |
| 251 void SetTreeLayerScrollOffsetMutated(int layer_id, | 251 void SetTreeLayerScrollOffsetMutated(int layer_id, |
| 252 LayerTreeImpl* tree, | 252 LayerTreeImpl* tree, |
| 253 const gfx::ScrollOffset& scroll_offset); | 253 const gfx::ScrollOffset& scroll_offset); |
| 254 void TreeLayerTransformIsPotentiallyAnimatingChanged(int layer_id, | |
| 255 LayerTreeImpl* tree, | |
| 256 bool is_animating); | |
| 257 bool AnimationsPreserveAxisAlignment(const LayerImpl* layer) const; | 254 bool AnimationsPreserveAxisAlignment(const LayerImpl* layer) const; |
| 258 | 255 |
| 259 // MutatorHostClient implementation. | 256 // MutatorHostClient implementation. |
| 260 bool IsElementInList(ElementId element_id, | 257 bool IsElementInList(ElementId element_id, |
| 261 ElementListType list_type) const override; | 258 ElementListType list_type) const override; |
| 262 void SetMutatorsNeedCommit() override; | 259 void SetMutatorsNeedCommit() override; |
| 263 void SetMutatorsNeedRebuildPropertyTrees() override; | 260 void SetMutatorsNeedRebuildPropertyTrees() override; |
| 264 void SetElementFilterMutated(ElementId element_id, | 261 void SetElementFilterMutated(ElementId element_id, |
| 265 ElementListType list_type, | 262 ElementListType list_type, |
| 266 const FilterOperations& filters) override; | 263 const FilterOperations& filters) override; |
| 267 void SetElementOpacityMutated(ElementId element_id, | 264 void SetElementOpacityMutated(ElementId element_id, |
| 268 ElementListType list_type, | 265 ElementListType list_type, |
| 269 float opacity) override; | 266 float opacity) override; |
| 270 void SetElementTransformMutated(ElementId element_id, | 267 void SetElementTransformMutated(ElementId element_id, |
| 271 ElementListType list_type, | 268 ElementListType list_type, |
| 272 const gfx::Transform& transform) override; | 269 const gfx::Transform& transform) override; |
| 273 void SetElementScrollOffsetMutated( | 270 void SetElementScrollOffsetMutated( |
| 274 ElementId element_id, | 271 ElementId element_id, |
| 275 ElementListType list_type, | 272 ElementListType list_type, |
| 276 const gfx::ScrollOffset& scroll_offset) override; | 273 const gfx::ScrollOffset& scroll_offset) override; |
| 277 void ElementTransformIsPotentiallyAnimatingChanged( | 274 void ElementTransformIsAnimatingChanged(ElementId element_id, |
| 278 ElementId element_id, | 275 ElementListType list_type, |
| 279 ElementListType list_type, | 276 AnimationChangeType change_type, |
| 280 bool is_animating) override; | 277 bool is_animating) override; |
| 281 void ElementOpacityIsAnimatingChanged(ElementId element_id, | 278 void ElementOpacityIsAnimatingChanged(ElementId element_id, |
| 282 ElementListType list_type, | 279 ElementListType list_type, |
| 283 AnimationChangeType change_type, | 280 AnimationChangeType change_type, |
| 284 bool is_animating) override; | 281 bool is_animating) override; |
| 285 void ScrollOffsetAnimationFinished() override; | 282 void ScrollOffsetAnimationFinished() override; |
| 286 gfx::ScrollOffset GetScrollOffsetForAnimation( | 283 gfx::ScrollOffset GetScrollOffsetForAnimation( |
| 287 ElementId element_id) const override; | 284 ElementId element_id) const override; |
| 288 | 285 |
| 289 virtual bool PrepareTiles(); | 286 virtual bool PrepareTiles(); |
| 290 | 287 |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 std::unique_ptr<Viewport> viewport_; | 842 std::unique_ptr<Viewport> viewport_; |
| 846 | 843 |
| 847 LayerTreeMutator* mutator_; | 844 LayerTreeMutator* mutator_; |
| 848 | 845 |
| 849 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 846 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 850 }; | 847 }; |
| 851 | 848 |
| 852 } // namespace cc | 849 } // namespace cc |
| 853 | 850 |
| 854 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 851 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |