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

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: Merge with master 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') | no next file with comments »
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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698