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

Issue 10855200: Defer GestureTapDown events briefly. (Closed)

Created:
8 years, 4 months ago by rjkroege
Modified:
8 years, 4 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Defer GestureTapDown events briefly. GestureTapDown events are always handled by the WK thread. They are frequently followed by a GestureScrollStart which can be handled on the compositor thread. In this case, the GTD event is unnecessary and its only side effect is to make the compositor thread block on the WK thread. This makes touchscreen scrolling sluggish if the WK thread is busy. This change defers sending the GTD briefly so that it can be suppressed if the GTD event is part of a scroll gesture. This increases the likelyhood that a scroll gesture can be successfully handled on the compositor thread. BUG=137555 TESTS= by hand, by unit test. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152230

Patch Set 1 #

Total comments: 5

Patch Set 2 : fixed proof-reading nits #

Total comments: 16

Patch Set 3 : review comments addressed #

Patch Set 4 : build on mac #

Patch Set 5 : fixed windows runtime error #

Patch Set 6 : proof-reading corrections #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -60 lines) Patch
M content/browser/renderer_host/gesture_event_filter.h View 1 2 2 chunks +27 lines, -7 lines 0 comments Download
M content/browser/renderer_host/gesture_event_filter.cc View 1 2 3 4 4 chunks +86 lines, -43 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 5 4 chunks +81 lines, -10 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
rjkroege
Please take a look. Feel free to ignore the nits that I'm already fixing. https://chromiumcodereview.appspot.com/10855200/diff/1/content/browser/renderer_host/gesture_event_filter.cc ...
8 years, 4 months ago (2012-08-16 15:07:15 UTC) #1
sadrul
LGTM with some comments. http://codereview.chromium.org/10855200/diff/4001/content/browser/renderer_host/gesture_event_filter.cc File content/browser/renderer_host/gesture_event_filter.cc (right): http://codereview.chromium.org/10855200/diff/4001/content/browser/renderer_host/gesture_event_filter.cc#newcode59 content/browser/renderer_host/gesture_event_filter.cc:59: case WebInputEvent::GestureFlingCancel: indent! http://codereview.chromium.org/10855200/diff/4001/content/browser/renderer_host/gesture_event_filter.cc#newcode71 content/browser/renderer_host/gesture_event_filter.cc:71: ...
8 years, 4 months ago (2012-08-16 16:08:15 UTC) #2
rjkroege
sky@ Owners please? http://codereview.chromium.org/10855200/diff/4001/content/browser/renderer_host/gesture_event_filter.cc File content/browser/renderer_host/gesture_event_filter.cc (right): http://codereview.chromium.org/10855200/diff/4001/content/browser/renderer_host/gesture_event_filter.cc#newcode59 content/browser/renderer_host/gesture_event_filter.cc:59: case WebInputEvent::GestureFlingCancel: On 2012/08/16 16:08:15, sadrul ...
8 years, 4 months ago (2012-08-16 17:12:26 UTC) #3
sky
LGTM
8 years, 4 months ago (2012-08-16 19:25:31 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rjkroege@chromium.org/10855200/6001
8 years, 4 months ago (2012-08-16 19:43:31 UTC) #5
commit-bot: I haz the power
Try job failure for 10855200-6001 (retry) on mac for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-16 20:11:43 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rjkroege@chromium.org/10855200/7003
8 years, 4 months ago (2012-08-16 21:15:38 UTC) #7
commit-bot: I haz the power
Try job failure for 10855200-7003 (retry) on linux_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 4 months ago (2012-08-16 22:54:34 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rjkroege@chromium.org/10855200/1009
8 years, 4 months ago (2012-08-18 00:51:23 UTC) #9
commit-bot: I haz the power
8 years, 4 months ago (2012-08-18 03:07:19 UTC) #10
Change committed as 152230

Powered by Google App Engine
This is Rietveld 408576698