[Android] Short-circuit touch forwarding when no touch handlers exist
commitae30cec89870f7bf5a41701a7eee3ce9c8c7061b
authorjdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 29 Mar 2014 17:38:36 +0000 (29 17:38 +0000)
committerjdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 29 Mar 2014 17:38:36 +0000 (29 17:38 +0000)
tree0ca32d7cf760882b99b5fff6e141b9967644a22d
parent54ee8195669456ecc5d929911a2aa3af2db47931
[Android] Short-circuit touch forwarding when no touch handlers exist

Rather than forwarding the touch event to the input router and incurring the
attendant overhead, short-circuit touch forwarding from ContentViewCoreImpl
when no touch handler exists.  This aligns with existing Aura behavior, and
saves ~20us/event when no touch handler exists.

BUG=341613

Review URL: https://codereview.chromium.org/217253002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260381 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/android/content_view_core_impl.cc
content/browser/android/content_view_core_impl.h
content/browser/renderer_host/input/input_router_impl.cc
content/browser/renderer_host/input/web_input_event_builders_android.cc
content/browser/renderer_host/input/web_input_event_builders_android.h