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

Issue 2715623002: Add a passthrough touch event queue. (Closed)

Created:
3 years, 10 months ago by dtapuska
Modified:
3 years, 9 months ago
Reviewers:
clamy, tdresser
CC:
chromium-reviews, darin-cc_chromium.org, dtapuska+chromiumwatch_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a passthrough touch event queue. The passthrough touch event queue does no queuing of sending events. It does handle the fact that touch events can be ack'd out of order and it makes it appear to the higher layers in the browsers that the acks are all in order. ie; You can get an ack for a touchend before a touchstart from the renderer. If the compositor acks the touchend and the touchstart is sent to the main thread. This class makes this appear logical to the browser which relies upon things like the touchstart being ack before the touchend. This change allows coalescing to only happen in the main thread event queue. It also removes the async sending of touchmoves. All touchmoves are sent right away. BUG=642368 TBR=clamy@chromium.org Review-Url: https://codereview.chromium.org/2715623002 Cr-Commit-Position: refs/heads/master@{#453133} Committed: https://chromium.googlesource.com/chromium/src/+/53f9f4ee5790ce47bf43eee521fdd3536cd1763a

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 23

Patch Set 3 : Fix issues #

Patch Set 4 : Rebase on throttling change #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+800 lines, -3902 lines) Patch
M content/browser/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.cc View 2 chunks +8 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/legacy_touch_event_queue.h View 1 chunk +1 line, -1 line 0 comments Download
A + content/browser/renderer_host/input/legacy_touch_event_queue_unittest.cc View 59 chunks +84 lines, -90 lines 0 comments Download
A content/browser/renderer_host/input/passthrough_touch_event_queue.h View 1 2 1 chunk +137 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/passthrough_touch_event_queue.cc View 1 2 1 chunk +382 lines, -0 lines 3 comments Download
A + content/browser/renderer_host/input/passthrough_touch_event_queue_unittest.cc View 1 2 51 chunks +184 lines, -1130 lines 0 comments Download
D content/browser/renderer_host/input/touch_event_queue_unittest.cc View 1 chunk +0 lines, -2679 lines 0 comments Download
M content/test/BUILD.gn View 3 chunks +2 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 38 (21 generated)
dtapuska
3 years, 10 months ago (2017-02-22 22:01:43 UTC) #3
tdresser
https://codereview.chromium.org/2715623002/diff/20001/content/browser/renderer_host/input/passthrough_touch_event_queue.cc File content/browser/renderer_host/input/passthrough_touch_event_queue.cc (right): https://codereview.chromium.org/2715623002/diff/20001/content/browser/renderer_host/input/passthrough_touch_event_queue.cc#newcode17 content/browser/renderer_host/input/passthrough_touch_event_queue.cc:17: #include "ui/gfx/geometry/point_f.h" How thoroughly has this changed from legacy_touch_event_queue.cc? ...
3 years, 10 months ago (2017-02-23 15:10:46 UTC) #7
dtapuska
https://codereview.chromium.org/2715623002/diff/20001/content/browser/renderer_host/input/passthrough_touch_event_queue.cc File content/browser/renderer_host/input/passthrough_touch_event_queue.cc (right): https://codereview.chromium.org/2715623002/diff/20001/content/browser/renderer_host/input/passthrough_touch_event_queue.cc#newcode17 content/browser/renderer_host/input/passthrough_touch_event_queue.cc:17: #include "ui/gfx/geometry/point_f.h" On 2017/02/23 15:10:45, tdresser wrote: > How ...
3 years, 10 months ago (2017-02-23 16:52:12 UTC) #8
dtapuska
On 2017/02/23 16:52:12, dtapuska wrote: > https://codereview.chromium.org/2715623002/diff/20001/content/browser/renderer_host/input/passthrough_touch_event_queue.cc > File content/browser/renderer_host/input/passthrough_touch_event_queue.cc > (right): > > https://codereview.chromium.org/2715623002/diff/20001/content/browser/renderer_host/input/passthrough_touch_event_queue.cc#newcode17 ...
3 years, 10 months ago (2017-02-23 18:03:09 UTC) #15
Rick Byers
On 2017/02/23 18:03:09, dtapuska wrote: > On 2017/02/23 16:52:12, dtapuska wrote: > > > https://codereview.chromium.org/2715623002/diff/20001/content/browser/renderer_host/input/passthrough_touch_event_queue.cc ...
3 years, 10 months ago (2017-02-23 20:22:18 UTC) #16
dtapuska
aelias@ do you have any opinion related to my comments?
3 years, 10 months ago (2017-02-23 20:24:27 UTC) #18
aelias_OOO_until_Jul13
The problem throttling-during-scroll fixes is not really hypothetical, it's more that it was observed in ...
3 years, 10 months ago (2017-02-23 22:17:29 UTC) #19
dtapuska
On 2017/02/23 22:17:29, aelias wrote: > The problem throttling-during-scroll fixes is not really hypothetical, it's ...
3 years, 10 months ago (2017-02-23 22:22:38 UTC) #20
aelias_OOO_until_Jul13
On 2017/02/23 at 22:22:38, dtapuska wrote: > Yes that was what I was telling tdresser ...
3 years, 10 months ago (2017-02-23 22:32:36 UTC) #21
dtapuska
On 2017/02/23 22:32:36, aelias wrote: > On 2017/02/23 at 22:22:38, dtapuska wrote: > > Yes ...
3 years, 10 months ago (2017-02-24 19:17:21 UTC) #24
tdresser
LGTM https://codereview.chromium.org/2715623002/diff/60001/content/browser/renderer_host/input/passthrough_touch_event_queue.cc File content/browser/renderer_host/input/passthrough_touch_event_queue.cc (right): https://codereview.chromium.org/2715623002/diff/60001/content/browser/renderer_host/input/passthrough_touch_event_queue.cc#newcode9 content/browser/renderer_host/input/passthrough_touch_event_queue.cc:9: #include "base/auto_reset.h" Are we using all these includes? ...
3 years, 10 months ago (2017-02-24 20:04:28 UTC) #27
Rick Byers
On 2017/02/23 22:32:36, aelias wrote: > On 2017/02/23 at 22:22:38, dtapuska wrote: > > Yes ...
3 years, 10 months ago (2017-02-24 20:52:13 UTC) #28
dtapuska
On 2017/02/24 20:52:13, Rick Byers wrote: > On 2017/02/23 22:32:36, aelias wrote: > > On ...
3 years, 10 months ago (2017-02-24 20:58:36 UTC) #29
Rick Byers
On 2017/02/24 20:58:36, dtapuska wrote: > On 2017/02/24 20:52:13, Rick Byers wrote: > > On ...
3 years, 10 months ago (2017-02-24 21:18:22 UTC) #30
dtapuska
clamy@chromium.org: Please review changes in BUIDL.gn
3 years, 9 months ago (2017-02-26 19:41:49 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2715623002/60001
3 years, 9 months ago (2017-02-27 00:20:40 UTC) #35
commit-bot: I haz the power
3 years, 9 months ago (2017-02-27 01:15:51 UTC) #38
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/53f9f4ee5790ce47bf43eee521fd...

Powered by Google App Engine
This is Rietveld 408576698