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

Issue 2317253005: SourceEventType added to LatencyInfo (Closed)

Created:
4 years, 3 months ago by sahel
Modified:
4 years, 3 months ago
CC:
chromium-reviews, creis+watch_chromium.org, yusukes+watch_chromium.org, tdresser+watch_chromium.org, shuchen+watch_chromium.org, nasko+codewatch_chromium.org, jam, dtapuska+chromiumwatch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, asvitkine+watch_chromium.org, piman+watch_chromium.org, kalyank, danakj+watch_chromium.org, James Su, lanwei, dproy
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

SourceEventType added to LatencyInfo The source event type information will be used in a follow up patch to compute scroll latency metrics for touch and wheel, separately. BUG=622827 TEST=RenderWidgetHostViewAuraTest.SourceEventTypeExistsInLatencyInfo, RenderWidgetHostViewMacTest.SourceEventTypeExistsInLatencyInfo, EventTest.PointerEventSourceEventTypeExistsInLatencyInfo CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/69895c817b673b47db19ca948ab0e6249e5bd699 Cr-Commit-Position: refs/heads/master@{#419204}

Patch Set 1 #

Patch Set 2 : all targets compiled. #

Patch Set 3 : latency_info and its source plumbed through all platforms. #

Patch Set 4 : Changed the patch to only contain source event type plumbing. #

Total comments: 18

Patch Set 5 : reviews addressed. #

Total comments: 2

Patch Set 6 : unittest added for source type assignment for pointerEvents. #

Total comments: 4

Patch Set 7 : Used a switch-case to set the SourceEventType in latencyInfo. #

Total comments: 6

Patch Set 8 : Used a switch-case to set the SourceEventType in latencyInfo. #

Patch Set 9 : merged with master #

Patch Set 10 : Added a fake return to the end of EventTypeToLatencySourceEventType, for compilers that don't know … #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+387 lines, -99 lines) Patch
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 6 3 chunks +6 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 2 3 4 5 6 7 8 4 chunks +11 lines, -10 lines 0 comments Download
M content/browser/renderer_host/input/mouse_wheel_event_queue.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 7 chunks +20 lines, -9 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_input_event_router.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_input_event_router.cc View 1 2 3 4 5 6 7 8 9 chunks +21 lines, -17 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 5 chunks +11 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 5 chunks +7 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +58 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 8 4 chunks +12 lines, -11 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_unittest.mm View 1 2 3 4 5 6 1 chunk +26 lines, -0 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 6 7 8 16 chunks +23 lines, -19 lines 0 comments Download
M ui/events/blink/web_input_event_traits.h View 2 chunks +3 lines, -0 lines 0 comments Download
M ui/events/blink/web_input_event_traits.cc View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M ui/events/event.cc View 1 2 3 4 5 6 7 8 9 12 chunks +114 lines, -6 lines 2 comments Download
M ui/events/event_unittest.cc View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
M ui/events/ipc/latency_info_param_traits.cc View 4 chunks +6 lines, -0 lines 0 comments Download
M ui/events/ipc/latency_info_param_traits_macros.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/events/latency_info.h View 1 2 3 4 5 4 chunks +18 lines, -0 lines 0 comments Download
M ui/events/latency_info.cc View 1 2 3 4 5 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 91 (63 generated)
sahel
I haven't added any comments for deprecating the old histograms, yet. We might need to ...
4 years, 3 months ago (2016-09-08 14:32:12 UTC) #5
tdresser
On 2016/09/08 14:32:12, sahel wrote: > I haven't added any comments for deprecating the old ...
4 years, 3 months ago (2016-09-08 15:07:40 UTC) #8
sahel
4 years, 3 months ago (2016-09-09 17:30:47 UTC) #20
tdresser
https://codereview.chromium.org/2317253005/diff/60001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/2317253005/diff/60001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode469 content/browser/browser_plugin/browser_plugin_guest.cc:469: // https://crbug.com/613628 Remove TODO, update linked bug, cc James. ...
4 years, 3 months ago (2016-09-12 14:23:09 UTC) #23
tdresser
https://codereview.chromium.org/2317253005/diff/60001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/2317253005/diff/60001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode469 content/browser/browser_plugin/browser_plugin_guest.cc:469: // https://crbug.com/613628 On 2016/09/12 14:23:08, tdresser wrote: > Remove ...
4 years, 3 months ago (2016-09-12 15:36:37 UTC) #24
sahel
https://codereview.chromium.org/2317253005/diff/60001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/2317253005/diff/60001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode469 content/browser/browser_plugin/browser_plugin_guest.cc:469: // https://crbug.com/613628 On 2016/09/12 15:36:37, tdresser wrote: > On ...
4 years, 3 months ago (2016-09-12 17:02:26 UTC) #27
tdresser
+James LGTM with nits. https://codereview.chromium.org/2317253005/diff/60001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2317253005/diff/60001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode5 content/browser/renderer_host/render_widget_host_view_android.cc:5: #include "content/browser/renderer_host/render_widget_host_view_android.h" On 2016/09/12 17:02:26, ...
4 years, 3 months ago (2016-09-12 18:03:45 UTC) #30
tdresser
+Lan and Deep as FYI
4 years, 3 months ago (2016-09-12 18:39:37 UTC) #31
sahel
jochen@chromium.org: Please review changes in content/browser/frame_host/render_widget_host_view_guest.cc content/browser/site_per_process_browsertest.cc nasko@chromium.org: Please review changes in ui/events/ipc/latency_info_param_traits.cc ui/events/ipc/latency_info_param_traits_macros.h sky@chromium.org: ...
4 years, 3 months ago (2016-09-12 20:56:36 UTC) #35
nasko
IPC LGTM
4 years, 3 months ago (2016-09-12 21:08:45 UTC) #38
sky
https://codereview.chromium.org/2317253005/diff/120001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/2317253005/diff/120001/ui/events/event.cc#newcode1118 ui/events/event.cc:1118: latency()->set_source_event_type(ui::SourceEventType::OTHER); Why do you have to explicitly set the ...
4 years, 3 months ago (2016-09-13 00:12:18 UTC) #43
sahel
https://codereview.chromium.org/2317253005/diff/120001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/2317253005/diff/120001/ui/events/event.cc#newcode1118 ui/events/event.cc:1118: latency()->set_source_event_type(ui::SourceEventType::OTHER); On 2016/09/13 00:12:18, sky wrote: > Why do ...
4 years, 3 months ago (2016-09-13 14:29:53 UTC) #44
tdresser
On 2016/09/13 14:29:53, sahel wrote: > https://codereview.chromium.org/2317253005/diff/120001/ui/events/event.cc > File ui/events/event.cc (right): > > https://codereview.chromium.org/2317253005/diff/120001/ui/events/event.cc#newcode1118 > ...
4 years, 3 months ago (2016-09-13 14:46:34 UTC) #45
wjmaclean
lgtm for webview, rwhier
4 years, 3 months ago (2016-09-13 15:11:39 UTC) #46
sky
Why are we going with an incomplete mapping? For example, we have TOUCH, but not ...
4 years, 3 months ago (2016-09-13 18:22:01 UTC) #47
sahel
On 2016/09/13 18:22:01, sky wrote: > Why are we going with an incomplete mapping? For ...
4 years, 3 months ago (2016-09-13 18:31:32 UTC) #48
sky
On 2016/09/13 18:31:32, sahel wrote: > On 2016/09/13 18:22:01, sky wrote: > > Why are ...
4 years, 3 months ago (2016-09-13 20:03:37 UTC) #49
chromium-reviews
If you meant checking only type instead of pointer type in pointer events, there are ...
4 years, 3 months ago (2016-09-13 20:17:52 UTC) #50
sky
https://codereview.chromium.org/2317253005/diff/120001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/2317253005/diff/120001/ui/events/event.cc#newcode336 ui/events/event.cc:336: if (type_ < ET_LAST) I'm suggesting this, and the ...
4 years, 3 months ago (2016-09-14 02:52:43 UTC) #51
sahel
On 2016/09/14 02:52:43, sky wrote: > https://codereview.chromium.org/2317253005/diff/120001/ui/events/event.cc > File ui/events/event.cc (right): > > https://codereview.chromium.org/2317253005/diff/120001/ui/events/event.cc#newcode336 > ...
4 years, 3 months ago (2016-09-15 17:07:21 UTC) #66
sky
https://codereview.chromium.org/2317253005/diff/180001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/2317253005/diff/180001/ui/events/event.cc#newcode146 ui/events/event.cc:146: // WHEEL. The proper value is assigned in the ...
4 years, 3 months ago (2016-09-15 17:56:34 UTC) #67
sahel
https://codereview.chromium.org/2317253005/diff/120001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/2317253005/diff/120001/ui/events/event.cc#newcode336 ui/events/event.cc:336: if (type_ < ET_LAST) On 2016/09/14 02:52:43, sky wrote: ...
4 years, 3 months ago (2016-09-15 18:58:08 UTC) #68
sky
LGTM
4 years, 3 months ago (2016-09-15 22:44:52 UTC) #69
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/2317253005/240001
4 years, 3 months ago (2016-09-16 17:30:50 UTC) #84
commit-bot: I haz the power
Committed patchset #10 (id:240001)
4 years, 3 months ago (2016-09-16 17:37:11 UTC) #86
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/69895c817b673b47db19ca948ab0e6249e5bd699 Cr-Commit-Position: refs/heads/master@{#419204}
4 years, 3 months ago (2016-09-16 17:41:59 UTC) #88
brucedawson
https://codereview.chromium.org/2317253005/diff/240001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/2317253005/diff/240001/ui/events/event.cc#newcode1420 ui/events/event.cc:1420: if ((flags | EF_FROM_TOUCH) || This line of code ...
4 years, 3 months ago (2016-09-19 17:40:22 UTC) #90
sahel
4 years, 3 months ago (2016-09-20 19:10:32 UTC) #91
Message was sent while issue was closed.
I fixed the issue.

https://codereview.chromium.org/2317253005/diff/240001/ui/events/event.cc
File ui/events/event.cc (right):

https://codereview.chromium.org/2317253005/diff/240001/ui/events/event.cc#new...
ui/events/event.cc:1420: if ((flags | EF_FROM_TOUCH) ||
On 2016/09/19 17:40:21, brucedawson wrote:
> This line of code appears to be incorrect. This was detected through a warning
> from the experimental VC++ /analyze static code analysis bot:
> 
> ui\events\event.cc(1420) : warning C6316: Incorrect operator:  tested
expression
> is constant and non-zero.  Use bitwise-and to determine whether bits are set.
> 
> As the warning says, this test is always true and '&' was almost certainly
> intended.
> 
> The tracking bug number for /analyze-found bugs is 427616.

Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698