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

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

Issue 1689293002: cc: Move TryScroll from LayerImpl to LayerTreeHostImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with master and fix unit test failures. Created 4 years, 10 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_host_unittest_scroll.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 <vector> 10 #include <vector>
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 ScrollNodeData(); 268 ScrollNodeData();
269 269
270 bool scrollable; 270 bool scrollable;
271 uint32_t main_thread_scrolling_reasons; 271 uint32_t main_thread_scrolling_reasons;
272 bool contains_non_fast_scrollable_region; 272 bool contains_non_fast_scrollable_region;
273 gfx::Size scroll_clip_layer_bounds; 273 gfx::Size scroll_clip_layer_bounds;
274 gfx::Size bounds; 274 gfx::Size bounds;
275 bool max_scroll_offset_affected_by_page_scale; 275 bool max_scroll_offset_affected_by_page_scale;
276 bool is_inner_viewport_scroll_layer; 276 bool is_inner_viewport_scroll_layer;
277 bool is_outer_viewport_scroll_layer; 277 bool is_outer_viewport_scroll_layer;
278 gfx::Vector2dF offset_to_transform_parent;
279 bool should_flatten;
280 int transform_id;
278 281
279 bool operator==(const ScrollNodeData& other) const; 282 bool operator==(const ScrollNodeData& other) const;
280 283
281 void ToProtobuf(proto::TreeNode* proto) const; 284 void ToProtobuf(proto::TreeNode* proto) const;
282 void FromProtobuf(const proto::TreeNode& proto); 285 void FromProtobuf(const proto::TreeNode& proto);
283 }; 286 };
284 287
285 typedef TreeNode<ScrollNodeData> ScrollNode; 288 typedef TreeNode<ScrollNodeData> ScrollNode;
286 289
287 class PropertyTrees; 290 class PropertyTrees;
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 public: 526 public:
524 ScrollTree(); 527 ScrollTree();
525 ~ScrollTree() override; 528 ~ScrollTree() override;
526 529
527 bool operator==(const ScrollTree& other) const; 530 bool operator==(const ScrollTree& other) const;
528 531
529 void ToProtobuf(proto::PropertyTree* proto) const; 532 void ToProtobuf(proto::PropertyTree* proto) const;
530 void FromProtobuf(const proto::PropertyTree& proto); 533 void FromProtobuf(const proto::PropertyTree& proto);
531 534
532 gfx::ScrollOffset MaxScrollOffset(int scroll_node_id) const; 535 gfx::ScrollOffset MaxScrollOffset(int scroll_node_id) const;
536 gfx::Transform ScreenSpaceTransform(int scroll_node_id) const;
533 }; 537 };
534 538
535 class CC_EXPORT PropertyTrees final { 539 class CC_EXPORT PropertyTrees final {
536 public: 540 public:
537 PropertyTrees(); 541 PropertyTrees();
538 ~PropertyTrees(); 542 ~PropertyTrees();
539 543
540 bool operator==(const PropertyTrees& other) const; 544 bool operator==(const PropertyTrees& other) const;
541 PropertyTrees& operator=(const PropertyTrees& from); 545 PropertyTrees& operator=(const PropertyTrees& from);
542 546
(...skipping 26 matching lines...) Expand all
569 573
570 private: 574 private:
571 gfx::Vector2dF inner_viewport_container_bounds_delta_; 575 gfx::Vector2dF inner_viewport_container_bounds_delta_;
572 gfx::Vector2dF outer_viewport_container_bounds_delta_; 576 gfx::Vector2dF outer_viewport_container_bounds_delta_;
573 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; 577 gfx::Vector2dF inner_viewport_scroll_bounds_delta_;
574 }; 578 };
575 579
576 } // namespace cc 580 } // namespace cc
577 581
578 #endif // CC_TREES_PROPERTY_TREE_H_ 582 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_scroll.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698