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_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 void SetLayerOpacityMutated(int layer_id, | 332 void SetLayerOpacityMutated(int layer_id, |
333 LayerTreeType tree_type, | 333 LayerTreeType tree_type, |
334 float opacity) override; | 334 float opacity) override; |
335 void SetLayerTransformMutated(int layer_id, | 335 void SetLayerTransformMutated(int layer_id, |
336 LayerTreeType tree_type, | 336 LayerTreeType tree_type, |
337 const gfx::Transform& transform) override; | 337 const gfx::Transform& transform) override; |
338 void SetLayerScrollOffsetMutated( | 338 void SetLayerScrollOffsetMutated( |
339 int layer_id, | 339 int layer_id, |
340 LayerTreeType tree_type, | 340 LayerTreeType tree_type, |
341 const gfx::ScrollOffset& scroll_offset) override; | 341 const gfx::ScrollOffset& scroll_offset) override; |
| 342 void ScrollOffsetAnimationFinished() override {} |
| 343 gfx::ScrollOffset GetScrollOffsetForAnimation(int layer_id) const override; |
342 | 344 |
343 bool ScrollOffsetAnimationWasInterrupted(const Layer* layer) const; | 345 bool ScrollOffsetAnimationWasInterrupted(const Layer* layer) const; |
344 bool IsAnimatingFilterProperty(const Layer* layer) const; | 346 bool IsAnimatingFilterProperty(const Layer* layer) const; |
345 bool IsAnimatingOpacityProperty(const Layer* layer) const; | 347 bool IsAnimatingOpacityProperty(const Layer* layer) const; |
346 bool IsAnimatingTransformProperty(const Layer* layer) const; | 348 bool IsAnimatingTransformProperty(const Layer* layer) const; |
347 bool HasPotentiallyRunningOpacityAnimation(const Layer* layer) const; | 349 bool HasPotentiallyRunningOpacityAnimation(const Layer* layer) const; |
348 bool HasPotentiallyRunningTransformAnimation(const Layer* layer) const; | 350 bool HasPotentiallyRunningTransformAnimation(const Layer* layer) const; |
349 bool AnimationsPreserveAxisAlignment(const Layer* layer) const; | 351 bool AnimationsPreserveAxisAlignment(const Layer* layer) const; |
350 bool HasAnyAnimation(const Layer* layer) const; | 352 bool HasAnyAnimation(const Layer* layer) const; |
351 bool HasActiveAnimation(const Layer* layer) const; | 353 bool HasActiveAnimation(const Layer* layer) const; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 | 488 |
487 uint32_t surface_id_namespace_; | 489 uint32_t surface_id_namespace_; |
488 uint32_t next_surface_sequence_; | 490 uint32_t next_surface_sequence_; |
489 | 491 |
490 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 492 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
491 }; | 493 }; |
492 | 494 |
493 } // namespace cc | 495 } // namespace cc |
494 | 496 |
495 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 497 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |