summaryrefslogtreecommitdiffstats
path: root/mojo/mojo_examples.gypi
diff options
context:
space:
mode:
authormiletus@chromium.org <miletus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-27 16:56:43 +0000
committermiletus@chromium.org <miletus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-27 16:56:43 +0000
commit8062ab2643873f883e9655d506e1f91880b923ff (patch)
tree3b1031b6e7e592c11a0d9756ec5bd337c40c41cd /mojo/mojo_examples.gypi
parent66bf7e2b99672c530495517abb88f5256af9d338 (diff)
downloadchromium_src-8062ab2643873f883e9655d506e1f91880b923ff.zip
chromium_src-8062ab2643873f883e9655d506e1f91880b923ff.tar.gz
chromium_src-8062ab2643873f883e9655d506e1f91880b923ff.tar.bz2
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. Review URL: https://codereview.chromium.org/252663002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272990 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/mojo_examples.gypi')
-rw-r--r--mojo/mojo_examples.gypi1
1 files changed, 1 insertions, 0 deletions
diff --git a/mojo/mojo_examples.gypi b/mojo/mojo_examples.gypi
index da07826..d45037a 100644
--- a/mojo/mojo_examples.gypi
+++ b/mojo/mojo_examples.gypi
@@ -75,6 +75,7 @@
'../gpu/gpu.gyp:command_buffer_common',
'../ppapi/ppapi.gyp:ppapi_c',
'../ppapi/ppapi_internal.gyp:ppapi_example_gles2_spinning_cube',
+ '../ui/events/events.gyp:events_base',
'mojo_common_lib',
'mojo_environment_chromium',
'mojo_geometry_bindings',