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

Issue 2813683002: Allow MainThreadEventQueue to call the RenderWidget directly. (Closed)

Created:
3 years, 8 months ago by dtapuska
Modified:
3 years, 8 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, dtapuska+chromiumwatch_chromium.org, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow MainThreadEventQueue to call the RenderWidget directly. Allocate the MainThreadEventQueue from the render widget allowing a binding between then. This allows us to avoid serialization/deserialization of events to IPC messages inside the renderer. It also allows us to avoid jumping through a number of hoops looking the input handler in a table. For example requesting a begin main frame from the main thread doesn't require a hop to the compositor and back to the main thread any more. BUG=703344 Review-Url: https://codereview.chromium.org/2813683002 Cr-Commit-Position: refs/heads/master@{#466340} Committed: https://chromium.googlesource.com/chromium/src/+/9ec1a91b89f0dd7393a1c38fa84a7064d5984c1f

Patch Set 1 #

Total comments: 15

Patch Set 2 : Add back MainThreadEventQueueClient #

Total comments: 9

Patch Set 3 : Fix tdresser's comments #

Total comments: 6

Patch Set 4 : Fix more nits #

Total comments: 4

Patch Set 5 : Fix style nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+408 lines, -483 lines) Patch
M content/common/input/input_event_dispatch_type.h View 1 chunk +1 line, -7 lines 0 comments Download
M content/renderer/idle_user_detector.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/idle_user_detector.cc View 1 2 3 4 3 chunks +11 lines, -11 lines 0 comments Download
M content/renderer/input/input_event_filter.h View 4 chunks +4 lines, -27 lines 0 comments Download
M content/renderer/input/input_event_filter.cc View 4 chunks +5 lines, -77 lines 0 comments Download
M content/renderer/input/input_event_filter_unittest.cc View 1 2 3 4 18 chunks +156 lines, -89 lines 0 comments Download
M content/renderer/input/input_handler_manager.h View 6 chunks +9 lines, -18 lines 0 comments Download
M content/renderer/input/input_handler_manager.cc View 6 chunks +5 lines, -41 lines 0 comments Download
M content/renderer/input/input_handler_manager_client.h View 2 chunks +4 lines, -7 lines 0 comments Download
M content/renderer/input/main_thread_event_queue.h View 1 2 5 chunks +22 lines, -18 lines 0 comments Download
M content/renderer/input/main_thread_event_queue.cc View 1 2 3 4 10 chunks +69 lines, -72 lines 0 comments Download
M content/renderer/input/main_thread_event_queue_task.h View 2 chunks +2 lines, -10 lines 0 comments Download
M content/renderer/input/main_thread_event_queue_unittest.cc View 1 2 3 4 9 chunks +40 lines, -50 lines 0 comments Download
M content/renderer/input/render_widget_input_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/input/render_widget_input_handler.cc View 3 chunks +3 lines, -11 lines 0 comments Download
M content/renderer/input/render_widget_input_handler_delegate.h View 1 chunk +0 lines, -7 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 3 chunks +8 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 3 chunks +18 lines, -9 lines 0 comments Download
M content/renderer/render_widget.h View 1 7 chunks +20 lines, -7 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 6 chunks +28 lines, -21 lines 0 comments Download

Messages

Total messages: 37 (20 generated)
dtapuska
PTAL
3 years, 8 months ago (2017-04-10 15:27:28 UTC) #4
tdresser
A quick first pass - there are a few high'ish level things I want to ...
3 years, 8 months ago (2017-04-10 15:54:17 UTC) #5
dtapuska
https://codereview.chromium.org/2813683002/diff/1/content/renderer/idle_user_detector.cc File content/renderer/idle_user_detector.cc (left): https://codereview.chromium.org/2813683002/diff/1/content/renderer/idle_user_detector.cc#oldcode42 content/renderer/idle_user_detector.cc:42: delete this; On 2017/04/10 15:54:17, tdresser wrote: > Out ...
3 years, 8 months ago (2017-04-10 16:08:06 UTC) #6
tdresser
https://codereview.chromium.org/2813683002/diff/1/content/renderer/idle_user_detector.cc File content/renderer/idle_user_detector.cc (left): https://codereview.chromium.org/2813683002/diff/1/content/renderer/idle_user_detector.cc#oldcode42 content/renderer/idle_user_detector.cc:42: delete this; On 2017/04/10 16:08:05, dtapuska wrote: > On ...
3 years, 8 months ago (2017-04-10 16:25:01 UTC) #9
mustaq
Two comments for now... https://codereview.chromium.org/2813683002/diff/1/content/renderer/idle_user_detector.cc File content/renderer/idle_user_detector.cc (right): https://codereview.chromium.org/2813683002/diff/1/content/renderer/idle_user_detector.cc#newcode28 content/renderer/idle_user_detector.cc:28: void IdleUserDetector::HandleInputMessageReceived() { This has ...
3 years, 8 months ago (2017-04-12 19:27:49 UTC) #10
dtapuska
PTAL https://codereview.chromium.org/2813683002/diff/1/content/renderer/idle_user_detector.cc File content/renderer/idle_user_detector.cc (right): https://codereview.chromium.org/2813683002/diff/1/content/renderer/idle_user_detector.cc#newcode28 content/renderer/idle_user_detector.cc:28: void IdleUserDetector::HandleInputMessageReceived() { On 2017/04/12 19:27:49, mustaq wrote: ...
3 years, 8 months ago (2017-04-13 16:56:24 UTC) #12
tdresser
https://codereview.chromium.org/2813683002/diff/20001/content/renderer/input/input_event_filter_unittest.cc File content/renderer/input/input_event_filter_unittest.cc (right): https://codereview.chromium.org/2813683002/diff/20001/content/renderer/input/input_event_filter_unittest.cc#newcode437 content/renderer/input/input_event_filter_unittest.cc:437: for (size_t i = 1; i < messages.size() - ...
3 years, 8 months ago (2017-04-13 17:19:59 UTC) #14
dtapuska
https://codereview.chromium.org/2813683002/diff/20001/content/renderer/input/input_event_filter_unittest.cc File content/renderer/input/input_event_filter_unittest.cc (right): https://codereview.chromium.org/2813683002/diff/20001/content/renderer/input/input_event_filter_unittest.cc#newcode437 content/renderer/input/input_event_filter_unittest.cc:437: for (size_t i = 1; i < messages.size() - ...
3 years, 8 months ago (2017-04-18 12:59:28 UTC) #17
tdresser
LGTM with nits. https://codereview.chromium.org/2813683002/diff/20001/content/renderer/input/input_event_filter_unittest.cc File content/renderer/input/input_event_filter_unittest.cc (right): https://codereview.chromium.org/2813683002/diff/20001/content/renderer/input/input_event_filter_unittest.cc#newcode437 content/renderer/input/input_event_filter_unittest.cc:437: for (size_t i = 1; i ...
3 years, 8 months ago (2017-04-18 13:45:05 UTC) #18
dtapuska
https://codereview.chromium.org/2813683002/diff/40001/content/renderer/input/input_event_filter_unittest.cc File content/renderer/input/input_event_filter_unittest.cc (right): https://codereview.chromium.org/2813683002/diff/40001/content/renderer/input/input_event_filter_unittest.cc#newcode133 content/renderer/input/input_event_filter_unittest.cc:133: CHECK(false); On 2017/04/18 13:45:05, tdresser wrote: > NOTREACHED? Done. ...
3 years, 8 months ago (2017-04-18 14:16:03 UTC) #19
dtapuska
clamy@chromium.org: Please review changes in PTAL; input/* have already been reviewed.
3 years, 8 months ago (2017-04-18 14:18:30 UTC) #21
dtapuska
On 2017/04/18 14:18:30, dtapuska wrote: > mailto:clamy@chromium.org: Please review changes in > > PTAL; input/* ...
3 years, 8 months ago (2017-04-19 12:39:57 UTC) #26
clamy
Sorry for the delay. I'm less familiar with RenderWidget, nick@ could you take a look? ...
3 years, 8 months ago (2017-04-19 15:34:46 UTC) #29
ncarter (slow)
lgtm from a content/ OWNER perspective, with two style nits. Though, the input implications of ...
3 years, 8 months ago (2017-04-20 22:04:44 UTC) #30
dtapuska
https://codereview.chromium.org/2813683002/diff/60001/content/renderer/idle_user_detector.cc File content/renderer/idle_user_detector.cc (right): https://codereview.chromium.org/2813683002/diff/60001/content/renderer/idle_user_detector.cc#newcode15 content/renderer/idle_user_detector.cc:15: : RenderViewObserver(render_view){ On 2017/04/20 22:04:44, ncarter wrote: > clang-format ...
3 years, 8 months ago (2017-04-21 14:27:30 UTC) #31
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/2813683002/80001
3 years, 8 months ago (2017-04-21 14:27:57 UTC) #34
commit-bot: I haz the power
3 years, 8 months ago (2017-04-21 15:18:50 UTC) #37
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/9ec1a91b89f0dd7393a1c38fa84a...

Powered by Google App Engine
This is Rietveld 408576698