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

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

Issue 2339583002: cc: Move OnScrollOffsetAnimated to scroll tree (Closed)
Patch Set: Created 4 years, 3 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_animation.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 <memory> 10 #include <memory>
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 void ToProtobuf(proto::PropertyTree* proto) const; 392 void ToProtobuf(proto::PropertyTree* proto) const;
393 void FromProtobuf(const proto::PropertyTree& proto, 393 void FromProtobuf(const proto::PropertyTree& proto,
394 std::unordered_map<int, int>* node_id_to_index_map); 394 std::unordered_map<int, int>* node_id_to_index_map);
395 395
396 void clear(); 396 void clear();
397 397
398 typedef std::unordered_map<int, scoped_refptr<SyncedScrollOffset>> 398 typedef std::unordered_map<int, scoped_refptr<SyncedScrollOffset>>
399 ScrollOffsetMap; 399 ScrollOffsetMap;
400 400
401 gfx::ScrollOffset MaxScrollOffset(int scroll_node_id) const; 401 gfx::ScrollOffset MaxScrollOffset(int scroll_node_id) const;
402 void OnScrollOffsetAnimated(int layer_id,
403 int transform_tree_index,
404 int scroll_tree_index,
405 const gfx::ScrollOffset& scroll_offset,
406 LayerTreeImpl* layer_tree_impl);
402 gfx::Size scroll_clip_layer_bounds(int scroll_node_id) const; 407 gfx::Size scroll_clip_layer_bounds(int scroll_node_id) const;
403 ScrollNode* CurrentlyScrollingNode(); 408 ScrollNode* CurrentlyScrollingNode();
404 const ScrollNode* CurrentlyScrollingNode() const; 409 const ScrollNode* CurrentlyScrollingNode() const;
405 #if DCHECK_IS_ON() 410 #if DCHECK_IS_ON()
406 int CurrentlyScrollingNodeId() const; 411 int CurrentlyScrollingNodeId() const;
407 #endif 412 #endif
408 void set_currently_scrolling_node(int scroll_node_id); 413 void set_currently_scrolling_node(int scroll_node_id);
409 gfx::Transform ScreenSpaceTransform(int scroll_node_id) const; 414 gfx::Transform ScreenSpaceTransform(int scroll_node_id) const;
410 415
411 const gfx::ScrollOffset current_scroll_offset(int layer_id) const; 416 const gfx::ScrollOffset current_scroll_offset(int layer_id) const;
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 gfx::Vector2dF inner_viewport_container_bounds_delta_; 627 gfx::Vector2dF inner_viewport_container_bounds_delta_;
623 gfx::Vector2dF outer_viewport_container_bounds_delta_; 628 gfx::Vector2dF outer_viewport_container_bounds_delta_;
624 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; 629 gfx::Vector2dF inner_viewport_scroll_bounds_delta_;
625 630
626 PropertyTreesCachedData cached_data_; 631 PropertyTreesCachedData cached_data_;
627 }; 632 };
628 633
629 } // namespace cc 634 } // namespace cc
630 635
631 #endif // CC_TREES_PROPERTY_TREE_H_ 636 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_animation.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698