diff options
author | 2016-06-02 12:41:14 -0700 | |
---|---|---|
committer | 2016-06-02 12:41:14 -0700 | |
commit | 45420a945cfce1b83da954ab5fcb63516f646c0f (patch) | |
tree | a05e2ac95d4425ae9d945c2f2490a78439a03d4f /dm/DM.cpp | |
parent | fbce71f1ae2ff05adc584f2f0433435c93987e13 (diff) |
SkMultiPictureDocument & SkMultiPictureDocumentReader
also, a new DM::Src.
motivation: To be used to test the printing pipeline in Chromium.
BUG=skia:5370
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2023593002
Review-Url: https://codereview.chromium.org/2023593002
Diffstat (limited to 'dm/DM.cpp')
-rw-r--r-- | dm/DM.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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; |