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

Issue 19670007: Send input event's LatencyInfo back from renderer to browser when acked (Closed)

Created:
7 years, 5 months ago by Yufeng Shen (Slow to review)
Modified:
7 years, 4 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, apatrick_chromium, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, Rick Byers, varunjain
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Send input event's LatencyInfo back from renderer to browser when acked Currently input event and its associated LatencyInfo are sent from browser to renderer together. But the LatencyInfo is not sent back to browser with individual input event, and only at frame swap time the browser will get the aggregated LatencyInfo of all input events during that frame. This makes it difficulte for browser side to track the individual event's latency info if it is modified at renderer side. In this CL we send the input event's LatencyInfo back from renderer to browser when the input event is acked, so that if any update happens to the event's LatencyInfo at renderer side, we can access the update also in browser side. BUG=261388 TEST=Added some latency component in renderer, and check that they can be accessed from browser side. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216043

Patch Set 1 #

Patch Set 2 : rebase & remove CrackMessage() #

Total comments: 2

Patch Set 3 : change PopTouchEventWithAck(ack) to PopTouchEventToClient(ack, latency_info) #

Total comments: 2

Patch Set 4 : fix indentation #

Patch Set 5 : rebase #

Patch Set 6 : fix compile error in immediate_input_router_unittest.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -64 lines) Patch
M content/browser/renderer_host/input/immediate_input_router.h View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/immediate_input_router.cc View 1 6 chunks +17 lines, -10 lines 0 comments Download
M content/browser/renderer_host/input/immediate_input_router_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.h View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.cc View 1 2 3 4 6 chunks +13 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_unittest.mm View 1 3 chunks +6 lines, -3 lines 0 comments Download
M content/common/input_messages.h View 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/gpu/input_event_filter.h View 1 1 chunk +4 lines, -6 lines 0 comments Download
M content/renderer/gpu/input_event_filter.cc View 1 2 chunks +17 lines, -23 lines 0 comments Download
M content/renderer/gpu/input_event_filter_unittest.cc View 1 3 chunks +13 lines, -5 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M ui/base/latency_info.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/base/latency_info.cc View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Yufeng Shen (Slow to review)
7 years, 5 months ago (2013-07-17 23:19:24 UTC) #1
jamesr
I think John should do the primary review on this when he's back. I don't ...
7 years, 5 months ago (2013-07-19 19:42:26 UTC) #2
Yufeng Shen (Slow to review)
On 2013/07/19 19:42:26, jamesr wrote: > I think John should do the primary review on ...
7 years, 5 months ago (2013-07-19 19:49:22 UTC) #3
jamesr
But I don't see a new field added to a message or the latency info ...
7 years, 5 months ago (2013-07-19 19:57:37 UTC) #4
miletus1
Right, I should have made this more clear. The motivation of this CL is to ...
7 years, 5 months ago (2013-07-19 20:08:49 UTC) #5
jamesr
Can't we use a generic cracker interface mechanism? Having to handle individual fields specially like ...
7 years, 5 months ago (2013-07-20 02:20:35 UTC) #6
jbauman
lgtm
7 years, 4 months ago (2013-07-30 22:21:21 UTC) #7
Yufeng Shen (Slow to review)
On 2013/07/20 02:20:35, jamesr wrote: > Can't we use a generic cracker interface mechanism? Having ...
7 years, 4 months ago (2013-07-31 21:35:05 UTC) #8
jamesr
content/renderer/gpu lgtm. this doesn't seem super clean, but at least it won't fail silently
7 years, 4 months ago (2013-08-06 17:52:42 UTC) #9
sadrul
/cc jdduke@ https://codereview.chromium.org/19670007/diff/8001/content/browser/renderer_host/input/touch_event_queue.cc File content/browser/renderer_host/input/touch_event_queue.cc (right): https://codereview.chromium.org/19670007/diff/8001/content/browser/renderer_host/input/touch_event_queue.cc#newcode137 content/browser/renderer_host/input/touch_event_queue.cc:137: touch_queue_.front()->SetLatencyInfoForCoalescedEvent(latency_info); Instead of doing this, can you ...
7 years, 4 months ago (2013-08-06 19:08:27 UTC) #10
Yufeng Shen (Slow to review)
https://chromiumcodereview.appspot.com/19670007/diff/8001/content/browser/renderer_host/input/touch_event_queue.cc File content/browser/renderer_host/input/touch_event_queue.cc (right): https://chromiumcodereview.appspot.com/19670007/diff/8001/content/browser/renderer_host/input/touch_event_queue.cc#newcode137 content/browser/renderer_host/input/touch_event_queue.cc:137: touch_queue_.front()->SetLatencyInfoForCoalescedEvent(latency_info); On 2013/08/06 19:08:27, sadrul wrote: > Instead of ...
7 years, 4 months ago (2013-08-06 19:36:13 UTC) #11
sadrul
lgtm https://chromiumcodereview.appspot.com/19670007/diff/16001/ui/base/latency_info.cc File ui/base/latency_info.cc (right): https://chromiumcodereview.appspot.com/19670007/diff/16001/ui/base/latency_info.cc#newcode30 ui/base/latency_info.cc:30: for (LatencyMap::const_iterator it = other.latency_components.begin(); Fix indentation
7 years, 4 months ago (2013-08-06 19:49:30 UTC) #12
jdduke (slow)
I'd really prefer it if the returned ui::LatencyInfo contained only additional entries that were made ...
7 years, 4 months ago (2013-08-06 19:50:38 UTC) #13
Yufeng Shen (Slow to review)
On 2013/08/06 19:50:38, jdduke wrote: > I'd really prefer it if the returned ui::LatencyInfo contained ...
7 years, 4 months ago (2013-08-06 20:00:57 UTC) #14
Yufeng Shen (Slow to review)
https://chromiumcodereview.appspot.com/19670007/diff/16001/ui/base/latency_info.cc File ui/base/latency_info.cc (right): https://chromiumcodereview.appspot.com/19670007/diff/16001/ui/base/latency_info.cc#newcode30 ui/base/latency_info.cc:30: for (LatencyMap::const_iterator it = other.latency_components.begin(); On 2013/08/06 19:49:31, sadrul ...
7 years, 4 months ago (2013-08-06 20:01:04 UTC) #15
Yufeng Shen (Slow to review)
+ jln@ for OWNER of content/common/input_messages.hq
7 years, 4 months ago (2013-08-06 20:11:02 UTC) #16
jln (very slow on Chromium)
On 2013/08/06 20:11:02, Yufeng Shen wrote: > + jln@ for OWNER of content/common/input_messages.hq content/common/input_messages.h lgtm
7 years, 4 months ago (2013-08-06 20:30:08 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/19670007/15002
7 years, 4 months ago (2013-08-06 20:55:45 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/19670007/57001
7 years, 4 months ago (2013-08-06 21:23:11 UTC) #19
commit-bot: I haz the power
Change committed as 216043
7 years, 4 months ago (2013-08-07 00:27:10 UTC) #20
jdduke (slow)
On 2013/08/07 00:27:10, I haz the power (commit-bot) wrote: > Change committed as 216043 ...
7 years, 4 months ago (2013-08-08 15:51:28 UTC) #21
miletus1
You are right, this patch is just a preparation one and future patches need to ...
7 years, 4 months ago (2013-08-08 16:42:59 UTC) #22
nduca
owners: this should have been lg'd by jbauman at minimuum and gotten buyoff by jared. ...
7 years, 4 months ago (2013-08-09 16:25:55 UTC) #23
sadrul
7 years, 4 months ago (2013-08-09 16:28:42 UTC) #24
Message was sent while issue was closed.
On 2013/08/09 16:25:55, nduca wrote:
> owners: this should have been lg'd by jbauman at minimuum and gotten buyoff by
> jared. these two people work on this system, bypassing them during review is
not
> appropriate.

jbauman did review: https://codereview.chromium.org/19670007/#msg7

Powered by Google App Engine
This is Rietveld 408576698