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

Issue 1383633002: Don't throttle touch events on resent GestureScrollUpdates. (Closed)

Created:
5 years, 2 months ago by wjmaclean
Modified:
5 years, 2 months ago
Reviewers:
jdduke (slow), tdresser
CC:
chromium-reviews, jam, jdduke+watch_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't throttle touch events on resent GestureScrollUpdates. Touch events are currently throttled during GestureScrolls to avoid overloading a page's touch handler. However, in the event we are resending a GestureScroll to a GuestView's host based on a touch handler in the Guest, this leads to extremely janky scroll performance. This CL detects when a GestureScroll is being resent, and turns off throttling in this case. BUG=491940 Committed: https://crrev.com/1ab6149f525fc879dbc068d047501ca715a589d6 Cr-Commit-Position: refs/heads/master@{#351804}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Ignore re-sent GestureScrollUpdates. #

Total comments: 2

Patch Set 3 : Fix brace indent. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -3 lines) Patch
M content/browser/renderer_host/input/touch_event_queue.cc View 1 2 2 chunks +8 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 21 (7 generated)
wjmaclean
tdresser@ - Does this look sane?
5 years, 2 months ago (2015-09-30 20:01:29 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1383633002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1383633002/1
5 years, 2 months ago (2015-09-30 20:03:02 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/114572)
5 years, 2 months ago (2015-09-30 20:13:30 UTC) #6
jdduke (slow)
https://chromiumcodereview.appspot.com/1383633002/diff/1/content/browser/renderer_host/input/touch_event_queue.cc File content/browser/renderer_host/input/touch_event_queue.cc (right): https://chromiumcodereview.appspot.com/1383633002/diff/1/content/browser/renderer_host/input/touch_event_queue.cc#newcode640 content/browser/renderer_host/input/touch_event_queue.cc:640: send_touch_events_async_ = (gesture_event.event.resendingPluginId == -1); Can't the resending and ...
5 years, 2 months ago (2015-09-30 20:26:46 UTC) #8
wjmaclean
On 2015/09/30 20:26:46, jdduke wrote: > https://chromiumcodereview.appspot.com/1383633002/diff/1/content/browser/renderer_host/input/touch_event_queue.cc > File content/browser/renderer_host/input/touch_event_queue.cc (right): > > https://chromiumcodereview.appspot.com/1383633002/diff/1/content/browser/renderer_host/input/touch_event_queue.cc#newcode640 > ...
5 years, 2 months ago (2015-09-30 20:53:06 UTC) #9
jdduke (slow)
On 2015/09/30 20:53:06, wjmaclean wrote: > Events are only resent from a guest to an ...
5 years, 2 months ago (2015-09-30 22:04:55 UTC) #10
tdresser
On 2015/09/30 22:04:55, jdduke wrote: > On 2015/09/30 20:53:06, wjmaclean wrote: > > Events are ...
5 years, 2 months ago (2015-10-01 12:20:04 UTC) #11
wjmaclean
Just to clarify, is this (Patchset #2) what you meant by "ignore"?
5 years, 2 months ago (2015-10-01 13:44:05 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1383633002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1383633002/20001
5 years, 2 months ago (2015-10-01 13:44:34 UTC) #14
tdresser
Yup! LGTM with nit. https://chromiumcodereview.appspot.com/1383633002/diff/20001/content/browser/renderer_host/input/touch_event_queue.cc File content/browser/renderer_host/input/touch_event_queue.cc (right): https://chromiumcodereview.appspot.com/1383633002/diff/20001/content/browser/renderer_host/input/touch_event_queue.cc#newcode658 content/browser/renderer_host/input/touch_event_queue.cc:658: } Indentation looks a little ...
5 years, 2 months ago (2015-10-01 13:55:05 UTC) #15
wjmaclean
Thanks! https://chromiumcodereview.appspot.com/1383633002/diff/20001/content/browser/renderer_host/input/touch_event_queue.cc File content/browser/renderer_host/input/touch_event_queue.cc (right): https://chromiumcodereview.appspot.com/1383633002/diff/20001/content/browser/renderer_host/input/touch_event_queue.cc#newcode658 content/browser/renderer_host/input/touch_event_queue.cc:658: } On 2015/10/01 13:55:05, tdresser wrote: > Indentation ...
5 years, 2 months ago (2015-10-01 14:01:03 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1383633002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1383633002/40001
5 years, 2 months ago (2015-10-01 14:02:01 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-10-01 15:10:52 UTC) #20
commit-bot: I haz the power
5 years, 2 months ago (2015-10-01 15:11:22 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1ab6149f525fc879dbc068d047501ca715a589d6
Cr-Commit-Position: refs/heads/master@{#351804}

Powered by Google App Engine
This is Rietveld 408576698