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

Issue 217163006: Defer synthetic gesture completions until events have been flushed (Closed)

Created:
6 years, 9 months ago by jdduke (slow)
Modified:
6 years, 8 months ago
Reviewers:
Dominik Grewe, sadrul
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Defer synthetic gesture completions until events have been flushed Previously, synthetic gesture completion callbacks were triggered as soon as the last generated event was *sent*. A truer indicator of completion, however, is when the last generated event was *ack'ed*. For now, this is accomplished by blocking the completion notification until all events have been flushed through the pipeline. In the future, a better solution will be inserting event fences with an appropriate callback to indicate completion. Note that this approach fails to properly wait until all timeout events have been flushed (e.g., GestureTap events on desktop sites on Android). BUG=357505 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261429

Patch Set 1 #

Patch Set 2 : Use |DidFlush| #

Total comments: 1

Patch Set 3 : Test #

Patch Set 4 : Restore browser test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -81 lines) Patch
M content/browser/renderer_host/input/gesture_event_queue.h View 1 2 1 chunk +8 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/gesture_event_queue.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/input_router_impl.h View 1 2 4 chunks +17 lines, -10 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.cc View 1 2 14 chunks +49 lines, -21 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl_unittest.cc View 1 2 3 6 chunks +79 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/mock_input_router_client.h View 1 2 3 chunks +2 lines, -4 lines 0 comments Download
M content/browser/renderer_host/input/mock_input_router_client.cc View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_controller.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_controller.cc View 1 1 chunk +21 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc View 1 2 2 chunks +37 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/touch_action_browsertest.cc View 1 2 3 1 chunk +1 line, -8 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 chunks +15 lines, -23 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
jdduke (slow)
dominikg@: PTAL. I don't feel great about this solution. I had another version that hooked ...
6 years, 9 months ago (2014-03-28 23:10:06 UTC) #1
Dominik Grewe
On 2014/03/28 23:10:06, jdduke wrote: > dominikg@: PTAL. I don't feel great about this solution. ...
6 years, 8 months ago (2014-04-01 10:09:27 UTC) #2
jdduke (slow)
OK, this is definitely an improvement. I'll add a test or two to InputRouterImpl if ...
6 years, 8 months ago (2014-04-01 23:05:47 UTC) #3
Dominik Grewe
I'm happy with this. Maybe it can be improved once we have unique event IDs ...
6 years, 8 months ago (2014-04-02 09:10:31 UTC) #4
jdduke (slow)
sadrul@: Owner review for render_widget_host_{impl,unittest}.cc? Thanks.
6 years, 8 months ago (2014-04-02 20:15:06 UTC) #5
sadrul
lgtm
6 years, 8 months ago (2014-04-02 20:39:22 UTC) #6
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-03 01:01:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/217163006/60001
6 years, 8 months ago (2014-04-03 01:11:22 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 08:33:00 UTC) #9
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 8 months ago (2014-04-03 08:33:00 UTC) #10
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-03 13:24:51 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/217163006/60001
6 years, 8 months ago (2014-04-03 13:24:54 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 14:41:45 UTC) #13
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 8 months ago (2014-04-03 14:41:46 UTC) #14
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-03 15:04:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/217163006/60001
6 years, 8 months ago (2014-04-03 15:06:07 UTC) #16
commit-bot: I haz the power
6 years, 8 months ago (2014-04-03 16:05:04 UTC) #17
Message was sent while issue was closed.
Change committed as 261429

Powered by Google App Engine
This is Rietveld 408576698