| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 AnimationChangeType change_type, | 385 AnimationChangeType change_type, |
| 386 bool is_animating) override; | 386 bool is_animating) override; |
| 387 void ElementOpacityIsAnimatingChanged(ElementId element_id, | 387 void ElementOpacityIsAnimatingChanged(ElementId element_id, |
| 388 ElementListType list_type, | 388 ElementListType list_type, |
| 389 AnimationChangeType change_type, | 389 AnimationChangeType change_type, |
| 390 bool is_animating) override; | 390 bool is_animating) override; |
| 391 void ScrollOffsetAnimationFinished() override {} | 391 void ScrollOffsetAnimationFinished() override {} |
| 392 gfx::ScrollOffset GetScrollOffsetForAnimation( | 392 gfx::ScrollOffset GetScrollOffsetForAnimation( |
| 393 ElementId element_id) const override; | 393 ElementId element_id) const override; |
| 394 | 394 |
| 395 bool ScrollOffsetAnimationWasInterrupted(const Layer* layer) const; | |
| 396 bool IsAnimatingFilterProperty(const Layer* layer) const; | |
| 397 bool IsAnimatingOpacityProperty(const Layer* layer) const; | |
| 398 bool IsAnimatingTransformProperty(const Layer* layer) const; | |
| 399 bool HasPotentiallyRunningFilterAnimation(const Layer* layer) const; | |
| 400 bool HasPotentiallyRunningOpacityAnimation(const Layer* layer) const; | |
| 401 bool HasPotentiallyRunningTransformAnimation(const Layer* layer) const; | |
| 402 bool HasOnlyTranslationTransforms(const Layer* layer) const; | |
| 403 bool MaximumTargetScale(const Layer* layer, float* max_scale) const; | |
| 404 bool AnimationStartScale(const Layer* layer, float* start_scale) const; | |
| 405 bool HasAnyAnimationTargetingProperty(const Layer* layer, | |
| 406 TargetProperty::Type property) const; | |
| 407 bool AnimationsPreserveAxisAlignment(const Layer* layer) const; | |
| 408 bool HasAnyAnimation(const Layer* layer) const; | |
| 409 bool HasActiveAnimationForTesting(const Layer* layer) const; | |
| 410 | |
| 411 // Serializes the parts of this LayerTreeHost that is needed for a commit to a | 395 // Serializes the parts of this LayerTreeHost that is needed for a commit to a |
| 412 // protobuf message. Not all members are serialized as they are not helpful | 396 // protobuf message. Not all members are serialized as they are not helpful |
| 413 // for remote usage. | 397 // for remote usage. |
| 414 // The |swap_promise_list_| is transferred to the serializer in | 398 // The |swap_promise_list_| is transferred to the serializer in |
| 415 // |swap_promises|. | 399 // |swap_promises|. |
| 416 void ToProtobufForCommit( | 400 void ToProtobufForCommit( |
| 417 proto::LayerTreeHost* proto, | 401 proto::LayerTreeHost* proto, |
| 418 std::vector<std::unique_ptr<SwapPromise>>* swap_promises); | 402 std::vector<std::unique_ptr<SwapPromise>>* swap_promises); |
| 419 | 403 |
| 420 // Deserializes the protobuf into this LayerTreeHost before a commit. The | 404 // Deserializes the protobuf into this LayerTreeHost before a commit. The |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 | 600 |
| 617 uint32_t surface_id_namespace_; | 601 uint32_t surface_id_namespace_; |
| 618 uint32_t next_surface_sequence_; | 602 uint32_t next_surface_sequence_; |
| 619 | 603 |
| 620 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 604 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 621 }; | 605 }; |
| 622 | 606 |
| 623 } // namespace cc | 607 } // namespace cc |
| 624 | 608 |
| 625 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 609 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |