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

Issue 11416283: Attempt to linearize the scroll deltas created in RenderWidgetHostViewBase (Closed)

Created:
8 years ago by Ian Vollick
Modified:
8 years ago
Reviewers:
nduca, jam, hartmanng, piman
CC:
chromium-reviews, yusukes+watch_chromium.org, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

Attempt to linearize the scroll deltas created in RenderWidgetHostViewBase We're currently shifting 10 pixels every time the smooth scroll gesture gets serviced. If we get serviced at uneven intervals (which seems to happen), then we get uneven scroll speeds. This patch attempts to force the scroll position to be a linear function of time, though there may be jank if we generate the events an uneven intervals. BUG=162779 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171506

Patch Set 1 #

Patch Set 2 : Broke BasicMouseWheelSmoothScrollGesture out into its own file. #

Total comments: 2

Patch Set 3 : . #

Total comments: 1

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : rebase #

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -51 lines) Patch
A content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.h View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.cc View 1 2 3 4 5 6 1 chunk +67 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 2 3 4 2 chunks +1 line, -51 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Ian Vollick
Glenn and I were looking at the smooth scroll gesture event generation this morning, and ...
8 years ago (2012-11-30 15:39:45 UTC) #1
hartmanng
On 2012/11/30 15:39:45, vollick wrote: > Glenn and I were looking at the smooth scroll ...
8 years ago (2012-11-30 16:26:13 UTC) #2
nduca
Gaah we're shifting 10px every time its serviced? Its not interpolated by time?! i had ...
8 years ago (2012-11-30 18:44:42 UTC) #3
hartmanng
On 2012/11/30 18:44:42, nduca wrote: > Gaah we're shifting 10px every time its serviced? Its ...
8 years ago (2012-11-30 18:52:59 UTC) #4
nduca
lgtm if you think it does better
8 years ago (2012-11-30 23:33:06 UTC) #5
Ian Vollick
+piman for OWNERS On 2012/11/30 23:33:06, nduca wrote: > lgtm if you think it does ...
8 years ago (2012-11-30 23:53:55 UTC) #6
piman
+jam for public/ LGTM for my parts. I feel like I keep reviewing the same ...
8 years ago (2012-12-01 00:15:47 UTC) #7
nduca
@vollick, maybe you guys can pull this gesture class out to a new file. Then ...
8 years ago (2012-12-01 01:45:30 UTC) #8
Ian Vollick
On 2012/12/01 01:45:30, nduca wrote: > @vollick, maybe you guys can pull this gesture class ...
8 years ago (2012-12-01 06:08:12 UTC) #9
piman
lgtm https://codereview.chromium.org/11416283/diff/7002/content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.h File content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.h (right): https://codereview.chromium.org/11416283/diff/7002/content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.h#newcode33 content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.h:33: nit: that's a lot of vertical whitespace!
8 years ago (2012-12-01 19:04:50 UTC) #10
Ian Vollick
https://codereview.chromium.org/11416283/diff/7002/content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.h File content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.h (right): https://codereview.chromium.org/11416283/diff/7002/content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.h#newcode33 content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.h:33: On 2012/12/01 19:04:50, piman wrote: > nit: that's a ...
8 years ago (2012-12-01 21:28:02 UTC) #11
jam
https://codereview.chromium.org/11416283/diff/11001/content/public/browser/render_widget_host.h File content/public/browser/render_widget_host.h (right): https://codereview.chromium.org/11416283/diff/11001/content/public/browser/render_widget_host.h#newcode269 content/public/browser/render_widget_host.h:269: virtual int SyntheticScrollMessageInterval() const = 0; since this is ...
8 years ago (2012-12-02 23:47:39 UTC) #12
Ian Vollick
On 2012/12/02 23:47:39, John Abd-El-Malek wrote: > https://codereview.chromium.org/11416283/diff/11001/content/public/browser/render_widget_host.h > File content/public/browser/render_widget_host.h (right): > > https://codereview.chromium.org/11416283/diff/11001/content/public/browser/render_widget_host.h#newcode269 ...
8 years ago (2012-12-03 03:21:25 UTC) #13
jam
On 2012/12/03 03:21:25, vollick wrote: > On 2012/12/02 23:47:39, John Abd-El-Malek wrote: > > > ...
8 years ago (2012-12-03 03:35:49 UTC) #14
Ian Vollick
On 2012/12/03 03:35:49, John Abd-El-Malek wrote: > On 2012/12/03 03:21:25, vollick wrote: > > On ...
8 years ago (2012-12-05 16:52:50 UTC) #15
jam
lgtm
8 years ago (2012-12-05 19:50:21 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/11416283/14001
8 years ago (2012-12-05 19:57:02 UTC) #17
commit-bot: I haz the power
Failed to apply patch for content/content_browser.gypi: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years ago (2012-12-05 19:57:07 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/11416283/24001
8 years ago (2012-12-05 22:39:10 UTC) #19
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-05 23:01:27 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/11416283/14002
8 years ago (2012-12-06 00:21:02 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/11416283/14002
8 years ago (2012-12-06 15:34:20 UTC) #22
commit-bot: I haz the power
8 years ago (2012-12-06 16:03:14 UTC) #23
Message was sent while issue was closed.
Change committed as 171506

Powered by Google App Engine
This is Rietveld 408576698