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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 // TODO(weiliangc): this should move to the effect tree. | 518 // TODO(weiliangc): this should move to the effect tree. |
519 void set_num_layer_or_descendant_with_copy_request( | 519 void set_num_layer_or_descendant_with_copy_request( |
520 int num_layer_or_descendants_with_copy_request) { | 520 int num_layer_or_descendants_with_copy_request) { |
521 num_layer_or_descendants_with_copy_request_ = | 521 num_layer_or_descendants_with_copy_request_ = |
522 num_layer_or_descendants_with_copy_request; | 522 num_layer_or_descendants_with_copy_request; |
523 } | 523 } |
524 int num_layer_or_descendants_with_copy_request() { | 524 int num_layer_or_descendants_with_copy_request() { |
525 return num_layer_or_descendants_with_copy_request_; | 525 return num_layer_or_descendants_with_copy_request_; |
526 } | 526 } |
527 | 527 |
| 528 void SetElementId(uint64_t id); |
| 529 uint64_t element_id() const { return element_id_; } |
| 530 |
| 531 void SetMutableProperties(uint32_t properties); |
| 532 uint32_t mutable_properties() const { return mutable_properties_; } |
| 533 |
528 void set_visited(bool visited); | 534 void set_visited(bool visited); |
529 bool visited(); | 535 bool visited(); |
530 void set_layer_or_descendant_is_drawn(bool layer_or_descendant_is_drawn); | 536 void set_layer_or_descendant_is_drawn(bool layer_or_descendant_is_drawn); |
531 bool layer_or_descendant_is_drawn(); | 537 bool layer_or_descendant_is_drawn(); |
532 void set_sorted_for_recursion(bool sorted_for_recursion); | 538 void set_sorted_for_recursion(bool sorted_for_recursion); |
533 bool sorted_for_recursion(); | 539 bool sorted_for_recursion(); |
534 | 540 |
535 // LayerAnimationValueProvider implementation. | 541 // LayerAnimationValueProvider implementation. |
536 gfx::ScrollOffset ScrollOffsetForAnimation() const override; | 542 gfx::ScrollOffset ScrollOffsetForAnimation() const override; |
537 | 543 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 // This variable indicates which ancestor layer (if any) whose size, | 673 // This variable indicates which ancestor layer (if any) whose size, |
668 // transformed relative to this layer, defines the maximum scroll offset for | 674 // transformed relative to this layer, defines the maximum scroll offset for |
669 // this layer. | 675 // this layer. |
670 int scroll_clip_layer_id_; | 676 int scroll_clip_layer_id_; |
671 int num_descendants_that_draw_content_; | 677 int num_descendants_that_draw_content_; |
672 int transform_tree_index_; | 678 int transform_tree_index_; |
673 int effect_tree_index_; | 679 int effect_tree_index_; |
674 int clip_tree_index_; | 680 int clip_tree_index_; |
675 int property_tree_sequence_number_; | 681 int property_tree_sequence_number_; |
676 int num_layer_or_descendants_with_copy_request_; | 682 int num_layer_or_descendants_with_copy_request_; |
| 683 uint64_t element_id_; |
| 684 uint32_t mutable_properties_; |
677 gfx::Vector2dF offset_to_transform_parent_; | 685 gfx::Vector2dF offset_to_transform_parent_; |
678 bool should_flatten_transform_from_property_tree_ : 1; | 686 bool should_flatten_transform_from_property_tree_ : 1; |
679 bool should_scroll_on_main_thread_ : 1; | 687 bool should_scroll_on_main_thread_ : 1; |
680 bool have_wheel_event_handlers_ : 1; | 688 bool have_wheel_event_handlers_ : 1; |
681 bool have_scroll_event_handlers_ : 1; | 689 bool have_scroll_event_handlers_ : 1; |
682 bool user_scrollable_horizontal_ : 1; | 690 bool user_scrollable_horizontal_ : 1; |
683 bool user_scrollable_vertical_ : 1; | 691 bool user_scrollable_vertical_ : 1; |
684 bool is_root_for_isolated_group_ : 1; | 692 bool is_root_for_isolated_group_ : 1; |
685 bool is_container_for_fixed_position_layers_ : 1; | 693 bool is_container_for_fixed_position_layers_ : 1; |
686 bool is_drawable_ : 1; | 694 bool is_drawable_ : 1; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 | 750 |
743 std::vector<FrameTimingRequest> frame_timing_requests_; | 751 std::vector<FrameTimingRequest> frame_timing_requests_; |
744 bool frame_timing_requests_dirty_; | 752 bool frame_timing_requests_dirty_; |
745 | 753 |
746 DISALLOW_COPY_AND_ASSIGN(Layer); | 754 DISALLOW_COPY_AND_ASSIGN(Layer); |
747 }; | 755 }; |
748 | 756 |
749 } // namespace cc | 757 } // namespace cc |
750 | 758 |
751 #endif // CC_LAYERS_LAYER_H_ | 759 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |