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

Issue 1349813002: Enable pinch-zoom telemetry on Mac (Closed)

Created:
5 years, 3 months ago by ericrk
Modified:
5 years, 3 months ago
CC:
aelias_OOO_until_Jul13, chromium-reviews, darin-cc_chromium.org, jam, jdduke+watch_chromium.org, lanwei, nona+watch_chromium.org, shuchen+watch_chromium.org, James Su, tdresser, telemetry-reviews_chromium.org, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@telemetry
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable pinch-zoom telemetry on Mac This change adds a SyntheticGestureTargetMac which is able to interpret the touches sent from telemetry's pinch simulator and convert these into trackpad zoom gestures. BUG= CQ_EXTRA_TRYBOTS=tryserver.chromium.perf:linux_perf_bisect;tryserver.chromium.perf:mac_10_10_perf_bisect;tryserver.chromium.perf:win_perf_bisect;tryserver.chromium.perf:android_nexus5_perf_bisect Committed: https://crrev.com/ecb20ba696fb953b2100b335fcea8a7922dfb993 Cr-Commit-Position: refs/heads/master@{#350316}

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : rebase #

Patch Set 4 : pinch > touchscreen_pinch/touchpad_pinch #

Patch Set 5 : fix test macro issue #

Total comments: 12

Patch Set 6 : SyntheticPinchGesture wrapper to lazy-init correct type #

Total comments: 8

Patch Set 7 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+678 lines, -253 lines) Patch
M content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc View 1 2 3 4 5 6 6 chunks +233 lines, -21 lines 0 comments Download
A content/browser/renderer_host/input/synthetic_gesture_target_mac.h View 1 2 3 4 5 6 1 chunk +31 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/synthetic_gesture_target_mac.mm View 1 2 3 4 5 1 chunk +122 lines, -0 lines 0 comments Download
D content/browser/renderer_host/input/synthetic_pinch_gesture.h View 1 2 3 4 5 3 chunks +6 lines, -37 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_pinch_gesture.cc View 1 2 3 4 5 6 1 chunk +20 lines, -146 lines 0 comments Download
A content/browser/renderer_host/input/synthetic_touchpad_pinch_gesture.h View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/synthetic_touchpad_pinch_gesture.cc View 1 2 3 4 5 1 chunk +150 lines, -0 lines 0 comments Download
A + content/browser/renderer_host/input/synthetic_touchscreen_pinch_gesture.h View 1 2 3 4 5 4 chunks +12 lines, -14 lines 0 comments Download
A + content/browser/renderer_host/input/synthetic_touchscreen_pinch_gesture.cc View 1 2 3 4 5 9 chunks +32 lines, -25 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M tools/perf/benchmarks/smoothness.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/internal/actions/pinch.py View 1 2 3 1 chunk +0 lines, -9 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 37 (17 generated)
ericrk
I'm adding in some code to allow our pinch gestures to work on mac (piped ...
5 years, 3 months ago (2015-09-16 23:07:13 UTC) #2
vmiura
lgtm for telemetry change. nednguyen@google.com would you mind to rubber stamp this?
5 years, 3 months ago (2015-09-17 23:56:58 UTC) #4
nednguyen
lgtm
5 years, 3 months ago (2015-09-18 01:48:38 UTC) #5
nednguyen
On 2015/09/18 01:48:38, nednguyen wrote: > lgtm This could break mac reference bot. Please coordinate ...
5 years, 3 months ago (2015-09-18 01:49:21 UTC) #6
ericrk
+aelias for content/browser/renderer_host/input/ - please let me know if my approach here seems reasonable (+see ...
5 years, 3 months ago (2015-09-18 17:20:31 UTC) #8
aelias_OOO_until_Jul13
Jared is a better reviewer for this and may have stronger opinions on how this ...
5 years, 3 months ago (2015-09-18 18:13:55 UTC) #11
jdduke (slow)
Hmm, yeah I'm not enthusiastic about tricking the gesture pipeline into forwarding touch pinch gestures ...
5 years, 3 months ago (2015-09-21 16:41:56 UTC) #12
ericrk
On 2015/09/21 16:41:56, jdduke wrote: > Hmm, yeah I'm not enthusiastic about tricking the gesture ...
5 years, 3 months ago (2015-09-21 16:50:20 UTC) #13
ericrk
Ok, re-worked this a bit to avoid reverse-engineering the zoom level from generated touch points ...
5 years, 3 months ago (2015-09-22 18:07:53 UTC) #14
jdduke (slow)
Thanks, this looks pretty reasonable. Does the zoom in speed appear constant visually or does ...
5 years, 3 months ago (2015-09-22 18:52:37 UTC) #15
ericrk
Thanks for the feedback! PTAL https://codereview.chromium.org/1349813002/diff/80001/content/browser/renderer_host/input/synthetic_gesture.cc File content/browser/renderer_host/input/synthetic_gesture.cc (right): https://codereview.chromium.org/1349813002/diff/80001/content/browser/renderer_host/input/synthetic_gesture.cc#newcode45 content/browser/renderer_host/input/synthetic_gesture.cc:45: if (SyntheticGestureParams::IsGestureSourceTypeSupported( On 2015/09/22 ...
5 years, 3 months ago (2015-09-22 21:46:27 UTC) #20
jdduke (slow)
lgtm, thanks. https://codereview.chromium.org/1349813002/diff/180001/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc File content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc (right): https://codereview.chromium.org/1349813002/diff/180001/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc#newcode1311 content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc:1311: params.gesture_source_type = SyntheticGestureParams::TOUCH_INPUT; What are we validating ...
5 years, 3 months ago (2015-09-22 21:58:49 UTC) #21
ericrk
Thanks! Ned - when you said "This could break mac reference bot. Please coordinate with ...
5 years, 3 months ago (2015-09-22 22:08:49 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1349813002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1349813002/200001
5 years, 3 months ago (2015-09-22 22:11:51 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: mac_perf_bisect on tryserver.chromium.perf (JOB_FAILED, no build URL)
5 years, 3 months ago (2015-09-22 22:17:21 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1349813002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1349813002/200001
5 years, 3 months ago (2015-09-22 23:12:48 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: mac_perf_bisect on tryserver.chromium.perf (JOB_FAILED, no build URL)
5 years, 3 months ago (2015-09-22 23:18:39 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1349813002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1349813002/200001
5 years, 3 months ago (2015-09-23 01:43:36 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:200001)
5 years, 3 months ago (2015-09-23 06:12:19 UTC) #36
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 06:13:20 UTC) #37
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ecb20ba696fb953b2100b335fcea8a7922dfb993
Cr-Commit-Position: refs/heads/master@{#350316}

Powered by Google App Engine
This is Rietveld 408576698