diff options
author | 2012-09-07 15:21:18 +0000 | |
---|---|---|
committer | 2012-09-07 15:21:18 +0000 | |
commit | 9a4125283ad56cea3b986337cb669dde14bf0ed8 (patch) | |
tree | 0ad8f8c8d1eb09df79867d76413e23607dbff264 /tools/render_pictures_main.cpp | |
parent | 2d8edaf17510e50261b8a4e2a0daf7e617674999 (diff) |
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
Review URL: https://codereview.appspot.com/6488086
git-svn-id: http://skia.googlecode.com/svn/trunk@5432 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools/render_pictures_main.cpp')
-rw-r--r-- | tools/render_pictures_main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/render_pictures_main.cpp b/tools/render_pictures_main.cpp index ec0969659e..186a214512 100644 --- a/tools/render_pictures_main.cpp +++ b/tools/render_pictures_main.cpp @@ -104,7 +104,9 @@ static void render_picture(const SkString& inputPath, const SkString& outputDir, renderer.init(&picture); - renderer.render(); + renderer.render(true); + + renderer.resetState(); write_output(outputDir, inputFilename, renderer); |