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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 | 475 |
476 void SetTransformTreeIndex(int index); | 476 void SetTransformTreeIndex(int index); |
477 int transform_tree_index() const; | 477 int transform_tree_index() const; |
478 | 478 |
479 void SetClipTreeIndex(int index); | 479 void SetClipTreeIndex(int index); |
480 int clip_tree_index() const; | 480 int clip_tree_index() const; |
481 | 481 |
482 void SetEffectTreeIndex(int index); | 482 void SetEffectTreeIndex(int index); |
483 int effect_tree_index() const; | 483 int effect_tree_index() const; |
484 | 484 |
| 485 void SetScrollTreeIndex(int index); |
| 486 int scroll_tree_index() const; |
| 487 |
485 void set_offset_to_transform_parent(gfx::Vector2dF offset) { | 488 void set_offset_to_transform_parent(gfx::Vector2dF offset) { |
486 if (offset_to_transform_parent_ == offset) | 489 if (offset_to_transform_parent_ == offset) |
487 return; | 490 return; |
488 offset_to_transform_parent_ = offset; | 491 offset_to_transform_parent_ = offset; |
489 SetNeedsPushProperties(); | 492 SetNeedsPushProperties(); |
490 } | 493 } |
491 gfx::Vector2dF offset_to_transform_parent() const { | 494 gfx::Vector2dF offset_to_transform_parent() const { |
492 return offset_to_transform_parent_; | 495 return offset_to_transform_parent_; |
493 } | 496 } |
494 | 497 |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 gfx::ScrollOffset scroll_offset_; | 717 gfx::ScrollOffset scroll_offset_; |
715 gfx::Vector2dF scroll_compensation_adjustment_; | 718 gfx::Vector2dF scroll_compensation_adjustment_; |
716 // This variable indicates which ancestor layer (if any) whose size, | 719 // This variable indicates which ancestor layer (if any) whose size, |
717 // transformed relative to this layer, defines the maximum scroll offset for | 720 // transformed relative to this layer, defines the maximum scroll offset for |
718 // this layer. | 721 // this layer. |
719 int scroll_clip_layer_id_; | 722 int scroll_clip_layer_id_; |
720 int num_descendants_that_draw_content_; | 723 int num_descendants_that_draw_content_; |
721 int transform_tree_index_; | 724 int transform_tree_index_; |
722 int effect_tree_index_; | 725 int effect_tree_index_; |
723 int clip_tree_index_; | 726 int clip_tree_index_; |
| 727 int scroll_tree_index_; |
724 int property_tree_sequence_number_; | 728 int property_tree_sequence_number_; |
725 uint64_t element_id_; | 729 uint64_t element_id_; |
726 uint32_t mutable_properties_; | 730 uint32_t mutable_properties_; |
727 gfx::Vector2dF offset_to_transform_parent_; | 731 gfx::Vector2dF offset_to_transform_parent_; |
728 uint32_t main_thread_scrolling_reasons_; | 732 uint32_t main_thread_scrolling_reasons_; |
729 bool should_flatten_transform_from_property_tree_ : 1; | 733 bool should_flatten_transform_from_property_tree_ : 1; |
730 bool have_wheel_event_handlers_ : 1; | 734 bool have_wheel_event_handlers_ : 1; |
731 bool have_scroll_event_handlers_ : 1; | 735 bool have_scroll_event_handlers_ : 1; |
732 bool user_scrollable_horizontal_ : 1; | 736 bool user_scrollable_horizontal_ : 1; |
733 bool user_scrollable_vertical_ : 1; | 737 bool user_scrollable_vertical_ : 1; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 std::vector<FrameTimingRequest> frame_timing_requests_; | 797 std::vector<FrameTimingRequest> frame_timing_requests_; |
794 bool frame_timing_requests_dirty_; | 798 bool frame_timing_requests_dirty_; |
795 bool is_hidden_from_property_trees_; | 799 bool is_hidden_from_property_trees_; |
796 | 800 |
797 DISALLOW_COPY_AND_ASSIGN(Layer); | 801 DISALLOW_COPY_AND_ASSIGN(Layer); |
798 }; | 802 }; |
799 | 803 |
800 } // namespace cc | 804 } // namespace cc |
801 | 805 |
802 #endif // CC_LAYERS_LAYER_H_ | 806 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |