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

Issue 2166703003: Implement Main Thread RAF Aligned Input (Closed)

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

Description

Introduce the concept of RAF aligned input events to the MainThreadEventQueue. Currently behind a feature flag and is disabled. Short Design Doc: https://docs.google.com/document/d/1aM9AqyYuceRHOmsJZXFKcgi_D4jvFAymYvI36OEwIpI/edit?usp=sharing BUG=625693 Committed: https://crrev.com/3d5624d3a3aa88e0fafe5bd09b5725b1b3f25d67 Cr-Commit-Position: refs/heads/master@{#415099}

Patch Set 1 #

Total comments: 6

Patch Set 2 : A simple prototype of main thread raf aligned input. #

Patch Set 3 : Clean prototype up #

Total comments: 43

Patch Set 4 : Fix up tdresser's comments #

Total comments: 12

Patch Set 5 : Fix build #

Total comments: 6

Patch Set 6 : Fix a few more issues #

Total comments: 4

Patch Set 7 : Increase uma bucket count #

Total comments: 6

Patch Set 8 : Fix up histogram content #

Total comments: 4

Patch Set 9 : Rename NeedsMainFrame to SetNeedsMainFrame and move it to the render_widget #

Unified diffs Side-by-side diffs Delta from patch set Stats (+555 lines, -122 lines) Patch
M content/common/input/web_input_event_queue.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/content_features.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_features.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/input/input_event_filter.h View 1 2 3 4 5 5 chunks +10 lines, -5 lines 0 comments Download
M content/renderer/input/input_event_filter.cc View 1 2 3 7 chunks +34 lines, -5 lines 0 comments Download
M content/renderer/input/input_event_filter_unittest.cc View 1 2 3 13 chunks +33 lines, -36 lines 0 comments Download
M content/renderer/input/input_handler_manager.h View 1 2 3 chunks +4 lines, -1 line 0 comments Download
M content/renderer/input/input_handler_manager.cc View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -3 lines 0 comments Download
M content/renderer/input/input_handler_manager_client.h View 1 2 3 1 chunk +3 lines, -9 lines 0 comments Download
M content/renderer/input/input_handler_wrapper.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/input/input_handler_wrapper.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M content/renderer/input/main_thread_event_queue.h View 1 2 3 4 5 5 chunks +32 lines, -7 lines 0 comments Download
M content/renderer/input/main_thread_event_queue.cc View 1 2 3 4 5 6 7 6 chunks +147 lines, -27 lines 0 comments Download
M content/renderer/input/main_thread_event_queue_unittest.cc View 1 2 3 4 21 chunks +204 lines, -28 lines 0 comments Download
M content/renderer/mus/compositor_mus_connection_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (18 generated)
dtapuska
Tim, let me know what you think. I think this is missing the ability to ...
4 years, 5 months ago (2016-07-20 15:14:22 UTC) #3
tdresser
High level looks good. Let me know if I should do a more thorough review. ...
4 years, 5 months ago (2016-07-20 21:43:09 UTC) #4
dtapuska
On 2016/07/20 21:43:09, tdresser wrote: > High level looks good. Let me know if I ...
4 years, 4 months ago (2016-08-11 21:07:23 UTC) #6
dtapuska
On 2016/08/11 21:07:23, dtapuska wrote: > On 2016/07/20 21:43:09, tdresser wrote: > > High level ...
4 years, 4 months ago (2016-08-11 21:10:10 UTC) #7
dtapuska
On 2016/08/11 at 21:10:10, dtapuska wrote: > On 2016/08/11 21:07:23, dtapuska wrote: > > On ...
4 years, 4 months ago (2016-08-23 20:25:14 UTC) #9
tdresser
https://codereview.chromium.org/2166703003/diff/40001/content/renderer/input/input_event_filter.cc File content/renderer/input/input_event_filter.cc (right): https://codereview.chromium.org/2166703003/diff/40001/content/renderer/input/input_event_filter.cc#newcode86 content/renderer/input/input_event_filter.cc:86: route_queues_[routing_id] = new MainThreadEventQueue( Should we move reading the ...
4 years, 4 months ago (2016-08-24 13:43:00 UTC) #10
dtapuska
https://codereview.chromium.org/2166703003/diff/40001/content/renderer/input/input_event_filter.cc File content/renderer/input/input_event_filter.cc (right): https://codereview.chromium.org/2166703003/diff/40001/content/renderer/input/input_event_filter.cc#newcode86 content/renderer/input/input_event_filter.cc:86: route_queues_[routing_id] = new MainThreadEventQueue( On 2016/08/24 at 13:42:59, tdresser ...
4 years, 4 months ago (2016-08-24 17:10:07 UTC) #15
tdresser
https://codereview.chromium.org/2166703003/diff/40001/content/renderer/input/main_thread_event_queue_unittest.cc File content/renderer/input/main_thread_event_queue_unittest.cc (right): https://codereview.chromium.org/2166703003/diff/40001/content/renderer/input/main_thread_event_queue_unittest.cc#newcode54 content/renderer/input/main_thread_event_queue_unittest.cc:54: needs_main_frame_(false) {} On 2016/08/24 17:10:07, dtapuska wrote: > On ...
4 years, 4 months ago (2016-08-24 17:45:16 UTC) #18
dtapuska
https://codereview.chromium.org/2166703003/diff/50001/content/renderer/input/input_event_filter.h File content/renderer/input/input_event_filter.h (right): https://codereview.chromium.org/2166703003/diff/50001/content/renderer/input/input_event_filter.h#newcode41 content/renderer/input/input_event_filter.h:41: // WebInputEvents on the target thread. On 2016/08/24 at ...
4 years, 3 months ago (2016-08-25 14:07:23 UTC) #21
tdresser
Some of the things indicated "done" aren't done. Did you forget to upload? https://codereview.chromium.org/2166703003/diff/70001/content/renderer/input/input_event_filter.h File ...
4 years, 3 months ago (2016-08-25 14:38:41 UTC) #22
dtapuska
https://codereview.chromium.org/2166703003/diff/70001/content/renderer/input/input_event_filter.h File content/renderer/input/input_event_filter.h (right): https://codereview.chromium.org/2166703003/diff/70001/content/renderer/input/input_event_filter.h#newcode113 content/renderer/input/input_event_filter.h:113: // The |input_handler_manager_| should outlive the life of this ...
4 years, 3 months ago (2016-08-25 15:01:36 UTC) #24
tdresser
LGTM, except for question about relocking per event. https://codereview.chromium.org/2166703003/diff/90001/content/renderer/input/main_thread_event_queue.cc File content/renderer/input/main_thread_event_queue.cc (right): https://codereview.chromium.org/2166703003/diff/90001/content/renderer/input/main_thread_event_queue.cc#newcode157 content/renderer/input/main_thread_event_queue.cc:157: in_flight_event_->coalescedEventIds().size()); ...
4 years, 3 months ago (2016-08-25 15:16:43 UTC) #26
dtapuska
https://codereview.chromium.org/2166703003/diff/90001/content/renderer/input/main_thread_event_queue.cc File content/renderer/input/main_thread_event_queue.cc (right): https://codereview.chromium.org/2166703003/diff/90001/content/renderer/input/main_thread_event_queue.cc#newcode157 content/renderer/input/main_thread_event_queue.cc:157: in_flight_event_->coalescedEventIds().size()); On 2016/08/25 at 15:16:43, tdresser wrote: > A ...
4 years, 3 months ago (2016-08-25 15:30:06 UTC) #27
tdresser
Yeah, this is fine.
4 years, 3 months ago (2016-08-25 15:38:27 UTC) #28
dtapuska
isherman@ please review tools/metrics pfeldman@ please review content/* minus the input which tdresser@ has reviewed.
4 years, 3 months ago (2016-08-25 15:43:52 UTC) #30
Ilya Sherman
metrics lgtm % nits: https://codereview.chromium.org/2166703003/diff/110001/content/renderer/input/main_thread_event_queue.cc File content/renderer/input/main_thread_event_queue.cc (right): https://codereview.chromium.org/2166703003/diff/110001/content/renderer/input/main_thread_event_queue.cc#newcode148 content/renderer/input/main_thread_event_queue.cc:148: (now - in_flight_event_->creationTimestamp()).ToInternalValue(), 1, Please ...
4 years, 3 months ago (2016-08-25 19:34:16 UTC) #31
dtapuska
https://codereview.chromium.org/2166703003/diff/110001/content/renderer/input/main_thread_event_queue.cc File content/renderer/input/main_thread_event_queue.cc (right): https://codereview.chromium.org/2166703003/diff/110001/content/renderer/input/main_thread_event_queue.cc#newcode148 content/renderer/input/main_thread_event_queue.cc:148: (now - in_flight_event_->creationTimestamp()).ToInternalValue(), 1, On 2016/08/25 at 19:34:16, Ilya ...
4 years, 3 months ago (2016-08-25 19:57:29 UTC) #32
dtapuska
On 2016/08/25 at 19:57:29, dtapuska wrote: > https://codereview.chromium.org/2166703003/diff/110001/content/renderer/input/main_thread_event_queue.cc > File content/renderer/input/main_thread_event_queue.cc (right): > > https://codereview.chromium.org/2166703003/diff/110001/content/renderer/input/main_thread_event_queue.cc#newcode148 ...
4 years, 3 months ago (2016-08-29 14:32:51 UTC) #33
pfeldman
https://codereview.chromium.org/2166703003/diff/130001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/2166703003/diff/130001/content/renderer/render_view_impl.cc#newcode1667 content/renderer/render_view_impl.cc:1667: void RenderViewImpl::NeedsMainFrame() { Ah, so it mutates the compositor ...
4 years, 3 months ago (2016-08-29 17:36:52 UTC) #34
dtapuska
https://codereview.chromium.org/2166703003/diff/130001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/2166703003/diff/130001/content/renderer/render_view_impl.cc#newcode1667 content/renderer/render_view_impl.cc:1667: void RenderViewImpl::NeedsMainFrame() { On 2016/08/29 at 17:36:52, pfeldman wrote: ...
4 years, 3 months ago (2016-08-29 19:32:36 UTC) #35
pfeldman
lgtm
4 years, 3 months ago (2016-08-29 20:52:13 UTC) #36
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/2166703003/150001
4 years, 3 months ago (2016-08-29 21:11:39 UTC) #39
commit-bot: I haz the power
Committed patchset #9 (id:150001)
4 years, 3 months ago (2016-08-30 04:34:18 UTC) #40
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 04:37:11 UTC) #42
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/3d5624d3a3aa88e0fafe5bd09b5725b1b3f25d67
Cr-Commit-Position: refs/heads/master@{#415099}

Powered by Google App Engine
This is Rietveld 408576698