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

Unified Diff: cc/trees/property_tree.h

Issue 1805343006: cc: Impl thread scroll on ScrollNode instead of LayerImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove LayerImpl from ScrollAnimated Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/property_tree.h
diff --git a/cc/trees/property_tree.h b/cc/trees/property_tree.h
index 96d8d8e6fa1373fe64b921721820ed4d15198cbd..9115702aa039f78a50c0cc9e0b8c63ba28d1a7cb 100644
--- a/cc/trees/property_tree.h
+++ b/cc/trees/property_tree.h
@@ -30,6 +30,7 @@ class TreeNode;
}
class LayerTreeImpl;
+class ScrollState;
struct ScrollAndScaleSet;
// ------------------------------*IMPORTANT*---------------------------------
@@ -596,6 +597,11 @@ class CC_EXPORT ScrollTree final : public PropertyTree<ScrollNode> {
const gfx::ScrollOffset GetScrollOffsetDeltaForTesting(int layer_id) const;
void CollectScrollDeltasForTesting();
+ void DistributeScroll(ScrollNode* scroll_node, ScrollState* scroll_state);
+ gfx::Vector2dF ScrollBy(ScrollNode* scroll_node,
+ const gfx::Vector2dF& scroll,
+ LayerTreeImpl* layer_tree_impl);
+
private:
int currently_scrolling_node_id_;
ScrollOffsetMap layer_id_to_scroll_offset_map_;
@@ -606,6 +612,8 @@ class CC_EXPORT ScrollTree final : public PropertyTree<ScrollNode> {
void UpdateScrollOffsetMapEntry(int key,
ScrollOffsetMap* new_scroll_offset_map,
LayerTreeImpl* layer_tree_impl);
+ gfx::ScrollOffset ClampScrollOffsetToLimits(gfx::ScrollOffset offset,
+ ScrollNode* scroll_node) const;
};
class CC_EXPORT PropertyTrees final {

Powered by Google App Engine
This is Rietveld 408576698