| 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_LAYERS_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
| 6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 void SetDoubleSided(bool double_sided); | 457 void SetDoubleSided(bool double_sided); |
| 458 bool double_sided() const { return double_sided_; } | 458 bool double_sided() const { return double_sided_; } |
| 459 | 459 |
| 460 void SetTransform(const gfx::Transform& transform); | 460 void SetTransform(const gfx::Transform& transform); |
| 461 const gfx::Transform& transform() const { return transform_; } | 461 const gfx::Transform& transform() const { return transform_; } |
| 462 bool TransformIsAnimating() const; | 462 bool TransformIsAnimating() const; |
| 463 bool HasPotentiallyRunningTransformAnimation() const; | 463 bool HasPotentiallyRunningTransformAnimation() const; |
| 464 bool TransformIsAnimatingOnImplOnly() const; | 464 bool TransformIsAnimatingOnImplOnly() const; |
| 465 bool HasOnlyTranslationTransforms() const; | 465 bool HasOnlyTranslationTransforms() const; |
| 466 bool AnimationsPreserveAxisAlignment() const; | 466 bool AnimationsPreserveAxisAlignment() const; |
| 467 void SetTransformAndInvertibility(const gfx::Transform& transform, | |
| 468 bool transform_is_invertible); | |
| 469 bool transform_is_invertible() const { return transform_is_invertible_; } | |
| 470 | 467 |
| 471 bool MaximumTargetScale(float* max_scale) const; | 468 bool MaximumTargetScale(float* max_scale) const; |
| 472 bool AnimationStartScale(float* start_scale) const; | 469 bool AnimationStartScale(float* start_scale) const; |
| 473 | 470 |
| 474 // This includes all animations, even those that are finished but haven't yet | 471 // This includes all animations, even those that are finished but haven't yet |
| 475 // been deleted. | 472 // been deleted. |
| 476 bool HasAnyAnimationTargetingProperty(TargetProperty::Type property) const; | 473 bool HasAnyAnimationTargetingProperty(TargetProperty::Type property) const; |
| 477 | 474 |
| 478 bool HasFilterAnimationThatInflatesBounds() const; | 475 bool HasFilterAnimationThatInflatesBounds() const; |
| 479 bool HasTransformAnimationThatInflatesBounds() const; | 476 bool HasTransformAnimationThatInflatesBounds() const; |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 667 | 664 |
| 668 bool masks_to_bounds_ : 1; | 665 bool masks_to_bounds_ : 1; |
| 669 bool contents_opaque_ : 1; | 666 bool contents_opaque_ : 1; |
| 670 bool is_root_for_isolated_group_ : 1; | 667 bool is_root_for_isolated_group_ : 1; |
| 671 bool use_parent_backface_visibility_ : 1; | 668 bool use_parent_backface_visibility_ : 1; |
| 672 bool use_local_transform_for_backface_visibility_ : 1; | 669 bool use_local_transform_for_backface_visibility_ : 1; |
| 673 bool should_check_backface_visibility_ : 1; | 670 bool should_check_backface_visibility_ : 1; |
| 674 bool draws_content_ : 1; | 671 bool draws_content_ : 1; |
| 675 bool hide_layer_and_subtree_ : 1; | 672 bool hide_layer_and_subtree_ : 1; |
| 676 | 673 |
| 677 // Cache transform_'s invertibility. | |
| 678 bool transform_is_invertible_ : 1; | |
| 679 | |
| 680 // Set for the layer that other layers are fixed to. | 674 // Set for the layer that other layers are fixed to. |
| 681 bool is_container_for_fixed_position_layers_ : 1; | 675 bool is_container_for_fixed_position_layers_ : 1; |
| 682 | 676 |
| 683 bool is_affected_by_page_scale_ : 1; | 677 bool is_affected_by_page_scale_ : 1; |
| 684 | 678 |
| 685 // This is true if and only if the layer was ever ready since it last animated | 679 // This is true if and only if the layer was ever ready since it last animated |
| 686 // (all content was complete). | 680 // (all content was complete). |
| 687 bool was_ever_ready_since_last_transform_animation_ : 1; | 681 bool was_ever_ready_since_last_transform_animation_ : 1; |
| 688 | 682 |
| 689 Region non_fast_scrollable_region_; | 683 Region non_fast_scrollable_region_; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 bool scrolls_drawn_descendant_; | 751 bool scrolls_drawn_descendant_; |
| 758 // If true, the layer or one of its descendants has a touch handler. | 752 // If true, the layer or one of its descendants has a touch handler. |
| 759 bool layer_or_descendant_has_touch_handler_; | 753 bool layer_or_descendant_has_touch_handler_; |
| 760 | 754 |
| 761 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 755 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 762 }; | 756 }; |
| 763 | 757 |
| 764 } // namespace cc | 758 } // namespace cc |
| 765 | 759 |
| 766 #endif // CC_LAYERS_LAYER_IMPL_H_ | 760 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |