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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 // TODO(weiliangc): this should move to the effect tree. | 535 // TODO(weiliangc): this should move to the effect tree. |
536 void set_num_layer_or_descendant_with_copy_request( | 536 void set_num_layer_or_descendant_with_copy_request( |
537 int num_layer_or_descendants_with_copy_request) { | 537 int num_layer_or_descendants_with_copy_request) { |
538 num_layer_or_descendants_with_copy_request_ = | 538 num_layer_or_descendants_with_copy_request_ = |
539 num_layer_or_descendants_with_copy_request; | 539 num_layer_or_descendants_with_copy_request; |
540 } | 540 } |
541 int num_layer_or_descendants_with_copy_request() { | 541 int num_layer_or_descendants_with_copy_request() { |
542 return num_layer_or_descendants_with_copy_request_; | 542 return num_layer_or_descendants_with_copy_request_; |
543 } | 543 } |
544 | 544 |
| 545 void SetElementId(uint64_t id); |
| 546 uint64_t element_id() const { return element_id_; } |
| 547 |
| 548 void SetMutableProperties(uint32_t properties); |
| 549 uint32_t mutable_properties() const { return mutable_properties_; } |
| 550 |
545 void set_visited(bool visited); | 551 void set_visited(bool visited); |
546 bool visited(); | 552 bool visited(); |
547 void set_layer_or_descendant_is_drawn(bool layer_or_descendant_is_drawn); | 553 void set_layer_or_descendant_is_drawn(bool layer_or_descendant_is_drawn); |
548 bool layer_or_descendant_is_drawn(); | 554 bool layer_or_descendant_is_drawn(); |
549 void set_sorted_for_recursion(bool sorted_for_recursion); | 555 void set_sorted_for_recursion(bool sorted_for_recursion); |
550 bool sorted_for_recursion(); | 556 bool sorted_for_recursion(); |
551 | 557 |
552 // LayerAnimationValueProvider implementation. | 558 // LayerAnimationValueProvider implementation. |
553 gfx::ScrollOffset ScrollOffsetForAnimation() const override; | 559 gfx::ScrollOffset ScrollOffsetForAnimation() const override; |
554 | 560 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 // This variable indicates which ancestor layer (if any) whose size, | 706 // This variable indicates which ancestor layer (if any) whose size, |
701 // transformed relative to this layer, defines the maximum scroll offset for | 707 // transformed relative to this layer, defines the maximum scroll offset for |
702 // this layer. | 708 // this layer. |
703 int scroll_clip_layer_id_; | 709 int scroll_clip_layer_id_; |
704 int num_descendants_that_draw_content_; | 710 int num_descendants_that_draw_content_; |
705 int transform_tree_index_; | 711 int transform_tree_index_; |
706 int effect_tree_index_; | 712 int effect_tree_index_; |
707 int clip_tree_index_; | 713 int clip_tree_index_; |
708 int property_tree_sequence_number_; | 714 int property_tree_sequence_number_; |
709 int num_layer_or_descendants_with_copy_request_; | 715 int num_layer_or_descendants_with_copy_request_; |
| 716 uint64_t element_id_; |
| 717 uint32_t mutable_properties_; |
710 gfx::Vector2dF offset_to_transform_parent_; | 718 gfx::Vector2dF offset_to_transform_parent_; |
711 bool should_flatten_transform_from_property_tree_ : 1; | 719 bool should_flatten_transform_from_property_tree_ : 1; |
712 bool should_scroll_on_main_thread_ : 1; | 720 bool should_scroll_on_main_thread_ : 1; |
713 bool have_wheel_event_handlers_ : 1; | 721 bool have_wheel_event_handlers_ : 1; |
714 bool have_scroll_event_handlers_ : 1; | 722 bool have_scroll_event_handlers_ : 1; |
715 bool user_scrollable_horizontal_ : 1; | 723 bool user_scrollable_horizontal_ : 1; |
716 bool user_scrollable_vertical_ : 1; | 724 bool user_scrollable_vertical_ : 1; |
717 bool is_root_for_isolated_group_ : 1; | 725 bool is_root_for_isolated_group_ : 1; |
718 bool is_container_for_fixed_position_layers_ : 1; | 726 bool is_container_for_fixed_position_layers_ : 1; |
719 bool is_drawable_ : 1; | 727 bool is_drawable_ : 1; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 | 783 |
776 std::vector<FrameTimingRequest> frame_timing_requests_; | 784 std::vector<FrameTimingRequest> frame_timing_requests_; |
777 bool frame_timing_requests_dirty_; | 785 bool frame_timing_requests_dirty_; |
778 | 786 |
779 DISALLOW_COPY_AND_ASSIGN(Layer); | 787 DISALLOW_COPY_AND_ASSIGN(Layer); |
780 }; | 788 }; |
781 | 789 |
782 } // namespace cc | 790 } // namespace cc |
783 | 791 |
784 #endif // CC_LAYERS_LAYER_H_ | 792 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |