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

Issue 10787025: Expose a gpu-benchmark-only measureRecordTime API to JS. This function measures the time it takes t… (Closed)

Created:
8 years, 5 months ago by alokp
Modified:
8 years, 4 months ago
Reviewers:
jamesr, piman, nduca, dmurph
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, jam, apatrick_chromium, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org
Visibility:
Public.

Description

Expose a gpu-benchmark-only printToSkPicture API to JS. This function records the page to an SkPicture, and dumps the resulting picture to a local file. BUG=130422 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149287

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Total comments: 8

Patch Set 6 : #

Total comments: 1

Patch Set 7 : #

Patch Set 8 : #

Total comments: 24

Patch Set 9 : #

Total comments: 2

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -5 lines) Patch
M content/renderer/gpu/gpu_benchmarking_extension.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +87 lines, -5 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
alokp
Not ready for checking in. Just wanted to give you an update on the direction ...
8 years, 5 months ago (2012-07-16 22:19:30 UTC) #1
nduca
Cool http://codereview.chromium.org/10787025/diff/1/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): http://codereview.chromium.org/10787025/diff/1/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode38 content/renderer/gpu/gpu_benchmarking_extension.cc:38: "chrome.gpuBenchmarking.measureRecordTime = function(dump) {" How about dumpToSkPicture = ...
8 years, 5 months ago (2012-07-16 22:28:40 UTC) #2
alokp
http://codereview.chromium.org/10787025/diff/1/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): http://codereview.chromium.org/10787025/diff/1/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode38 content/renderer/gpu/gpu_benchmarking_extension.cc:38: "chrome.gpuBenchmarking.measureRecordTime = function(dump) {" On 2012/07/16 22:28:40, nduca wrote: ...
8 years, 5 months ago (2012-07-16 22:38:04 UTC) #3
dmurph
I renamed the measurePaintTime method to just 'paint'.
8 years, 5 months ago (2012-07-17 00:05:07 UTC) #4
dmurph
http://codereview.chromium.org/10787025/diff/1/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): http://codereview.chromium.org/10787025/diff/1/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode38 content/renderer/gpu/gpu_benchmarking_extension.cc:38: "chrome.gpuBenchmarking.measureRecordTime = function(dump) {" On 2012/07/16 22:38:09, Alok Priyadarshi ...
8 years, 5 months ago (2012-07-17 00:11:54 UTC) #5
alokp
Uploaded new patch. This will be ready to commit after WK88271 has landed and rolled. ...
8 years, 5 months ago (2012-07-17 17:06:00 UTC) #6
alokp
http://codereview.chromium.org/10787025/diff/7003/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): http://codereview.chromium.org/10787025/diff/7003/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode174 content/renderer/gpu/gpu_benchmarking_extension.cc:174: return new GpuBenchmarkingWrapper(); does this get deleted somewhere?
8 years, 5 months ago (2012-07-17 17:06:55 UTC) #7
nduca
http://codereview.chromium.org/10787025/diff/10001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): http://codereview.chromium.org/10787025/diff/10001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode36 content/renderer/gpu/gpu_benchmarking_extension.cc:36: } do we use the OVERRIDE convention yet in ...
8 years, 5 months ago (2012-07-18 06:17:47 UTC) #8
alokp
http://codereview.chromium.org/10787025/diff/10001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): http://codereview.chromium.org/10787025/diff/10001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode36 content/renderer/gpu/gpu_benchmarking_extension.cc:36: } On 2012/07/18 06:17:47, nduca wrote: > do we ...
8 years, 5 months ago (2012-07-18 16:00:49 UTC) #9
nduca
Thansks for the other clarifications. > The same reason WebViewBenchmarkSupport::paint() returns paint time. It might ...
8 years, 5 months ago (2012-07-20 06:42:35 UTC) #10
nduca
Ima LGTM, though I think the underlying patch you're waiting on has changed a wee ...
8 years, 5 months ago (2012-07-20 06:43:18 UTC) #11
alokp
On 2012/07/20 06:43:18, nduca wrote: > Ima LGTM, though I think the underlying patch you're ...
8 years, 5 months ago (2012-07-23 16:42:59 UTC) #12
dmurph
lgtm http://codereview.chromium.org/10787025/diff/15001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): http://codereview.chromium.org/10787025/diff/15001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode34 content/renderer/gpu/gpu_benchmarking_extension.cc:34: // WebViewBenchmarkSupport::PaintingController overrides. Nit: unnecessary + old comment
8 years, 5 months ago (2012-07-23 17:08:17 UTC) #13
alokp
Uploaded a new patch to account for the new WebViewBenchmarkSupport::PaintClient API. The new patch also ...
8 years, 5 months ago (2012-07-25 17:08:37 UTC) #14
alokp
James/Antoine: Need owners approval.
8 years, 4 months ago (2012-07-27 17:46:01 UTC) #15
jamesr
http://codereview.chromium.org/10787025/diff/25001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): http://codereview.chromium.org/10787025/diff/25001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode33 content/renderer/gpu/gpu_benchmarking_extension.cc:33: virtual WebCanvas* willPaint(const WebSize& size) OVERRIDE { If you ...
8 years, 4 months ago (2012-07-27 17:54:36 UTC) #16
piman
http://codereview.chromium.org/10787025/diff/25001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): http://codereview.chromium.org/10787025/diff/25001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode25 content/renderer/gpu/gpu_benchmarking_extension.cc:25: namespace { nit: blank line below http://codereview.chromium.org/10787025/diff/25001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode28 content/renderer/gpu/gpu_benchmarking_extension.cc:28: explicit ...
8 years, 4 months ago (2012-07-27 17:55:58 UTC) #17
alokp
http://codereview.chromium.org/10787025/diff/25001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): http://codereview.chromium.org/10787025/diff/25001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode25 content/renderer/gpu/gpu_benchmarking_extension.cc:25: namespace { On 2012/07/27 17:55:58, piman wrote: > nit: ...
8 years, 4 months ago (2012-07-27 18:32:44 UTC) #18
piman
http://codereview.chromium.org/10787025/diff/25001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): http://codereview.chromium.org/10787025/diff/25001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode41 content/renderer/gpu/gpu_benchmarking_extension.cc:41: // --no-sandbox command-line flag. On 2012/07/27 18:32:44, Alok Priyadarshi ...
8 years, 4 months ago (2012-07-27 20:59:31 UTC) #19
nduca
http://codereview.chromium.org/10787025/diff/31001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): http://codereview.chromium.org/10787025/diff/31001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode139 content/renderer/gpu/gpu_benchmarking_extension.cc:139: static v8::Handle<v8::Value> PrintToSkPicture(const v8::Arguments& args) { We should check ...
8 years, 4 months ago (2012-07-30 17:24:21 UTC) #20
alokp
http://codereview.chromium.org/10787025/diff/25001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): http://codereview.chromium.org/10787025/diff/25001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode41 content/renderer/gpu/gpu_benchmarking_extension.cc:41: // --no-sandbox command-line flag. On 2012/07/27 20:59:31, piman wrote: ...
8 years, 4 months ago (2012-07-30 18:05:12 UTC) #21
piman
On 2012/07/30 18:05:12, Alok Priyadarshi wrote: > http://codereview.chromium.org/10787025/diff/25001/content/renderer/gpu/gpu_benchmarking_extension.cc > File content/renderer/gpu/gpu_benchmarking_extension.cc (right): > > http://codereview.chromium.org/10787025/diff/25001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode41 ...
8 years, 4 months ago (2012-07-30 18:29:32 UTC) #22
piman
LGTM after you address Nat's observation. Rather than testing for the presence of the --no-sandbox ...
8 years, 4 months ago (2012-07-30 18:31:59 UTC) #23
nduca
WRT file picker discussion, the main use case of this is from an automation system. ...
8 years, 4 months ago (2012-07-30 18:47:33 UTC) #24
alokp
Off to the trybots. http://codereview.chromium.org/10787025/diff/31001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): http://codereview.chromium.org/10787025/diff/31001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode139 content/renderer/gpu/gpu_benchmarking_extension.cc:139: static v8::Handle<v8::Value> PrintToSkPicture(const v8::Arguments& args) ...
8 years, 4 months ago (2012-07-30 20:24:37 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alokp@chromium.org/10787025/32003
8 years, 4 months ago (2012-07-31 20:39:12 UTC) #26
commit-bot: I haz the power
8 years, 4 months ago (2012-07-31 22:02:22 UTC) #27
Change committed as 149287

Powered by Google App Engine
This is Rietveld 408576698