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

Issue 986443003: Move viewport scrolling logic into separate class (Closed)

Created:
5 years, 9 months ago by bokan
Modified:
5 years, 9 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, jdduke (slow)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move viewport scrolling logic into separate class The viewport is made up of two scrolling layers now, the inner and outer viewport scroll layers. These layers do not follow the usual scroll bubbling logic since they're supposed to appear as one viewport to the user (i.e. we should rail). Forcing it to be scrolled via LayerTreeHostImpl::ScrollBy caused that method to become increasingly complex. This patch creates a Viewport class that allows LTHI::ScrollBy to call Viewport::ScrollBy and scroll the viewport as a unit. I've tried to simplify the logic in both these methods as much as I could without changing behavior. BUG=443724 Committed: https://crrev.com/aa27483190bdfbe34189e2d39c355dfda131fa8a Cr-Commit-Position: refs/heads/master@{#322268}

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 20

Patch Set 6 : aelias feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -112 lines) Patch
M cc/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
A cc/layers/viewport.h View 1 2 3 4 5 1 chunk +59 lines, -0 lines 0 comments Download
A cc/layers/viewport.cc View 1 2 3 4 5 1 chunk +133 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 6 chunks +15 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 chunks +54 lines, -104 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
bokan
Hi Alexandre, As prep work for crbug.com/443724 I'm looking to clean up some of the ...
5 years, 9 months ago (2015-03-05 22:58:31 UTC) #2
aelias_OOO_until_Jul13
Looks fine in principle, seems to clarify LTHI::ScrollBy a lot. In general I'd like to ...
5 years, 9 months ago (2015-03-06 04:19:37 UTC) #3
bokan
Ready for review, this patch is a relocation of logic, it shouldn't have any production ...
5 years, 9 months ago (2015-03-25 18:23:44 UTC) #4
aelias_OOO_until_Jul13
Looks like a nice cleanup, mostly minor comments below. https://codereview.chromium.org/986443003/diff/80001/cc/layers/viewport.cc File cc/layers/viewport.cc (right): https://codereview.chromium.org/986443003/diff/80001/cc/layers/viewport.cc#newcode1 cc/layers/viewport.cc:1: ...
5 years, 9 months ago (2015-03-25 19:56:07 UTC) #5
bokan
https://codereview.chromium.org/986443003/diff/80001/cc/layers/viewport.cc File cc/layers/viewport.cc (right): https://codereview.chromium.org/986443003/diff/80001/cc/layers/viewport.cc#newcode1 cc/layers/viewport.cc:1: // Copyright 2013 The Chromium Authors. All rights reserved. ...
5 years, 9 months ago (2015-03-25 20:38:35 UTC) #6
aelias_OOO_until_Jul13
lgtm
5 years, 9 months ago (2015-03-25 21:07:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/986443003/100001
5 years, 9 months ago (2015-03-25 21:25:56 UTC) #9
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-26 00:10:48 UTC) #10
commit-bot: I haz the power
5 years, 9 months ago (2015-03-26 00:11:37 UTC) #11
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/aa27483190bdfbe34189e2d39c355dfda131fa8a
Cr-Commit-Position: refs/heads/master@{#322268}

Powered by Google App Engine
This is Rietveld 408576698