Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(962)

Issue 6488086: Report data from bench_pictures in the same fashion as bench. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by Leon
Modified:
12 years ago
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Report data from bench_pictures in the same fashion as bench. Move SkBenchLogger into separate files and make bench_pictures use it. Remove sk_tools::print_msg, since SkBenchLogger is now used instead. Combine picture_benchmark with bench_pictures, since that is the only project that uses it. Refactor the aggregator for bench timer data into its own class and make bench_pictures use it. Consolidate the various virtual PictureBenchmark::run functions into one for reuse. BUG=https://code.google.com/p/skia/issues/detail?id=822 Committed: https://code.google.com/p/skia/source/detail?r=5432

Patch Set 1 #

Patch Set 2 : #

Total comments: 15

Patch Set 3 : Respond to comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+509 lines, -461 lines) Patch
A bench/SkBenchLogger.h View 1 chunk +77 lines, -0 lines 0 comments Download
A bench/SkBenchLogger.cpp View 1 chunk +30 lines, -0 lines 0 comments Download
A bench/TimerData.h View 1 chunk +46 lines, -0 lines 0 comments Download
A bench/TimerData.cpp View 1 chunk +108 lines, -0 lines 0 comments Download
M bench/benchmain.cpp View 1 2 8 chunks +13 lines, -136 lines 0 comments Download
M gyp/bench.gypi View 1 1 chunk +5 lines, -0 lines 0 comments Download
M gyp/tools.gyp View 2 chunks +6 lines, -19 lines 0 comments Download
M tools/PictureBenchmark.h View 1 2 4 chunks +37 lines, -27 lines 0 comments Download
M tools/PictureBenchmark.cpp View 1 2 2 chunks +36 lines, -191 lines 0 comments Download
M tools/PictureRenderer.h View 1 2 10 chunks +57 lines, -10 lines 1 comment Download
M tools/PictureRenderer.cpp View 1 2 10 chunks +29 lines, -44 lines 0 comments Download
M tools/bench_pictures_main.cpp View 1 2 16 chunks +62 lines, -21 lines 0 comments Download
M tools/picture_utils.h View 1 chunk +0 lines, -5 lines 0 comments Download
M tools/picture_utils.cpp View 1 chunk +0 lines, -7 lines 0 comments Download
M tools/render_pictures_main.cpp View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 9
Leon
12 years ago (2012-09-05 21:01:03 UTC) #1
EricB
+reed@, +bsalomon@, since I'm not very familiar with this code. Looks good overall, with a ...
12 years ago (2012-09-06 12:36:14 UTC) #2
bsalomon
I think Ben is familiar with bench logging and Rob just recently worked on GPU ...
12 years ago (2012-09-06 12:56:59 UTC) #3
robertphillips
I am a bit worried about the loss of the glFinish calls. https://codereview.appspot.com/6488086/diff/2001/bench/benchmain.cpp File bench/benchmain.cpp ...
12 years ago (2012-09-06 13:24:44 UTC) #4
bsalomon
https://codereview.appspot.com/6488086/diff/2001/tools/PictureRenderer.cpp File tools/PictureRenderer.cpp (right): https://codereview.appspot.com/6488086/diff/2001/tools/PictureRenderer.cpp#newcode136 tools/PictureRenderer.cpp:136: writer.endRecording(); On 2012/09/06 13:24:45, robertphillips wrote: > I think ...
12 years ago (2012-09-06 13:31:52 UTC) #5
robertphillips
Okay - I missed the glFinish call in resetState.
12 years ago (2012-09-06 13:36:54 UTC) #6
Leon
https://codereview.appspot.com/6488086/diff/2001/bench/benchmain.cpp File bench/benchmain.cpp (right): https://codereview.appspot.com/6488086/diff/2001/bench/benchmain.cpp#newcode355 bench/benchmain.cpp:355: " [-match name] [-mode normal|deferred|record|picturerecord]\n" On 2012/09/06 13:24:45, robertphillips ...
12 years ago (2012-09-06 18:44:22 UTC) #7
EricB
On 2012/09/06 18:44:22, scroggo-work wrote: > https://codereview.appspot.com/6488086/diff/2001/bench/benchmain.cpp > File bench/benchmain.cpp (right): > > https://codereview.appspot.com/6488086/diff/2001/bench/benchmain.cpp#newcode355 > ...
12 years ago (2012-09-06 19:36:36 UTC) #8
bsalomon
12 years ago (2012-09-06 20:14:12 UTC) #9
LGTM

https://codereview.appspot.com/6488086/diff/19/tools/PictureRenderer.h
File tools/PictureRenderer.h (right):

https://codereview.appspot.com/6488086/diff/19/tools/PictureRenderer.h#newcode53
tools/PictureRenderer.h:53: virtual void render(bool
doExtraWorkToDrawToBaseCanvas) = 0;
You know it's ok to be verbose with your parameter names. Please don't hold
back.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b