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

Unified Diff: cc/trees/layer_tree_impl.h

Issue 2720183003: Track the currently scrolling ScrollNode instead of the scrolling layer (Closed)
Patch Set: Rebase Created 3 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index df46775df49df60691872e3500efed1768ed5ec6..09cd850fd801180228c5337bd2c1bea13c56f586 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -176,10 +176,11 @@ class CC_EXPORT LayerTreeImpl {
LayerImpl* InnerViewportContainerLayer() const;
LayerImpl* OuterViewportContainerLayer() const;
- LayerImpl* CurrentlyScrollingLayer() const;
- int LastScrolledLayerId() const;
- void SetCurrentlyScrollingLayer(LayerImpl* layer);
- void ClearCurrentlyScrollingLayer();
+ ScrollNode* CurrentlyScrollingNode();
+ const ScrollNode* CurrentlyScrollingNode() const;
+ int LastScrolledScrollNodeIndex() const;
+ void SetCurrentlyScrollingNode(ScrollNode* node);
+ void ClearCurrentlyScrollingNode();
void SetViewportLayersFromIds(int overscroll_elasticity_layer,
int page_scale_layer_id,
@@ -478,7 +479,7 @@ class CC_EXPORT LayerTreeImpl {
SkColor background_color_;
bool has_transparent_background_;
- int last_scrolled_layer_id_;
+ int last_scrolled_scroll_node_index_;
int overscroll_elasticity_layer_id_;
int page_scale_layer_id_;
int inner_viewport_scroll_layer_id_;

Powered by Google App Engine
This is Rietveld 408576698