summaryrefslogtreecommitdiffstats
path: root/cc/trees/layer_tree_host_impl.h
diff options
context:
space:
mode:
authordanakj <danakj@chromium.org>2015-09-17 15:25:48 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-17 22:27:43 +0000
commita342d6f3b63c7fb91ea548e00784c6e4ad538b6b (patch)
tree9e21df9aac8819f63adb2d815525ed3d7168cbd5 /cc/trees/layer_tree_host_impl.h
parentcbc31262a5b99ea1c426fdee47313223aee05913 (diff)
downloadchromium_src-a342d6f3b63c7fb91ea548e00784c6e4ad538b6b.zip
chromium_src-a342d6f3b63c7fb91ea548e00784c6e4ad538b6b.tar.gz
chromium_src-a342d6f3b63c7fb91ea548e00784c6e4ad538b6b.tar.bz2
webview: Move calls to update the root scroll delegate to LTHI.
This moves the calls to update the delegate out to the LayerTreeHostImpl instead of having it on LayerTreeImpl. This has a few benefits. 1) Things that are only for the active tree don't make the most sense on LayerTreeImpl in general, since it's an abstraction around things that occur on both the pending and active tree. 2) This avoids the needs to set the root scroll delegate to null and back during activation and pinch updates. Instead of updating the root delegate reactionarily when things change, we just call it at the end of steps that might change the root scroll delegate's data (and early out in BrowserViewRenderer if they are unchanged instead). 3) Avoids plumbing around concepts of the root scroll delegate through LayerImpl and LayerTreeImpl. R=boliu BUG=531746 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1345353002 Cr-Commit-Position: refs/heads/master@{#349520}
Diffstat (limited to 'cc/trees/layer_tree_host_impl.h')
-rw-r--r--cc/trees/layer_tree_host_impl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index 1fbd92d..876bf66 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -674,6 +674,7 @@ class CC_EXPORT LayerTreeHostImpl
void NotifySwapPromiseMonitorsOfSetNeedsRedraw();
void NotifySwapPromiseMonitorsOfForwardingToMainThread();
+ void NotifyRootLayerScrollOffsetDelegate();
void ScrollAnimationCreate(LayerImpl* layer_impl,
const gfx::ScrollOffset& target_offset,