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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 | 564 |
565 // Note this rect is in layer space (not content space). | 565 // Note this rect is in layer space (not content space). |
566 void SetUpdateRect(const gfx::Rect& update_rect); | 566 void SetUpdateRect(const gfx::Rect& update_rect); |
567 const gfx::Rect& update_rect() const { return update_rect_; } | 567 const gfx::Rect& update_rect() const { return update_rect_; } |
568 | 568 |
569 void AddDamageRect(const gfx::Rect& damage_rect); | 569 void AddDamageRect(const gfx::Rect& damage_rect); |
570 const gfx::Rect& damage_rect() const { return damage_rect_; } | 570 const gfx::Rect& damage_rect() const { return damage_rect_; } |
571 | 571 |
572 virtual base::DictionaryValue* LayerTreeAsJson() const; | 572 virtual base::DictionaryValue* LayerTreeAsJson() const; |
573 | 573 |
574 void SetStackingOrderChanged(bool stacking_order_changed); | |
575 | |
576 bool LayerPropertyChanged() const; | 574 bool LayerPropertyChanged() const; |
577 | 575 |
578 void ResetAllChangeTrackingForSubtree(); | 576 void ResetAllChangeTrackingForSubtree(); |
579 | 577 |
580 LayerAnimationController* layer_animation_controller() { | 578 LayerAnimationController* layer_animation_controller() { |
581 return layer_animation_controller_.get(); | 579 return layer_animation_controller_.get(); |
582 } | 580 } |
583 | 581 |
584 const LayerAnimationController* layer_animation_controller() const { | 582 const LayerAnimationController* layer_animation_controller() const { |
585 return layer_animation_controller_.get(); | 583 return layer_animation_controller_.get(); |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 // Properties synchronized from the associated Layer. | 759 // Properties synchronized from the associated Layer. |
762 gfx::Point3F transform_origin_; | 760 gfx::Point3F transform_origin_; |
763 gfx::Size bounds_; | 761 gfx::Size bounds_; |
764 int scroll_clip_layer_id_; | 762 int scroll_clip_layer_id_; |
765 | 763 |
766 gfx::Vector2dF offset_to_transform_parent_; | 764 gfx::Vector2dF offset_to_transform_parent_; |
767 uint32_t main_thread_scrolling_reasons_; | 765 uint32_t main_thread_scrolling_reasons_; |
768 | 766 |
769 bool user_scrollable_horizontal_ : 1; | 767 bool user_scrollable_horizontal_ : 1; |
770 bool user_scrollable_vertical_ : 1; | 768 bool user_scrollable_vertical_ : 1; |
771 bool stacking_order_changed_ : 1; | |
772 // Whether the "back" of this layer should draw. | 769 // Whether the "back" of this layer should draw. |
773 bool double_sided_ : 1; | 770 bool double_sided_ : 1; |
774 bool should_flatten_transform_ : 1; | 771 bool should_flatten_transform_ : 1; |
775 bool should_flatten_transform_from_property_tree_ : 1; | 772 bool should_flatten_transform_from_property_tree_ : 1; |
776 | 773 |
777 // Tracks if drawing-related properties have changed since last redraw. | 774 // Tracks if drawing-related properties have changed since last redraw. |
778 bool layer_property_changed_ : 1; | 775 bool layer_property_changed_ : 1; |
779 | 776 |
780 bool masks_to_bounds_ : 1; | 777 bool masks_to_bounds_ : 1; |
781 bool contents_opaque_ : 1; | 778 bool contents_opaque_ : 1; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
883 // If true, the layer or one of its descendants has a touch handler. | 880 // If true, the layer or one of its descendants has a touch handler. |
884 bool layer_or_descendant_has_touch_handler_; | 881 bool layer_or_descendant_has_touch_handler_; |
885 bool sorted_for_recursion_; | 882 bool sorted_for_recursion_; |
886 | 883 |
887 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 884 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
888 }; | 885 }; |
889 | 886 |
890 } // namespace cc | 887 } // namespace cc |
891 | 888 |
892 #endif // CC_LAYERS_LAYER_IMPL_H_ | 889 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |