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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 bool ScrollOffsetAnimationWasInterrupted(const Layer* layer) const; | 390 bool ScrollOffsetAnimationWasInterrupted(const Layer* layer) const; |
391 bool IsAnimatingFilterProperty(const Layer* layer) const; | 391 bool IsAnimatingFilterProperty(const Layer* layer) const; |
392 bool IsAnimatingOpacityProperty(const Layer* layer) const; | 392 bool IsAnimatingOpacityProperty(const Layer* layer) const; |
393 bool IsAnimatingTransformProperty(const Layer* layer) const; | 393 bool IsAnimatingTransformProperty(const Layer* layer) const; |
394 bool HasPotentiallyRunningFilterAnimation(const Layer* layer) const; | 394 bool HasPotentiallyRunningFilterAnimation(const Layer* layer) const; |
395 bool HasPotentiallyRunningOpacityAnimation(const Layer* layer) const; | 395 bool HasPotentiallyRunningOpacityAnimation(const Layer* layer) const; |
396 bool HasPotentiallyRunningTransformAnimation(const Layer* layer) const; | 396 bool HasPotentiallyRunningTransformAnimation(const Layer* layer) const; |
397 bool HasOnlyTranslationTransforms(const Layer* layer) const; | 397 bool HasOnlyTranslationTransforms(const Layer* layer) const; |
398 bool MaximumTargetScale(const Layer* layer, float* max_scale) const; | 398 bool MaximumTargetScale(const Layer* layer, float* max_scale) const; |
399 bool AnimationStartScale(const Layer* layer, float* start_scale) const; | 399 bool AnimationStartScale(const Layer* layer, float* start_scale) const; |
400 bool HasAnyAnimationTargetingProperty( | 400 bool HasAnyAnimationTargetingProperty(const Layer* layer, |
401 const Layer* layer, | 401 TargetProperty::Type property) const; |
402 Animation::TargetProperty property) const; | |
403 bool AnimationsPreserveAxisAlignment(const Layer* layer) const; | 402 bool AnimationsPreserveAxisAlignment(const Layer* layer) const; |
404 bool HasAnyAnimation(const Layer* layer) const; | 403 bool HasAnyAnimation(const Layer* layer) const; |
405 bool HasActiveAnimation(const Layer* layer) const; | 404 bool HasActiveAnimation(const Layer* layer) const; |
406 | 405 |
407 // Serializes the parts of this LayerTreeHost that is needed for a commit to a | 406 // Serializes the parts of this LayerTreeHost that is needed for a commit to a |
408 // protobuf message. Not all members are serialized as they are not helpful | 407 // protobuf message. Not all members are serialized as they are not helpful |
409 // for remote usage. | 408 // for remote usage. |
410 void ToProtobufForCommit(proto::LayerTreeHost* proto) const; | 409 void ToProtobufForCommit(proto::LayerTreeHost* proto) const; |
411 | 410 |
412 // Deserializes the protobuf into this LayerTreeHost before a commit. The | 411 // Deserializes the protobuf into this LayerTreeHost before a commit. The |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 | 589 |
591 uint32_t surface_id_namespace_; | 590 uint32_t surface_id_namespace_; |
592 uint32_t next_surface_sequence_; | 591 uint32_t next_surface_sequence_; |
593 | 592 |
594 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 593 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
595 }; | 594 }; |
596 | 595 |
597 } // namespace cc | 596 } // namespace cc |
598 | 597 |
599 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 598 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |