diff options
author | msarett <msarett@google.com> | 2016-04-29 09:38:40 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-29 09:38:40 -0700 |
commit | 69deca8d1e57daec540f8a7f10d9c660b640b9a9 (patch) | |
tree | dbf8b6d316f6d0f49373870692ca6e442630b74e /tools/flags/SkCommonFlags.cpp | |
parent | 1b5dd884546d35ff0909168cbfeafd7f53225a97 (diff) |
Add ColorCodecSrc for testing/comparison on color corrected decodes
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1933753002
Review-Url: https://codereview.chromium.org/1933753002
Diffstat (limited to 'tools/flags/SkCommonFlags.cpp')
-rw-r--r-- | tools/flags/SkCommonFlags.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/flags/SkCommonFlags.cpp b/tools/flags/SkCommonFlags.cpp index eb2075c58a..1caffd54d6 100644 --- a/tools/flags/SkCommonFlags.cpp +++ b/tools/flags/SkCommonFlags.cpp @@ -18,6 +18,9 @@ DEFINE_bool(gpu, true, "master switch for running GPU-bound work."); DEFINE_string(images, "", "List of images and/or directories to decode. A directory with no images" " is treated as a fatal error."); +DEFINE_string(colorImages, "", "List of images and/or directories to decode with color correction. " + "A directory with no images is treated as a fatal error."); + DEFINE_string2(match, m, nullptr, "[~][^]substring[$] [...] of GM name to run.\n" "Multiple matches may be separated by spaces.\n" @@ -55,7 +58,7 @@ DEFINE_string(properties, "", "Space-separated key/value pairs to add to JSON identifying this run."); DEFINE_bool2(pre_log, p, false, "Log before running each test. May be incomprehensible when threading"); -bool CollectImages(SkTArray<SkString>* output) { +bool CollectImages(SkCommandLineFlags::StringArray images, SkTArray<SkString>* output) { SkASSERT(output); static const char* const exts[] = { @@ -67,8 +70,8 @@ bool CollectImages(SkTArray<SkString>* output) { #endif }; - for (int i = 0; i < FLAGS_images.count(); ++i) { - const char* flag = FLAGS_images[i]; + for (int i = 0; i < images.count(); ++i) { + const char* flag = images[i]; if (!sk_exists(flag)) { SkDebugf("%s does not exist!\n", flag); return false; |