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

Issue 536059: Mac: Coalesce scroll events. (Closed)

Created:
10 years, 11 months ago by Nico
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Mac: Coalesce scroll events. Based on work by trungl, codereview issue 502056. He's busy, but I think this is an important patch, so I'll try to get it through review for him. BUG=28954 TEST=On a MacBook (Pro) -- the slower the better -- go to <http://www.starcraft2.com/faq.xml>; and make sure that scrolling using a two-fingered swipe on the trackpad is much faster than before. Also make sure that using the mouse wheel to scroll remains okay with various devices on all platforms. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=36422

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 8

Patch Set 3 : queue #

Total comments: 8

Patch Set 4 : test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -2 lines) Patch
M chrome/browser/renderer_host/render_widget_host.h View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host.cc View 1 2 3 5 chunks +44 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_widget_host_unittest.cc View 4 chunks +45 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Nico
This makes scrolling much faster for me on certain pages, so I'd love to get ...
10 years, 11 months ago (2010-01-14 06:23:10 UTC) #1
Mark Mentovai
Needs work. http://codereview.chromium.org/536059/diff/1001/1002 File chrome/browser/renderer_host/render_widget_host.cc (right): http://codereview.chromium.org/536059/diff/1001/1002#newcode386 chrome/browser/renderer_host/render_widget_host.cc:386: coalesced_mouse_wheel_->deltaX += wheel_event.deltaX; I seem to recall ...
10 years, 11 months ago (2010-01-14 17:27:28 UTC) #2
Mark Mentovai
I suggest maintaining a queue of coalesced wheel events. When you're looking to push (or ...
10 years, 11 months ago (2010-01-14 17:29:18 UTC) #3
Nico
I will look into the queue idea.o do some reasing http://codereview.chromium.org/536059/diff/1001/1002 File chrome/browser/renderer_host/render_widget_host.cc (right): http://codereview.chromium.org/536059/diff/1001/1002#newcode386 ...
10 years, 11 months ago (2010-01-14 18:26:28 UTC) #4
darin (slow to review)
Seems completely reasonable... http://codereview.chromium.org/536059/diff/2004/2005 File chrome/browser/renderer_host/render_widget_host.cc (right): http://codereview.chromium.org/536059/diff/2004/2005#newcode394 chrome/browser/renderer_host/render_widget_host.cc:394: coalesced_mouse_wheel_events_.back().timeStampSeconds = std::max( it seems like ...
10 years, 11 months ago (2010-01-15 18:23:50 UTC) #5
Mark Mentovai
darin wrote: > it seems like in the typical case the modifier won't change. how ...
10 years, 11 months ago (2010-01-15 18:56:19 UTC) #6
Nico
Added a test. http://codereview.chromium.org/536059/diff/1001/1002 File chrome/browser/renderer_host/render_widget_host.cc (right): http://codereview.chromium.org/536059/diff/1001/1002#newcode386 chrome/browser/renderer_host/render_widget_host.cc:386: coalesced_mouse_wheel_->deltaX += wheel_event.deltaX; On 2010/01/14 18:26:28, ...
10 years, 11 months ago (2010-01-15 19:01:12 UTC) #7
darin (slow to review)
On Fri, Jan 15, 2010 at 11:01 AM, <thakis@chromium.org> wrote: > Added a test. > ...
10 years, 11 months ago (2010-01-15 19:23:44 UTC) #8
Mark Mentovai
10 years, 11 months ago (2010-01-15 21:46:10 UTC) #9
lgtm.

Powered by Google App Engine
This is Rietveld 408576698