| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
| 6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 const LayerPositionConstraint& position_constraint() const { | 192 const LayerPositionConstraint& position_constraint() const { |
| 193 return position_constraint_; | 193 return position_constraint_; |
| 194 } | 194 } |
| 195 | 195 |
| 196 void SetTransform(const gfx::Transform& transform); | 196 void SetTransform(const gfx::Transform& transform); |
| 197 const gfx::Transform& transform() const { return transform_; } | 197 const gfx::Transform& transform() const { return transform_; } |
| 198 bool TransformIsAnimating() const; | 198 bool TransformIsAnimating() const; |
| 199 bool HasPotentiallyRunningTransformAnimation() const; | 199 bool HasPotentiallyRunningTransformAnimation() const; |
| 200 bool HasOnlyTranslationTransforms() const; | 200 bool HasOnlyTranslationTransforms() const; |
| 201 bool AnimationsPreserveAxisAlignment() const; | 201 bool AnimationsPreserveAxisAlignment() const; |
| 202 bool transform_is_invertible() const { return transform_is_invertible_; } | |
| 203 | 202 |
| 204 bool MaximumTargetScale(float* max_scale) const; | 203 bool MaximumTargetScale(float* max_scale) const; |
| 205 bool AnimationStartScale(float* start_scale) const; | 204 bool AnimationStartScale(float* start_scale) const; |
| 206 | 205 |
| 207 void SetTransformOrigin(const gfx::Point3F&); | 206 void SetTransformOrigin(const gfx::Point3F&); |
| 208 gfx::Point3F transform_origin() const { return transform_origin_; } | 207 gfx::Point3F transform_origin() const { return transform_origin_; } |
| 209 | 208 |
| 210 bool HasAnyAnimationTargetingProperty(TargetProperty::Type property) const; | 209 bool HasAnyAnimationTargetingProperty(TargetProperty::Type property) const; |
| 211 | 210 |
| 212 bool ScrollOffsetAnimationWasInterrupted() const; | 211 bool ScrollOffsetAnimationWasInterrupted() const; |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 bool draws_content_ : 1; | 634 bool draws_content_ : 1; |
| 636 bool hide_layer_and_subtree_ : 1; | 635 bool hide_layer_and_subtree_ : 1; |
| 637 bool masks_to_bounds_ : 1; | 636 bool masks_to_bounds_ : 1; |
| 638 bool contents_opaque_ : 1; | 637 bool contents_opaque_ : 1; |
| 639 bool double_sided_ : 1; | 638 bool double_sided_ : 1; |
| 640 bool should_flatten_transform_ : 1; | 639 bool should_flatten_transform_ : 1; |
| 641 bool use_parent_backface_visibility_ : 1; | 640 bool use_parent_backface_visibility_ : 1; |
| 642 bool use_local_transform_for_backface_visibility_ : 1; | 641 bool use_local_transform_for_backface_visibility_ : 1; |
| 643 bool should_check_backface_visibility_ : 1; | 642 bool should_check_backface_visibility_ : 1; |
| 644 bool force_render_surface_for_testing_ : 1; | 643 bool force_render_surface_for_testing_ : 1; |
| 645 bool transform_is_invertible_ : 1; | |
| 646 bool has_render_surface_ : 1; | 644 bool has_render_surface_ : 1; |
| 647 bool subtree_property_changed_ : 1; | 645 bool subtree_property_changed_ : 1; |
| 648 Region non_fast_scrollable_region_; | 646 Region non_fast_scrollable_region_; |
| 649 Region touch_event_handler_region_; | 647 Region touch_event_handler_region_; |
| 650 gfx::PointF position_; | 648 gfx::PointF position_; |
| 651 SkColor background_color_; | 649 SkColor background_color_; |
| 652 SkColor safe_opaque_background_color_; | 650 SkColor safe_opaque_background_color_; |
| 653 float opacity_; | 651 float opacity_; |
| 654 SkXfermode::Mode blend_mode_; | 652 SkXfermode::Mode blend_mode_; |
| 655 // draw_blend_mode may be different than blend_mode_, | 653 // draw_blend_mode may be different than blend_mode_, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 681 // These all act like draw properties, so don't need push properties. | 679 // These all act like draw properties, so don't need push properties. |
| 682 gfx::Rect visible_layer_rect_; | 680 gfx::Rect visible_layer_rect_; |
| 683 size_t num_unclipped_descendants_; | 681 size_t num_unclipped_descendants_; |
| 684 | 682 |
| 685 DISALLOW_COPY_AND_ASSIGN(Layer); | 683 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 686 }; | 684 }; |
| 687 | 685 |
| 688 } // namespace cc | 686 } // namespace cc |
| 689 | 687 |
| 690 #endif // CC_LAYERS_LAYER_H_ | 688 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |