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

Unified Diff: cc/trees/layer_tree_host.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_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index 7581ff2cac9f128d6f45f4188f076f741ceea9a5..1fd77cb7280bb7fb2eff9127faafd15e9455c453 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -217,6 +217,11 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
scoped_refptr<Layer> page_scale_layer,
scoped_refptr<Layer> inner_viewport_scroll_layer,
aelias_OOO_until_Jul13 2016/06/29 22:44:08 I'm having trouble understanding the intended brea
bokan 2016/07/07 21:20:45 The root scroller is really just designating which
aelias_OOO_until_Jul13 2016/07/07 22:03:15 So, we have another layer right above it called th
bokan 2016/07/07 22:49:53 No, it's basically an indirection. If the page doe
scoped_refptr<Layer> outer_viewport_scroll_layer);
+
+ // Sets the layer whose scrolling will affect top controls and produce
+ // overscroll effects.
+ void SetRootScrollerLayer(scoped_refptr<Layer> root_scroller_layer);
+
Layer* inner_viewport_scroll_layer() const {
return inner_viewport_scroll_layer_.get();
}
@@ -584,6 +589,8 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
scoped_refptr<Layer> inner_viewport_scroll_layer_;
scoped_refptr<Layer> outer_viewport_scroll_layer_;
+ scoped_refptr<Layer> root_scroller_layer_;
+
LayerSelection selection_;
SharedBitmapManager* shared_bitmap_manager_;
« no previous file with comments | « cc/cc.gyp ('k') | cc/trees/layer_tree_host.cc » ('j') | cc/trees/root_scroller_controller.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698