| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 const LayerPositionConstraint& position_constraint() const { | 193 const LayerPositionConstraint& position_constraint() const { |
| 194 return position_constraint_; | 194 return position_constraint_; |
| 195 } | 195 } |
| 196 | 196 |
| 197 void SetTransform(const gfx::Transform& transform); | 197 void SetTransform(const gfx::Transform& transform); |
| 198 const gfx::Transform& transform() const { return transform_; } | 198 const gfx::Transform& transform() const { return transform_; } |
| 199 bool TransformIsAnimating() const; | 199 bool TransformIsAnimating() const; |
| 200 bool HasPotentiallyRunningTransformAnimation() const; | 200 bool HasPotentiallyRunningTransformAnimation() const; |
| 201 bool HasOnlyTranslationTransforms() const; | 201 bool HasOnlyTranslationTransforms() const; |
| 202 bool AnimationsPreserveAxisAlignment() const; | 202 bool AnimationsPreserveAxisAlignment() const; |
| 203 bool transform_is_invertible() const { return transform_is_invertible_; } | |
| 204 | 203 |
| 205 bool MaximumTargetScale(float* max_scale) const; | 204 bool MaximumTargetScale(float* max_scale) const; |
| 206 bool AnimationStartScale(float* start_scale) const; | 205 bool AnimationStartScale(float* start_scale) const; |
| 207 | 206 |
| 208 void SetTransformOrigin(const gfx::Point3F&); | 207 void SetTransformOrigin(const gfx::Point3F&); |
| 209 gfx::Point3F transform_origin() const { return transform_origin_; } | 208 gfx::Point3F transform_origin() const { return transform_origin_; } |
| 210 | 209 |
| 211 bool HasAnyAnimationTargetingProperty(TargetProperty::Type property) const; | 210 bool HasAnyAnimationTargetingProperty(TargetProperty::Type property) const; |
| 212 | 211 |
| 213 bool ScrollOffsetAnimationWasInterrupted() const; | 212 bool ScrollOffsetAnimationWasInterrupted() const; |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 bool draws_content_ : 1; | 641 bool draws_content_ : 1; |
| 643 bool hide_layer_and_subtree_ : 1; | 642 bool hide_layer_and_subtree_ : 1; |
| 644 bool masks_to_bounds_ : 1; | 643 bool masks_to_bounds_ : 1; |
| 645 bool contents_opaque_ : 1; | 644 bool contents_opaque_ : 1; |
| 646 bool double_sided_ : 1; | 645 bool double_sided_ : 1; |
| 647 bool should_flatten_transform_ : 1; | 646 bool should_flatten_transform_ : 1; |
| 648 bool use_parent_backface_visibility_ : 1; | 647 bool use_parent_backface_visibility_ : 1; |
| 649 bool use_local_transform_for_backface_visibility_ : 1; | 648 bool use_local_transform_for_backface_visibility_ : 1; |
| 650 bool should_check_backface_visibility_ : 1; | 649 bool should_check_backface_visibility_ : 1; |
| 651 bool force_render_surface_ : 1; | 650 bool force_render_surface_ : 1; |
| 652 bool transform_is_invertible_ : 1; | |
| 653 bool has_render_surface_ : 1; | 651 bool has_render_surface_ : 1; |
| 654 bool subtree_property_changed_ : 1; | 652 bool subtree_property_changed_ : 1; |
| 655 Region non_fast_scrollable_region_; | 653 Region non_fast_scrollable_region_; |
| 656 Region touch_event_handler_region_; | 654 Region touch_event_handler_region_; |
| 657 gfx::PointF position_; | 655 gfx::PointF position_; |
| 658 SkColor background_color_; | 656 SkColor background_color_; |
| 659 SkColor safe_opaque_background_color_; | 657 SkColor safe_opaque_background_color_; |
| 660 float opacity_; | 658 float opacity_; |
| 661 SkXfermode::Mode blend_mode_; | 659 SkXfermode::Mode blend_mode_; |
| 662 // draw_blend_mode may be different than blend_mode_, | 660 // draw_blend_mode may be different than blend_mode_, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 691 | 689 |
| 692 std::vector<FrameTimingRequest> frame_timing_requests_; | 690 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 693 bool frame_timing_requests_dirty_; | 691 bool frame_timing_requests_dirty_; |
| 694 | 692 |
| 695 DISALLOW_COPY_AND_ASSIGN(Layer); | 693 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 696 }; | 694 }; |
| 697 | 695 |
| 698 } // namespace cc | 696 } // namespace cc |
| 699 | 697 |
| 700 #endif // CC_LAYERS_LAYER_H_ | 698 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |