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

Issue 11415227: Telemtry: hooks "chrome.gpuBenchmarking.smoothScrollBy" with java on android. (Closed)

Created:
8 years ago by bulach
Modified:
8 years ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

Telemtry: hooks "chrome.gpuBenchmarking.smoothScrollBy" with java on android. In order to provide more realistic benchmarks, instead of shortcutting in native via mousewheels, let Telemetry cross all the boundaries and synthesize MotionEvents all the way up in java. BUG= TEST=./tools/perf/run_multipage_benchmarks --browser=system smoothness_benchmark tools/perf/page_sets/key_mobile_sites.json Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173457

Patch Set 1 #

Total comments: 7

Patch Set 2 : Using postOnAnimation #

Patch Set 3 : Using TimeAnimaotr #

Total comments: 10

Patch Set 4 : #

Total comments: 2

Patch Set 5 : mAccumulated #

Total comments: 7

Patch Set 6 : DO NOT SUBMIT! #

Patch Set 7 : Move interpolator up. #

Patch Set 8 : Removes spurious OVERRIDE from .cc #

Patch Set 9 : Remove inline virtual dtor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -15 lines) Patch
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
M content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.cc View 1 2 3 4 5 6 1 chunk +3 lines, -11 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A content/browser/renderer_host/smooth_scroll_gesture_android.h View 1 2 3 4 5 6 7 8 1 chunk +47 lines, -0 lines 0 comments Download
A content/browser/renderer_host/smooth_scroll_gesture_android.cc View 1 2 3 4 5 6 7 8 1 chunk +68 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M content/content_jni.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M content/port/browser/smooth_scroll_gesture.h View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download
A content/port/browser/smooth_scroll_gesture.cc View 1 2 3 4 5 6 1 chunk +22 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java View 1 2 3 4 5 6 1 chunk +120 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
bulach
ptal and let me know if this is the right way :) https://codereview.chromium.org/11415227/diff/1/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java File content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java ...
8 years ago (2012-11-30 14:21:02 UTC) #1
Sami
https://codereview.chromium.org/11415227/diff/1/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java File content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java (right): https://codereview.chromium.org/11415227/diff/1/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java#newcode50 content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java:50: long eventTime = SystemClock.uptimeMillis(); This value should also come ...
8 years ago (2012-11-30 15:45:52 UTC) #2
bulach
thanks sami! another patchset up, ptal! https://codereview.chromium.org/11415227/diff/1/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java File content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java (right): https://codereview.chromium.org/11415227/diff/1/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java#newcode50 content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java:50: long eventTime = ...
8 years ago (2012-11-30 16:30:24 UTC) #3
Sami
On 2012/11/30 16:30:24, bulach wrote: > I'm using postOnAnimation as suggested, but that only takes ...
8 years ago (2012-11-30 17:00:09 UTC) #4
nduca
Get hartmanng and vollick to review, they're in the midst of tryign to make this ...
8 years ago (2012-11-30 18:45:50 UTC) #5
bulach
now commenting in the correct patch :) thanks for the pointers nat! vollick / hartmanng: ...
8 years ago (2012-11-30 19:05:04 UTC) #6
Sami
https://codereview.chromium.org/11415227/diff/7001/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java File content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java (right): https://codereview.chromium.org/11415227/diff/7001/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java#newcode67 content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java:67: mCurrentY += mScrollDown ? -10 : 10; This can ...
8 years ago (2012-12-03 12:34:12 UTC) #7
bulach
thanks sami! comments addressed, another look please? https://codereview.chromium.org/11415227/diff/7001/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java File content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java (right): https://codereview.chromium.org/11415227/diff/7001/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java#newcode67 content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java:67: mCurrentY += ...
8 years ago (2012-12-03 15:47:02 UTC) #8
Sami
Thanks Marcus, I think this is looking very good. https://codereview.chromium.org/11415227/diff/10001/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java File content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java (right): https://codereview.chromium.org/11415227/diff/10001/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java#newcode68 content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java:68: ...
8 years ago (2012-12-03 16:02:54 UTC) #9
bulach
thanks sami! comment addressed, another look please? https://codereview.chromium.org/11415227/diff/10001/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java File content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java (right): https://codereview.chromium.org/11415227/diff/10001/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java#newcode68 content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java:68: mAccumulated += ...
8 years ago (2012-12-03 17:40:42 UTC) #10
Sami
lgtm, thanks Marcus!
8 years ago (2012-12-03 17:45:11 UTC) #11
nduca
Sorry, i think more work needed. https://codereview.chromium.org/11415227/diff/6002/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java File content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java (right): https://codereview.chromium.org/11415227/diff/6002/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java#newcode16 content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java:16: import org.chromium.base.CalledByNative; Is ...
8 years ago (2012-12-04 03:40:39 UTC) #12
bulach
thanks nat! inline. https://codereview.chromium.org/11415227/diff/6002/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java File content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java (right): https://codereview.chromium.org/11415227/diff/6002/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java#newcode16 content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java:16: import org.chromium.base.CalledByNative; On 2012/12/04 03:40:40, nduca ...
8 years ago (2012-12-04 10:25:41 UTC) #13
nduca
Totally cool if the bouncing-back-and-forth is in your estimation a nightmare. The biggest comment I've ...
8 years ago (2012-12-04 10:38:01 UTC) #14
Sami
On 2012/12/04 10:25:41, bulach wrote: https://codereview.chromium.org/11415227/diff/6002/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java > File > content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java > (right): > > https://codereview.chromium.org/11415227/diff/6002/content/public/android/java/src/org/chromium/content/browser/SmoothScroller.java#newcode16 ...
8 years ago (2012-12-04 10:41:25 UTC) #15
bulach
ok, here's my overall findings so far, let me know if they make sense :) ...
8 years ago (2012-12-04 12:52:31 UTC) #16
bulach
forget all the above... :) new update! 1. there was a bug (many thanks sami!!) ...
8 years ago (2012-12-04 16:37:06 UTC) #17
nduca
hehe having fun yet? :) This sounds good. The key part is sharing code around ...
8 years ago (2012-12-04 17:07:37 UTC) #18
bulach
aw, snap... :{ I have to pack and will be OOO flying tomorrow (but in ...
8 years ago (2012-12-04 19:19:04 UTC) #19
bulach
apologies for the delay, the trip last week was a bit unexpected, but it was ...
8 years ago (2012-12-10 13:00:00 UTC) #20
nduca
lgtm. @vollick for final review.
8 years ago (2012-12-10 17:27:27 UTC) #21
Sami
Thanks Marcus, lgtm!
8 years ago (2012-12-10 18:43:52 UTC) #22
Ian Vollick
On 2012/12/10 18:43:52, Sami wrote: > Thanks Marcus, lgtm! Great change! lgtm2
8 years ago (2012-12-11 00:30:48 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/11415227/14001
8 years ago (2012-12-11 10:41:45 UTC) #24
commit-bot: I haz the power
Presubmit check for 11415227-14001 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-11 10:41:54 UTC) #25
bulach
+avi for OWNERS on content/
8 years ago (2012-12-11 11:32:19 UTC) #26
bulach
avi: ping? :)
8 years ago (2012-12-14 12:23:00 UTC) #27
Avi (use Gerrit)
rubber stamp lgtm
8 years ago (2012-12-14 16:12:05 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/11415227/14001
8 years ago (2012-12-14 16:13:04 UTC) #29
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-14 16:31:08 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/11415227/30002
8 years ago (2012-12-14 16:38:17 UTC) #31
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-14 16:54:06 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/11415227/26004
8 years ago (2012-12-14 17:28:09 UTC) #33
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-14 22:41:18 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/11415227/26004
8 years ago (2012-12-17 11:40:24 UTC) #35
commit-bot: I haz the power
8 years ago (2012-12-17 13:33:32 UTC) #36
Message was sent while issue was closed.
Change committed as 173457

Powered by Google App Engine
This is Rietveld 408576698