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

Unified Diff: cc/trees/layer_tree_impl.h

Issue 2113483002: Make RootScroller set the outer viewport scroll layer in the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 e07946f8dba77697fe0147b54dcb84355c34187f..37121a99bc79e6a92a93a74c48e22df175731f7e 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -207,6 +207,10 @@ class CC_EXPORT LayerTreeImpl {
int inner_viewport_scroll_layer_id,
int outer_viewport_scroll_layer_id);
void ClearViewportLayers();
+
+ void SetRootScrollerLayerFromId(int root_scroller_layer_id);
+ LayerImpl* RootScrollerLayer() { return LayerById(root_scroller_layer_id_); }
+
LayerImpl* OverscrollElasticityLayer() {
return LayerById(overscroll_elasticity_layer_id_);
}
@@ -514,6 +518,7 @@ class CC_EXPORT LayerTreeImpl {
int page_scale_layer_id_;
int inner_viewport_scroll_layer_id_;
int outer_viewport_scroll_layer_id_;
+ int root_scroller_layer_id_;
LayerSelection selection_;

Powered by Google App Engine
This is Rietveld 408576698