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