DescriptionClean up viewport scrolling methods in CC
Currently, CC uses InnerViewportScrollLayer to designate scrolling of the
viewport. This is problematic as there's also non-scrolling uses of
InnerViewportScrollLayer and it's not clear which is which. This caused the
regression in the CL and is generally problematic because the semantics aren't
clear. I've created Viewport::MainScrollLayer to designate which viewport layer
is used for scrolling and replaced uses in the code that are semantically using
the "viewport scrolling representative".
I've also removed some viewport scrolling methods in LayerTreeHostImpl and
replaced them with calls into cc::Viewport.
Note, this patch doesn't actually change any behavior. The original CL that
caused the regression was reverted. The problem was that it missed some viewport
scrolling uses of InnerViewportScrollLayer. This patch makes it easy to change
the layer which represents the viewport. Once it lands I can reland the reverted
CL using the MainScrollLayer method.
BUG=651515
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel
Committed: https://crrev.com/e248130a5739d4bfdba02b4401608f596b477f82
Cr-Commit-Position: refs/heads/master@{#422584}
Patch Set 1 #Patch Set 2 : Fix tests #
Messages
Total messages: 27 (17 generated)
|