|
Track plugin input event latency
This CL uses LatencyInfo to track the plugin input event latency.
1.Each plugin input event has an associated LatencyInfo which includes
some important components from its according ui::Event/WebInputEvent's
LatencyInfo. To do that, during the scope of
RenderWidget::OnHandleInputEvent(WebInputEvent, latency_info)
we first cache the WebInputEvent's latency_info, then if the input
event needs to be routed to plugin, we copy the important components
from the cached latency_info into the plugin input event's LatencyInfo.
2.A private API InputEventPrivate::TraceInputLatency(bool has_damage) is exposed.
3.If the event is believed to cause rendering damage, private_event.TraceInputLatency(true)
can be called, and the input event's LatencyInfo will be sent to renderer with next
plugin frame and be tracked until it reaches screen.
If the event is believed to not cause any rendering damage,
private_event.TraceInputLatency(false) can be called, and the LatencyInfo tracking ends
right at the call.
BUG= 355719
TEST=with custom test touch drawing plugin, input-to-swapbuffer latency
is shown correctly in trace viewer.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272990
Total comments: 12
Total comments: 5
Total comments: 7
Total comments: 2
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+538 lines, -13 lines) |
Patch |
 |
M |
chrome/browser/component_updater/ppapi_utils.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/gpu/render_widget_compositor.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/gpu/render_widget_compositor.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_graphics_2d_host.h
|
View
|
3
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_graphics_2d_host.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_graphics_2d_host_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_plugin_instance_impl.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
4 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_plugin_instance_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
6 chunks |
+55 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/plugin_module.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_widget.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
3 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_widget.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/examples/pepper_container_app/plugin_instance.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/examples/pepper_container_app/plugin_instance.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/mojo_examples.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
ppapi/api/private/ppb_input_event_private.idl
|
View
|
1
2
3
4
5
6
7
8
9
10
12
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/c/pp_macros.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A |
ppapi/c/private/ppb_input_event_private.h
|
View
|
1
2
3
4
5
6
7
8
9
10
12
|
1 chunk |
+78 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ppapi/cpp/private/input_event_private.h
|
View
|
1
2
3
4
5
6
7
8
9
12
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ppapi/cpp/private/input_event_private.cc
|
View
|
1
2
3
4
5
6
7
8
9
12
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/native_client/native_client.gyp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/ppapi_internal.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
6 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/ppapi_proxy_nacl.gyp
|
View
|
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/ppapi_shared.gypi
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/ppapi_sources.gypi
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/DEPS
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/graphics_2d_resource.cc
|
View
|
1
2
3
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
ppapi/proxy/interface_list.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppapi_messages.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_instance_proxy.h
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_instance_proxy.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/DEPS
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/ppapi_globals.h
|
View
|
1
2
3
|
4 chunks |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/ppapi_globals.cc
|
View
|
1
2
3
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/ppb_input_event_shared.h
|
View
|
1
2
3
4
5
|
3 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/ppb_input_event_shared.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/tests/all_c_includes.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/tests/test_input_event.h
|
View
|
1
2
3
4
5
|
3 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/tests/test_input_event.cc
|
View
|
1
2
3
4
5
|
6 chunks |
+33 lines, -1 line |
0 comments
|
Download
|
 |
M |
ppapi/thunk/interfaces_ppb_private.h
|
View
|
1
2
3
4
5
7
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/thunk/ppb_input_event_api.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ppapi/thunk/ppb_input_event_private_thunk.cc
|
View
|
1
2
3
4
5
12
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/thunk/ppb_instance_api.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/metrics/histograms/histograms.xml
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/events/latency_info.h
|
View
|
1
2
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/events/latency_info.cc
|
View
|
|
4 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/events/latency_info_nacl.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
2 chunks |
+37 lines, -1 line |
0 comments
|
Download
|
Total messages: 59 (0 generated)
|