Commit 35afe746 authored by jdduke@chromium.org's avatar jdduke@chromium.org

Add InputRouter perftests for touches and scroll gestures

Add some basic perftests that track how long a given WebTouchEvent or
WebGestureEvent takes to propagate through the InputRouter.  This includes both
the time to send and the time to ack a given event, averaged over a typical
touch swipe or scroll gesture sequence.

BUG=339877
TBR=jam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252079 0039d316-1c4b-4281-b951-d872f2087c98
parent ffc735e3
......@@ -867,6 +867,7 @@
'type': '<(gtest_target_type)',
'defines!': ['CONTENT_IMPLEMENTATION'],
'dependencies': [
'content.gyp:content_browser',
'content.gyp:content_common',
'test_support_content',
'../base/base.gyp:test_support_base',
......@@ -881,9 +882,17 @@
'..',
],
'sources': [
'browser/renderer_host/input/input_router_impl_perftest.cc',
'common/cc_messages_perftest.cc',
'test/run_all_perftests.cc',
],
'conditions': [
['OS == "android" and gtest_target_type == "shared_library"', {
'dependencies': [
'../testing/android/native_test.gyp:native_test_native_code',
],
}],
],
},
{
'target_name': 'content_browser_test_support',
......@@ -1423,6 +1432,19 @@
},
'includes': [ '../build/java_apk.gypi' ],
},
{
'target_name': 'content_perftests_apk',
'type': 'none',
'dependencies': [
'content.gyp:content_java',
'content_perftests',
],
'variables': {
'test_suite_name': 'content_perftests',
'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)content_perftests<(SHARED_LIB_SUFFIX)',
},
'includes': [ '../build/apk_test.gypi' ],
},
{
'target_name': 'chromium_linker_test_apk',
'type': 'none',
......
......@@ -64,7 +64,7 @@ CONTENT_EXPORT extern const char kDisableFlash3d[];
CONTENT_EXPORT extern const char kDisableFlashStage3d[];
CONTENT_EXPORT extern const char kDisableForceCompositingMode[];
CONTENT_EXPORT extern const char kDisableFullScreen[];
extern const char kDisableGestureDebounce[];
CONTENT_EXPORT extern const char kDisableGestureDebounce[];
CONTENT_EXPORT extern const char kDisableGestureTapHighlight[];
CONTENT_EXPORT extern const char kDisableGLMultisampling[];
CONTENT_EXPORT extern const char kDisableGpu[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment