| 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 const FilterOperations& filters); | 245 const FilterOperations& filters); |
| 246 void SetTreeLayerOpacityMutated(int layer_id, | 246 void SetTreeLayerOpacityMutated(int layer_id, |
| 247 LayerTreeImpl* tree, | 247 LayerTreeImpl* tree, |
| 248 float opacity); | 248 float opacity); |
| 249 void SetTreeLayerTransformMutated(int layer_id, | 249 void SetTreeLayerTransformMutated(int layer_id, |
| 250 LayerTreeImpl* tree, | 250 LayerTreeImpl* tree, |
| 251 const gfx::Transform& transform); | 251 const gfx::Transform& transform); |
| 252 void SetTreeLayerScrollOffsetMutated(int layer_id, | 252 void SetTreeLayerScrollOffsetMutated(int layer_id, |
| 253 LayerTreeImpl* tree, | 253 LayerTreeImpl* tree, |
| 254 const gfx::ScrollOffset& scroll_offset); | 254 const gfx::ScrollOffset& scroll_offset); |
| 255 void TreeLayerTransformIsPotentiallyAnimatingChanged(int layer_id, | |
| 256 LayerTreeImpl* tree, | |
| 257 bool is_animating); | |
| 258 bool AnimationsPreserveAxisAlignment(const LayerImpl* layer) const; | 255 bool AnimationsPreserveAxisAlignment(const LayerImpl* layer) const; |
| 259 | 256 |
| 260 // MutatorHostClient implementation. | 257 // MutatorHostClient implementation. |
| 261 bool IsElementInList(ElementId element_id, | 258 bool IsElementInList(ElementId element_id, |
| 262 ElementListType list_type) const override; | 259 ElementListType list_type) const override; |
| 263 void SetMutatorsNeedCommit() override; | 260 void SetMutatorsNeedCommit() override; |
| 264 void SetMutatorsNeedRebuildPropertyTrees() override; | 261 void SetMutatorsNeedRebuildPropertyTrees() override; |
| 265 void SetElementFilterMutated(ElementId element_id, | 262 void SetElementFilterMutated(ElementId element_id, |
| 266 ElementListType list_type, | 263 ElementListType list_type, |
| 267 const FilterOperations& filters) override; | 264 const FilterOperations& filters) override; |
| 268 void SetElementOpacityMutated(ElementId element_id, | 265 void SetElementOpacityMutated(ElementId element_id, |
| 269 ElementListType list_type, | 266 ElementListType list_type, |
| 270 float opacity) override; | 267 float opacity) override; |
| 271 void SetElementTransformMutated(ElementId element_id, | 268 void SetElementTransformMutated(ElementId element_id, |
| 272 ElementListType list_type, | 269 ElementListType list_type, |
| 273 const gfx::Transform& transform) override; | 270 const gfx::Transform& transform) override; |
| 274 void SetElementScrollOffsetMutated( | 271 void SetElementScrollOffsetMutated( |
| 275 ElementId element_id, | 272 ElementId element_id, |
| 276 ElementListType list_type, | 273 ElementListType list_type, |
| 277 const gfx::ScrollOffset& scroll_offset) override; | 274 const gfx::ScrollOffset& scroll_offset) override; |
| 278 void ElementTransformIsPotentiallyAnimatingChanged( | 275 void ElementTransformIsAnimatingChanged(ElementId element_id, |
| 279 ElementId element_id, | 276 ElementListType list_type, |
| 280 ElementListType list_type, | 277 AnimationChangeType change_type, |
| 281 bool is_animating) override; | 278 bool is_animating) override; |
| 282 void ElementOpacityIsAnimatingChanged(ElementId element_id, | 279 void ElementOpacityIsAnimatingChanged(ElementId element_id, |
| 283 ElementListType list_type, | 280 ElementListType list_type, |
| 284 AnimationChangeType change_type, | 281 AnimationChangeType change_type, |
| 285 bool is_animating) override; | 282 bool is_animating) override; |
| 286 void ScrollOffsetAnimationFinished() override; | 283 void ScrollOffsetAnimationFinished() override; |
| 287 gfx::ScrollOffset GetScrollOffsetForAnimation( | 284 gfx::ScrollOffset GetScrollOffsetForAnimation( |
| 288 ElementId element_id) const override; | 285 ElementId element_id) const override; |
| 289 | 286 |
| 290 virtual bool PrepareTiles(); | 287 virtual bool PrepareTiles(); |
| 291 | 288 |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 bool has_fixed_raster_scale_blurry_content_; | 860 bool has_fixed_raster_scale_blurry_content_; |
| 864 std::bitset<kFixedRasterScaleAttemptedScaleChangeHistoryCount> | 861 std::bitset<kFixedRasterScaleAttemptedScaleChangeHistoryCount> |
| 865 fixed_raster_scale_attempted_scale_change_history_; | 862 fixed_raster_scale_attempted_scale_change_history_; |
| 866 | 863 |
| 867 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 864 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 868 }; | 865 }; |
| 869 | 866 |
| 870 } // namespace cc | 867 } // namespace cc |
| 871 | 868 |
| 872 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 869 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |