summaryrefslogtreecommitdiffstats
path: root/ash/shell.cc
diff options
context:
space:
mode:
authormiletus@chromium.org <miletus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-22 09:30:00 +0000
committermiletus@chromium.org <miletus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-22 09:30:00 +0000
commit49e3b2cfe044dd2bfd1dac66f9145beefb2db32e (patch)
tree8a80ed16cd9d6b77456f5a47ef65cca62adb795f /ash/shell.cc
parentb772fcea82cc6572c0c36c3618e827e4a8b206bc (diff)
downloadchromium_src-49e3b2cfe044dd2bfd1dac66f9145beefb2db32e.zip
chromium_src-49e3b2cfe044dd2bfd1dac66f9145beefb2db32e.tar.gz
chromium_src-49e3b2cfe044dd2bfd1dac66f9145beefb2db32e.tar.bz2
Make sure INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT is created when event passes through RWHI
We want every input event to have a INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT in its LatencyInfo as the starting point for measuring input latency. In some test cases the synthetic mouse/mouse wheel event can miss the component: For example, for non-aura platform, SyntheticGestureTargetBase::DispatchWebMouseWheelEventToPlatform calls RWHI::ForwardWheelEventWithLatencyInfo(), while we only enforcing creating the begin component in RWHI::ForwardWheelEvent(). The fix in this CL is to move CreateRWHLatencyInfoIfNotExist() call, which enforces that the begin component exists/is created in the LatencyInfo, from RWHI::ForwardWheelEvent into RWHI::ForwardWheelEventWithLatencyInfo. The same is applied to FowardMouseEvent(WithLatencyInfo)(). BUG=246034 TEST=run telemtry smoothness test agasint non-aura linux build, and make sure that INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT exists for mouse wheel event's LatencyInfo. Review URL: https://codereview.chromium.org/136203003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@246257 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell.cc')
0 files changed, 0 insertions, 0 deletions