Index: dm/DM.cpp |
diff --git a/dm/DM.cpp b/dm/DM.cpp |
index 56c3b66be00ec6aa29a81dedd6082d44d4acf40a..c4e7d15f8e3be9bd7c790f2fd1c436ff1885f7a1 100644 |
--- a/dm/DM.cpp |
+++ b/dm/DM.cpp |
@@ -72,6 +72,8 @@ DEFINE_int32(shards, 1, "We're splitting source data into this many shards."); |
DEFINE_int32(shard, 0, "Which shard do I run?"); |
DEFINE_bool(simpleCodec, false, "Only decode images to native scale"); |
+DEFINE_string(mskps, "", "Directory to read mskps from, or a single mskp file."); |
+ |
using namespace DM; |
using sk_gpu_test::GrContextFactory; |
using sk_gpu_test::GLTestContext; |
@@ -702,6 +704,19 @@ static bool gather_srcs() { |
} |
} |
+ for (int i = 0; i < FLAGS_mskps.count(); i++) { |
+ const char* path = FLAGS_mskps[i]; |
+ if (sk_isdir(path)) { |
+ SkOSFile::Iter it(path, "mskp"); |
+ for (SkString file; it.next(&file);) { |
+ push_src("mskp", "", |
+ new MSKPSrc(SkOSPath::Join(path, file.c_str()))); |
+ } |
+ } else { |
+ push_src("mskp", "", new MSKPSrc(path)); |
+ } |
+ } |
+ |
SkTArray<SkString> images; |
if (!CollectImages(FLAGS_images, &images)) { |
return false; |