diff options
author | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-02 22:01:26 +0000 |
---|---|---|
committer | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-02 22:01:26 +0000 |
commit | 0a049b861e18c9c1ede865b8acbcbedc3dd10b43 (patch) | |
tree | 2304243afad4569f29b95c5260c61c108596aabe /tools/PictureBenchmark.cpp | |
parent | 17fc651dbe2e0624f6c85fb6e081d28a87d5a08b (diff) |
Make bench_pictures output a meaningful config name.
Review URL: https://codereview.appspot.com/6813074
git-svn-id: http://skia.googlecode.com/svn/trunk@6288 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools/PictureBenchmark.cpp')
-rw-r--r-- | tools/PictureBenchmark.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/PictureBenchmark.cpp b/tools/PictureBenchmark.cpp index fbf1585d1e..ca7795f7b7 100644 --- a/tools/PictureBenchmark.cpp +++ b/tools/PictureBenchmark.cpp @@ -95,9 +95,9 @@ void PictureBenchmark::run(SkPicture* pict) { timerData.appendTimes(timer, fRepeats - 1 == i); } - const char* configName = usingGpu ? "gpu" : "raster"; + SkString configName = fRenderer->getConfigName(); SkString result = timerData.getResult(fLogPerIter, fPrintMin, fRepeats, - configName, fShowWallTime, fShowTruncatedWallTime, + configName.c_str(), fShowWallTime, fShowTruncatedWallTime, fShowCpuTime, fShowTruncatedCpuTime, usingGpu && fShowGpuTime); result.append("\n"); |