Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Side by Side Diff: cc/layers/layer.h

Issue 1626513003: Add ScrollTree builder and unit test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change the protobuf indices Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | cc/proto/layer.proto » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | cc/proto/layer.proto » ('J')

Powered by Google App Engine
This is Rietveld 408576698