Chromium Code Reviews| Index: tools/bench_pictures_main.cpp |
| diff --git a/tools/bench_pictures_main.cpp b/tools/bench_pictures_main.cpp |
| index 503269af6a7c8a3e3bfb5388eb6de6c8c4782293..ec35b25dd91e89a17c8c7dd4538d357e046e8185 100644 |
| --- a/tools/bench_pictures_main.cpp |
| +++ b/tools/bench_pictures_main.cpp |
| @@ -57,6 +57,14 @@ DEFINE_bool(trackDeferredCaching, false, "Only meaningful with --deferImageDecod |
| DEFINE_bool(preprocess, false, "If true, perform device specific preprocessing before timing."); |
| +// Buildbot-specific parameters |
| +DEFINE_string(builderName, "", "Name of the builder this is running on."); |
| +DEFINE_int32(buildNumber, -1, "Build number of the build this test is running on"); |
| +DEFINE_int32(timestamp, 0, "Timestamp of the revision of Skia being tested."); |
| +DEFINE_string(gitHash, "", "Commit hash of the revision of Skia being run."); |
| +DEFINE_int32(gitNumber, -1, "Git number of the revision of Skia being run."); |
| + |
| + |
| static char const * const gFilterTypes[] = { |
| "paint", |
| "point", |
| @@ -421,7 +429,15 @@ int tool_main(int argc, char** argv) { |
| SkAutoTDelete<PictureJSONResultsWriter> jsonWriter; |
| if (FLAGS_jsonLog.count() == 1) { |
|
robertphillips
2014/06/24 20:49:52
one line ?
kelvinly
2014/06/24 22:25:19
Done.
|
| - jsonWriter.reset(SkNEW(PictureJSONResultsWriter(FLAGS_jsonLog[0]))); |
| + SkASSERT(FLAGS_builderName.count() == 1 && |
| + FLAGS_gitHash.count() == 1); |
| + jsonWriter.reset(SkNEW(PictureJSONResultsWriter( |
| + FLAGS_jsonLog[0], |
| + FLAGS_builderName[0], |
| + FLAGS_buildNumber, |
| + FLAGS_timestamp, |
| + FLAGS_gitHash[0], |
| + FLAGS_gitNumber))); |
| gWriter.add(jsonWriter.get()); |
| } |