Chromium Code Reviews| 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_; |