OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |