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

Issue 2742473002: gpu benchmarking swipe for touchpad

Created:
3 years, 9 months ago by sahel
Modified:
3 years, 8 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, mlamouri+watch-content_chromium.org, jam, dtapuska+chromiumwatch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, chromium-apps-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu benchmarking swipe for touchpad Swipe function for touchpad is needed to test handling a fling on the compositor thread when touchpad scroll latching is enabled. A follow up cl will contain layout tests that use swipe to do a touchpad fling that starts on compositor and changes to main thread later. BUG=526463

Patch Set 1 : gpu benchmarking swipe for touchpad #

Total comments: 14

Patch Set 2 : addressed review feedbacks #

Patch Set 3 : swipe direction fixed #

Total comments: 10

Patch Set 4 : comments addressed. #

Total comments: 4

Patch Set 5 : comments addressed. #

Total comments: 2

Patch Set 6 : velocity assignment updated #

Patch Set 7 : merge conflicts resolved. #

Patch Set 8 : re-baselined #

Patch Set 9 : Update direction in tests that use swipeElement/Page to maintain the same behavior. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -31 lines) Patch
M content/browser/renderer_host/input/synthetic_gesture_target_aura.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_target_aura.cc View 1 2 3 4 5 6 7 3 chunks +34 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_target_base.h View 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_target_base.cc View 1 2 3 4 5 6 7 3 chunks +15 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_smooth_move_gesture.h View 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_smooth_move_gesture.cc View 1 2 3 4 5 6 7 3 chunks +27 lines, -6 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/input/input_param_traits_unittest.cc View 1 2 3 4 5 6 7 2 chunks +19 lines, -0 lines 0 comments Download
M content/common/input/synthetic_smooth_scroll_gesture_params.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/input/synthetic_smooth_scroll_gesture_params.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/common/input_messages.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/gpu_benchmarking_extension.h View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/gpu/gpu_benchmarking_extension.cc View 1 2 3 4 5 6 7 4 chunks +49 lines, -16 lines 0 comments Download
M tools/perf/page_sets/key_silk_cases.py View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M tools/perf/page_sets/polymer.py View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M tools/perf/page_sets/simple_mobile_sites_fling.py View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 59 (40 generated)
sahel
Right now the try bots are failing: telemetry.internal.actions.action_runner_unittest.ActionRunnerTest.testSwipe I have changed swipe function from gpu ...
3 years, 9 months ago (2017-03-09 22:09:55 UTC) #10
bokan
https://codereview.chromium.org/2742473002/diff/20001/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc File content/browser/renderer_host/input/synthetic_gesture_target_aura.cc (right): https://codereview.chromium.org/2742473002/diff/20001/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc#newcode73 content/browser/renderer_host/input/synthetic_gesture_target_aura.cc:73: gfx::Point(), timestamp, ui::EF_NONE, ui::EF_NONE); Is this change related? https://codereview.chromium.org/2742473002/diff/20001/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc#newcode173 ...
3 years, 9 months ago (2017-03-10 14:41:57 UTC) #11
sahel
https://codereview.chromium.org/2742473002/diff/20001/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc File content/browser/renderer_host/input/synthetic_gesture_target_aura.cc (right): https://codereview.chromium.org/2742473002/diff/20001/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc#newcode73 content/browser/renderer_host/input/synthetic_gesture_target_aura.cc:73: gfx::Point(), timestamp, ui::EF_NONE, ui::EF_NONE); On 2017/03/10 14:41:57, bokan wrote: ...
3 years, 9 months ago (2017-03-10 21:51:42 UTC) #16
bokan
Thanks, non-OWNER lgtm https://codereview.chromium.org/2742473002/diff/20001/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc File content/browser/renderer_host/input/synthetic_gesture_target_aura.cc (right): https://codereview.chromium.org/2742473002/diff/20001/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc#newcode73 content/browser/renderer_host/input/synthetic_gesture_target_aura.cc:73: gfx::Point(), timestamp, ui::EF_NONE, ui::EF_NONE); On 2017/03/10 ...
3 years, 9 months ago (2017-03-13 13:43:13 UTC) #17
sahel
jbauman@chromium.org: Please review changes in content/renderer/gpu/* dcheng@chromium.org: Please review changes in content/common/input/input_param_traits_unittest.cc content/common/input_messages.h Please note ...
3 years, 9 months ago (2017-03-21 15:01:04 UTC) #23
jbauman
lgtm
3 years, 9 months ago (2017-03-21 19:19:35 UTC) #24
tdresser
https://codereview.chromium.org/2742473002/diff/60001/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc File content/browser/renderer_host/input/synthetic_gesture_target_aura.cc (right): https://codereview.chromium.org/2742473002/diff/60001/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc#newcode168 content/browser/renderer_host/input/synthetic_gesture_target_aura.cc:168: void SyntheticGestureTargetAura::DispatchTouchpadGestureFlingStartToPlatform( Comment that this aligns with the Chrome ...
3 years, 9 months ago (2017-03-21 19:20:03 UTC) #25
sahel
https://codereview.chromium.org/2742473002/diff/60001/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc File content/browser/renderer_host/input/synthetic_gesture_target_aura.cc (right): https://codereview.chromium.org/2742473002/diff/60001/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc#newcode168 content/browser/renderer_host/input/synthetic_gesture_target_aura.cc:168: void SyntheticGestureTargetAura::DispatchTouchpadGestureFlingStartToPlatform( On 2017/03/21 19:20:02, tdresser wrote: > Comment ...
3 years, 9 months ago (2017-03-22 14:43:25 UTC) #30
tdresser
https://codereview.chromium.org/2742473002/diff/60001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): https://codereview.chromium.org/2742473002/diff/60001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode394 content/renderer/gpu/gpu_benchmarking_extension.cc:394: return false; On 2017/03/22 14:43:25, sahel wrote: > On ...
3 years, 9 months ago (2017-03-22 15:21:29 UTC) #31
sahel
https://codereview.chromium.org/2742473002/diff/60001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): https://codereview.chromium.org/2742473002/diff/60001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode394 content/renderer/gpu/gpu_benchmarking_extension.cc:394: return false; On 2017/03/22 15:21:29, tdresser wrote: > On ...
3 years, 9 months ago (2017-03-22 16:04:04 UTC) #32
tdresser
LGTM. https://codereview.chromium.org/2742473002/diff/80001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): https://codereview.chromium.org/2742473002/diff/80001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode436 content/renderer/gpu/gpu_benchmarking_extension.cc:436: gesture_params->velocity = velocity; Instead of all the ternary ...
3 years, 9 months ago (2017-03-22 19:44:02 UTC) #33
sahel
mkwst@chromium.org please review changes at: content/common/input/input_param_traits_unittest.cc content/common/input_messages.h Please note that the try bots are failing ...
3 years, 9 months ago (2017-03-22 21:30:28 UTC) #38
tdresser
https://codereview.chromium.org/2742473002/diff/100001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): https://codereview.chromium.org/2742473002/diff/100001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode437 content/renderer/gpu/gpu_benchmarking_extension.cc:437: if (set_velocity) I suppose we don't even need the ...
3 years, 9 months ago (2017-03-23 15:47:33 UTC) #39
sahel
tsepez@chromium.org please review the following files: content/common/input_messages.h content/common/input/input_param_traits_unittest.cc Please note that the try bots are ...
3 years, 9 months ago (2017-03-24 20:21:57 UTC) #47
Tom Sepez
lgtm
3 years, 9 months ago (2017-03-24 20:27:53 UTC) #50
Tom Sepez
messages LGTM
3 years, 8 months ago (2017-04-25 17:03:36 UTC) #53
sahel
@nednguyen Please review changes in: tools/perf/page_sets/*
3 years, 8 months ago (2017-04-25 18:07:18 UTC) #57
nednguyen
On 2017/04/25 18:07:18, sahel wrote: > @nednguyen > Please review changes in: > tools/perf/page_sets/* Can ...
3 years, 8 months ago (2017-04-25 23:32:59 UTC) #58
sahel
3 years, 8 months ago (2017-04-26 19:47:13 UTC) #59
On 2017/04/25 23:32:59, nednguyen wrote:
> On 2017/04/25 18:07:18, sahel wrote:
> > @nednguyen
> > Please review changes in:
> > tools/perf/page_sets/*
> 
> Can you explain why you reverse the direction of those gesture?

To make Swipe consistent with SmoothScrollBy I had to reverse the labels, now
both functions use direction='down/right' with positive distance to increase
scrollTop/Left.
The default behavior of the Swipe is not changed (It increases scrollLeft by
default), but the label for that is right rather than left.
To preserve the same behavior in tests, I had to change the direction labels.

Powered by Google App Engine
This is Rietveld 408576698