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

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

Issue 2144303002: Made layout viewport scroll updates from compositor work like ordinary layers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rootScrollerOnCompositor
Patch Set: Initialize ScrollUpdateInfo's layer id in constructor Created 4 years, 5 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 <memory> 10 #include <memory>
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 ScrollOffsetMap; 392 ScrollOffsetMap;
393 393
394 gfx::ScrollOffset MaxScrollOffset(int scroll_node_id) const; 394 gfx::ScrollOffset MaxScrollOffset(int scroll_node_id) const;
395 gfx::Size scroll_clip_layer_bounds(int scroll_node_id) const; 395 gfx::Size scroll_clip_layer_bounds(int scroll_node_id) const;
396 ScrollNode* CurrentlyScrollingNode(); 396 ScrollNode* CurrentlyScrollingNode();
397 const ScrollNode* CurrentlyScrollingNode() const; 397 const ScrollNode* CurrentlyScrollingNode() const;
398 void set_currently_scrolling_node(int scroll_node_id); 398 void set_currently_scrolling_node(int scroll_node_id);
399 gfx::Transform ScreenSpaceTransform(int scroll_node_id) const; 399 gfx::Transform ScreenSpaceTransform(int scroll_node_id) const;
400 400
401 const gfx::ScrollOffset current_scroll_offset(int layer_id) const; 401 const gfx::ScrollOffset current_scroll_offset(int layer_id) const;
402 void CollectScrollDeltas(ScrollAndScaleSet* scroll_info); 402 void CollectScrollDeltas(ScrollAndScaleSet* scroll_info,
403 int inner_viewport_layer_id);
403 void UpdateScrollOffsetMap(ScrollOffsetMap* new_scroll_offset_map, 404 void UpdateScrollOffsetMap(ScrollOffsetMap* new_scroll_offset_map,
404 LayerTreeImpl* layer_tree_impl); 405 LayerTreeImpl* layer_tree_impl);
405 ScrollOffsetMap& scroll_offset_map(); 406 ScrollOffsetMap& scroll_offset_map();
406 const ScrollOffsetMap& scroll_offset_map() const; 407 const ScrollOffsetMap& scroll_offset_map() const;
407 void ApplySentScrollDeltasFromAbortedCommit(); 408 void ApplySentScrollDeltasFromAbortedCommit();
408 bool SetBaseScrollOffset(int layer_id, 409 bool SetBaseScrollOffset(int layer_id,
409 const gfx::ScrollOffset& scroll_offset); 410 const gfx::ScrollOffset& scroll_offset);
410 bool SetScrollOffset(int layer_id, const gfx::ScrollOffset& scroll_offset); 411 bool SetScrollOffset(int layer_id, const gfx::ScrollOffset& scroll_offset);
411 void SetScrollOffsetClobberActiveValue(int layer_id) { 412 void SetScrollOffsetClobberActiveValue(int layer_id) {
412 synced_scroll_offset(layer_id)->set_clobber_active_value(); 413 synced_scroll_offset(layer_id)->set_clobber_active_value();
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 gfx::Vector2dF inner_viewport_container_bounds_delta_; 569 gfx::Vector2dF inner_viewport_container_bounds_delta_;
569 gfx::Vector2dF outer_viewport_container_bounds_delta_; 570 gfx::Vector2dF outer_viewport_container_bounds_delta_;
570 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; 571 gfx::Vector2dF inner_viewport_scroll_bounds_delta_;
571 572
572 PropertyTreesCachedData cached_data_; 573 PropertyTreesCachedData cached_data_;
573 }; 574 };
574 575
575 } // namespace cc 576 } // namespace cc
576 577
577 #endif // CC_TREES_PROPERTY_TREE_H_ 578 #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