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

Issue 2170913002: Generalize the main thread event queue into a common event queue. (Closed)

Created:
4 years, 5 months ago by dtapuska
Modified:
4 years, 4 months ago
Reviewers:
tdresser, Rick Byers
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, dtapuska+chromiumwatch_chromium.org, dglazkov+blink, darin-cc_chromium.org, blink-reviews, blink-reviews-api_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Generalize the main thread event queue into a common event queue. Teach the WebInputEventQueue about ScopedWebInputEvents so we can use a single queue instead of one per event class. This reduces code duplication and allows for another patch to then take advantage of this for all events. BUG=624012, 599152 Committed: https://crrev.com/cb9341c9f5539577a82aae52e19bd789148001bc Cr-Commit-Position: refs/heads/master@{#407826}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Make sure isflinging is populated correctly. #

Patch Set 3 : Fix nits #

Total comments: 2

Patch Set 4 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -168 lines) Patch
M content/common/input/event_with_latency_info.h View 1 2 2 chunks +22 lines, -0 lines 0 comments Download
M content/common/input/event_with_latency_info.cc View 1 2 3 2 chunks +96 lines, -0 lines 0 comments Download
M content/common/input/web_input_event_queue.h View 1 2 2 chunks +15 lines, -32 lines 0 comments Download
M content/renderer/input/main_thread_event_queue.h View 1 2 3 2 chunks +21 lines, -38 lines 0 comments Download
M content/renderer/input/main_thread_event_queue.cc View 1 2 3 3 chunks +64 lines, -72 lines 0 comments Download
M content/renderer/input/main_thread_event_queue_unittest.cc View 9 chunks +19 lines, -26 lines 0 comments Download
M third_party/WebKit/public/platform/WebInputEvent.h View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (11 generated)
dtapuska
How is this?
4 years, 5 months ago (2016-07-21 16:31:29 UTC) #3
tdresser
I wouldn't mind taking another pass once these nits have been fixed, but LGTM if ...
4 years, 5 months ago (2016-07-22 19:13:42 UTC) #8
dtapuska
https://codereview.chromium.org/2170913002/diff/1/content/common/input/event_with_latency_info.h File content/common/input/event_with_latency_info.h (right): https://codereview.chromium.org/2170913002/diff/1/content/common/input/event_with_latency_info.h#newcode41 content/common/input/event_with_latency_info.h:41: const ui::LatencyInfo& l); On 2016/07/22 19:13:41, tdresser wrote: > ...
4 years, 5 months ago (2016-07-22 20:14:08 UTC) #9
tdresser
LGTM, thanks. https://codereview.chromium.org/2170913002/diff/1/content/renderer/input/main_thread_event_queue.h File content/renderer/input/main_thread_event_queue.h (right): https://codereview.chromium.org/2170913002/diff/1/content/renderer/input/main_thread_event_queue.h#newcode36 content/renderer/input/main_thread_event_queue.h:36: std::deque<uint32_t> eventsToAck_; On 2016/07/22 20:14:08, dtapuska wrote: ...
4 years, 5 months ago (2016-07-25 14:01:41 UTC) #10
dtapuska
Rick can you check out WebInputEvent.h? https://codereview.chromium.org/2170913002/diff/40001/content/renderer/input/main_thread_event_queue.cc File content/renderer/input/main_thread_event_queue.cc (right): https://codereview.chromium.org/2170913002/diff/40001/content/renderer/input/main_thread_event_queue.cc#newcode64 content/renderer/input/main_thread_event_queue.cc:64: bool is_touch = ...
4 years, 5 months ago (2016-07-25 20:05:24 UTC) #12
Rick Byers
public/ LGTM
4 years, 4 months ago (2016-07-26 04:37:12 UTC) #13
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/2170913002/60001
4 years, 4 months ago (2016-07-26 13:25:37 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-07-26 16:28:09 UTC) #18
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 16:30:26 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/cb9341c9f5539577a82aae52e19bd789148001bc
Cr-Commit-Position: refs/heads/master@{#407826}

Powered by Google App Engine
This is Rietveld 408576698