Index: cc/trees/layer_tree_impl.h |
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h |
index 8ab42634cc835c209f37da7d24623a93248e5b30..8825de3c9bfb8e7ccb46eb9c946548f842d7c810 100644 |
--- a/cc/trees/layer_tree_impl.h |
+++ b/cc/trees/layer_tree_impl.h |
@@ -33,7 +33,8 @@ class ContextProvider; |
class DebugRectHistory; |
class FrameRateCounter; |
class HeadsUpDisplayLayerImpl; |
-class LayerScrollOffsetDelegateProxy; |
+class LayerExternalScrollOffsetListener; |
+class LayerScrollOffsetDelegate; |
class LayerTreeDebugState; |
class LayerTreeImpl; |
class LayerTreeSettings; |
@@ -263,9 +264,10 @@ class CC_EXPORT LayerTreeImpl { |
void SetRootLayerScrollOffsetDelegate( |
LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate); |
- void OnRootLayerDelegatedScrollOffsetChanged(); |
- void UpdateScrollOffsetDelegate(); |
- gfx::ScrollOffset GetDelegatedScrollOffset(LayerImpl* layer); |
+ void UpdateRootScrollOffsetDelegate(); |
+ // Distribute the rool scroll between outer and inner viewport scroll layer. |
+ // The outer viewport scroll layer scrolls first. |
+ void DistributeRootScrollOffset(); |
// Call this function when you expect there to be a swap buffer. |
// See swap_promise.h for how to use SwapPromise. |
@@ -334,6 +336,9 @@ class CC_EXPORT LayerTreeImpl { |
void GatherFrameTimingRequestIds(std::vector<int64_t>* request_ids); |
+ bool IsExternalFlingActive() const; |
+ void DidUpdateScrollOffset(int layer_id); |
+ |
protected: |
explicit LayerTreeImpl( |
LayerTreeHostImpl* layer_tree_host_impl, |
@@ -355,10 +360,7 @@ class CC_EXPORT LayerTreeImpl { |
HeadsUpDisplayLayerImpl* hud_layer_; |
LayerImpl* currently_scrolling_layer_; |
LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; |
- scoped_ptr<LayerScrollOffsetDelegateProxy> |
- inner_viewport_scroll_delegate_proxy_; |
- scoped_ptr<LayerScrollOffsetDelegateProxy> |
- outer_viewport_scroll_delegate_proxy_; |
+ bool is_distributing_root_scroll_; |
SkColor background_color_; |
bool has_transparent_background_; |