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

Issue 2388563002: Clean up viewport scrolling methods in CC (Closed)

Created:
4 years, 2 months ago by bokan
Modified:
4 years, 2 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, dtapuska+chromiumwatch_chromium.org, tdresser+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -68 lines) Patch
M cc/input/input_handler.h View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/layers/viewport.h View 2 chunks +10 lines, -0 lines 0 comments Download
M cc/layers/viewport.cc View 2 chunks +12 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 2 chunks +2 lines, -9 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 15 chunks +43 lines, -54 lines 0 comments Download
M ui/events/blink/input_handler_proxy.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/events/blink/input_handler_proxy_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 27 (17 generated)
bokan
Hi Bo, This is a first step to relanding my patch. I'd like to land ...
4 years, 2 months ago (2016-10-01 00:01:56 UTC) #5
boliu
I don't really know this code. Did you want me to test it, or...?
4 years, 2 months ago (2016-10-01 00:10:38 UTC) #6
bokan
On 2016/10/01 00:10:38, boliu wrote: > I don't really know this code. Did you want ...
4 years, 2 months ago (2016-10-01 00:23:01 UTC) #7
bokan
Tim, ptal. This should make the followup of relanding the original cl easier
4 years, 2 months ago (2016-10-01 00:24:24 UTC) #11
tdresser
LGTM. I hadn't previously thought about the fact that it's the inner viewport that scrolls ...
4 years, 2 months ago (2016-10-03 12:14:43 UTC) #18
bokan
+aelias@ for CC OWNER
4 years, 2 months ago (2016-10-03 13:02:46 UTC) #20
aelias_OOO_until_Jul13
lgtm
4 years, 2 months ago (2016-10-03 19:29:32 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2388563002/20001
4 years, 2 months ago (2016-10-03 21:12:26 UTC) #23
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-03 23:01:27 UTC) #25
commit-bot: I haz the power
4 years, 2 months ago (2016-10-03 23:03:25 UTC) #27
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e248130a5739d4bfdba02b4401608f596b477f82
Cr-Commit-Position: refs/heads/master@{#422584}

Powered by Google App Engine
This is Rietveld 408576698