Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Unified Diff: tools/telemetry/telemetry/web_perf/smooth_gesture_util.py

Issue 1092523003: WIP: Expand and de-noise touch_pinch_zoom_cases. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/perf/page_sets/tough_pinch_zoom_cases.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/web_perf/smooth_gesture_util.py
diff --git a/tools/telemetry/telemetry/web_perf/smooth_gesture_util.py b/tools/telemetry/telemetry/web_perf/smooth_gesture_util.py
index 8fe32573844c4e2e853c95d99b489d948abe5655..ea7d096df7cfffe4b6852236209a1aaa3a3b85db 100644
--- a/tools/telemetry/telemetry/web_perf/smooth_gesture_util.py
+++ b/tools/telemetry/telemetry/web_perf/smooth_gesture_util.py
@@ -28,10 +28,10 @@ def GetAdjustedInteractionIfContainGesture(timeline, interaction_record):
ev.end >= interaction_record.start]
if len(gesture_events) == 0:
return copy.copy(interaction_record)
- if len(gesture_events) > 1:
- raise Exception('More than one possible synthetic gesture marker found in '
- 'interaction_record %s.' % interaction_record.label)
+ #if len(gesture_events) > 1:
+ # raise Exception('More than one possible synthetic gesture marker found in '
+ # 'interaction_record %s.' % interaction_record.label)
return tir_module.TimelineInteractionRecord(
interaction_record.label, gesture_events[0].start,
- gesture_events[0].end, gesture_events[0],
+ gesture_events[-1].end, gesture_events[0],
interaction_record._flags) # pylint: disable=W0212
« no previous file with comments | « tools/perf/page_sets/tough_pinch_zoom_cases.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698