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

Issue 281723010: Bundle DidOverscrollParams with the InputEventAck (Closed)

Created:
6 years, 7 months ago by jdduke (slow)
Modified:
6 years, 7 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, jdduke+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Bundle DidOverscrollParams with the input event ack Currently, overscroll notifications are always sent as a separate IPC message, regardless of the causal event. Instead, bundle the overscroll metadata with the event ack if the event caused the overscroll, saving an IPC message in the most common overscroll case. BUG=328503 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271541

Patch Set 1 #

Patch Set 2 : Updates #

Total comments: 2

Patch Set 3 : Fix browser tests #

Total comments: 2

Patch Set 4 : Code review and test #

Total comments: 4

Patch Set 5 : Remove InputEventAck, file bug for optional type #

Patch Set 6 : Fix build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -117 lines) Patch
M content/browser/renderer_host/input/input_router_client.h View 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.h View 1 2 3 4 3 chunks +5 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.cc View 1 2 3 4 3 chunks +15 lines, -5 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl_perftest.cc View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl_unittest.cc View 1 2 3 4 2 chunks +42 lines, -4 lines 0 comments Download
M content/browser/renderer_host/input/mock_input_router_client.h View 1 3 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/mock_input_router_client.cc View 1 2 chunks +20 lines, -10 lines 0 comments Download
M content/browser/renderer_host/input/touch_input_browsertest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 3 chunks +19 lines, -20 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_unittest.mm View 1 2 3 4 5 3 chunks +12 lines, -9 lines 0 comments Download
M content/common/input_messages.h View 1 2 3 4 6 chunks +23 lines, -4 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 3 chunks +0 lines, -13 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/input/input_event_filter.h View 1 2 chunks +8 lines, -6 lines 0 comments Download
M content/renderer/input/input_event_filter.cc View 1 2 3 4 6 chunks +39 lines, -20 lines 0 comments Download
M content/renderer/input/input_event_filter_unittest.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 1 chunk +5 lines, -4 lines 0 comments Download
M content/renderer/render_widget_unittest.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M ipc/ipc_message_utils.h View 2 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
jdduke (slow)
tdresser@, I explicitly didn't wire up the |DidOverscrollParams| to the TEQ or OverscrollController, but this ...
6 years, 7 months ago (2014-05-14 17:18:03 UTC) #1
tdresser
LGTM, but make sure to get thorough review from some folks more familiar with IPC ...
6 years, 7 months ago (2014-05-14 18:20:07 UTC) #2
jdduke (slow)
aelias@: PTAL, both at a high level and particularly at content/browser/renderer_host/ and content/renderer. I think ...
6 years, 7 months ago (2014-05-19 15:39:43 UTC) #3
aelias_OOO_until_Jul13
lgtm
6 years, 7 months ago (2014-05-19 18:34:46 UTC) #4
jdduke (slow)
PTAL, thanks. tsepez@: Security review for content/common/{input,view}_messages.h and ipc/ipc_message_utils.h. Note that the added scoped_ptr serialization ...
6 years, 7 months ago (2014-05-19 20:48:02 UTC) #5
Tom Sepez
lgtm
6 years, 7 months ago (2014-05-19 21:01:14 UTC) #6
piman
https://codereview.chromium.org/281723010/diff/60001/content/common/input/input_event_ack.h File content/common/input/input_event_ack.h (right): https://codereview.chromium.org/281723010/diff/60001/content/common/input/input_event_ack.h#newcode17 content/common/input/input_event_ack.h:17: struct CONTENT_EXPORT InputEventAck { nit: do you need this ...
6 years, 7 months ago (2014-05-19 21:51:12 UTC) #7
jdduke (slow)
https://codereview.chromium.org/281723010/diff/60001/content/common/input/input_event_ack.h File content/common/input/input_event_ack.h (right): https://codereview.chromium.org/281723010/diff/60001/content/common/input/input_event_ack.h#newcode17 content/common/input/input_event_ack.h:17: struct CONTENT_EXPORT InputEventAck { On 2014/05/19 21:51:13, piman wrote: ...
6 years, 7 months ago (2014-05-19 22:00:20 UTC) #8
piman
On Mon, May 19, 2014 at 3:00 PM, <jdduke@chromium.org> wrote: > > https://codereview.chromium.org/281723010/diff/60001/ > content/common/input/input_event_ack.h ...
6 years, 7 months ago (2014-05-19 22:08:22 UTC) #9
jdduke (slow)
OK, I removed the InputEventAck standalone type, and added a TODO to the |scoped_ptr<DidOverscrollParamss>| entry ...
6 years, 7 months ago (2014-05-20 00:10:16 UTC) #10
piman
lgtm
6 years, 7 months ago (2014-05-20 00:24:21 UTC) #11
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 7 months ago (2014-05-20 02:04:18 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/281723010/100001
6 years, 7 months ago (2014-05-20 02:05:02 UTC) #13
commit-bot: I haz the power
6 years, 7 months ago (2014-05-20 02:35:02 UTC) #14
Message was sent while issue was closed.
Change committed as 271541

Powered by Google App Engine
This is Rietveld 408576698