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

Side by Side Diff: cc/trees/property_tree.h

Issue 1882413006: cc: Construct the RSLL without using layer hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 8 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 | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/property_tree.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TREES_PROPERTY_TREE_H_ 5 #ifndef CC_TREES_PROPERTY_TREE_H_
6 #define CC_TREES_PROPERTY_TREE_H_ 6 #define CC_TREES_PROPERTY_TREE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <unordered_map> 10 #include <unordered_map>
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 gfx::Size bounds; 299 gfx::Size bounds;
300 bool max_scroll_offset_affected_by_page_scale; 300 bool max_scroll_offset_affected_by_page_scale;
301 bool is_inner_viewport_scroll_layer; 301 bool is_inner_viewport_scroll_layer;
302 bool is_outer_viewport_scroll_layer; 302 bool is_outer_viewport_scroll_layer;
303 gfx::Vector2dF offset_to_transform_parent; 303 gfx::Vector2dF offset_to_transform_parent;
304 bool should_flatten; 304 bool should_flatten;
305 bool user_scrollable_horizontal; 305 bool user_scrollable_horizontal;
306 bool user_scrollable_vertical; 306 bool user_scrollable_vertical;
307 int element_id; 307 int element_id;
308 int transform_id; 308 int transform_id;
309 // Number of drawn layers pointing to this node or any of its descendants.
310 int num_drawn_descendants;
309 311
310 bool operator==(const ScrollNodeData& other) const; 312 bool operator==(const ScrollNodeData& other) const;
311 313
312 void ToProtobuf(proto::TreeNode* proto) const; 314 void ToProtobuf(proto::TreeNode* proto) const;
313 void FromProtobuf(const proto::TreeNode& proto); 315 void FromProtobuf(const proto::TreeNode& proto);
314 }; 316 };
315 317
316 typedef TreeNode<ScrollNodeData> ScrollNode; 318 typedef TreeNode<ScrollNodeData> ScrollNode;
317 319
318 class PropertyTrees; 320 class PropertyTrees;
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 685
684 private: 686 private:
685 gfx::Vector2dF inner_viewport_container_bounds_delta_; 687 gfx::Vector2dF inner_viewport_container_bounds_delta_;
686 gfx::Vector2dF outer_viewport_container_bounds_delta_; 688 gfx::Vector2dF outer_viewport_container_bounds_delta_;
687 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; 689 gfx::Vector2dF inner_viewport_scroll_bounds_delta_;
688 }; 690 };
689 691
690 } // namespace cc 692 } // namespace cc
691 693
692 #endif // CC_TREES_PROPERTY_TREE_H_ 694 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698