OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "CrashHandler.h" | 8 #include "CrashHandler.h" |
9 #include "DMJsonWriter.h" | 9 #include "DMJsonWriter.h" |
10 #include "DMSrcSink.h" | 10 #include "DMSrcSink.h" |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 for (SkString file; it.next(&file); ) { | 514 for (SkString file; it.next(&file); ) { |
515 push_src("skp", "", new SKPSrc(SkOSPath::Join(path, file.c_str()
))); | 515 push_src("skp", "", new SKPSrc(SkOSPath::Join(path, file.c_str()
))); |
516 } | 516 } |
517 } else { | 517 } else { |
518 push_src("skp", "", new SKPSrc(path)); | 518 push_src("skp", "", new SKPSrc(path)); |
519 } | 519 } |
520 } | 520 } |
521 static const char* const exts[] = { | 521 static const char* const exts[] = { |
522 "bmp", "gif", "jpg", "jpeg", "png", "webp", "ktx", "astc", "wbmp", "ico"
, | 522 "bmp", "gif", "jpg", "jpeg", "png", "webp", "ktx", "astc", "wbmp", "ico"
, |
523 "BMP", "GIF", "JPG", "JPEG", "PNG", "WEBP", "KTX", "ASTC", "WBMP", "ICO"
, | 523 "BMP", "GIF", "JPG", "JPEG", "PNG", "WEBP", "KTX", "ASTC", "WBMP", "ICO"
, |
| 524 "arw", "cr2", "dng", "nef", "nrw", "orf", "raf", "rw2", "pef", "srw", |
| 525 "ARW", "CR2", "DNG", "NEF", "NRW", "ORF", "RAF", "RW2", "PEF", "SRW", |
524 }; | 526 }; |
525 for (int i = 0; i < FLAGS_images.count(); i++) { | 527 for (int i = 0; i < FLAGS_images.count(); i++) { |
526 const char* flag = FLAGS_images[i]; | 528 const char* flag = FLAGS_images[i]; |
527 if (sk_isdir(flag)) { | 529 if (sk_isdir(flag)) { |
528 for (size_t j = 0; j < SK_ARRAY_COUNT(exts); j++) { | 530 for (size_t j = 0; j < SK_ARRAY_COUNT(exts); j++) { |
529 SkOSFile::Iter it(flag, exts[j]); | 531 SkOSFile::Iter it(flag, exts[j]); |
530 for (SkString file; it.next(&file); ) { | 532 for (SkString file; it.next(&file); ) { |
531 SkString path = SkOSPath::Join(flag, file.c_str()); | 533 SkString path = SkOSPath::Join(flag, file.c_str()); |
532 push_src("image", "decode", new ImageSrc(path)); // Decode e
ntire image | 534 push_src("image", "decode", new ImageSrc(path)); // Decode e
ntire image |
533 push_codec_srcs(path); | 535 push_codec_srcs(path); |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1243 Reporter* reporter, | 1245 Reporter* reporter, |
1244 GrContextFactory* fac
tory); | 1246 GrContextFactory* fac
tory); |
1245 } // namespace skiatest | 1247 } // namespace skiatest |
1246 | 1248 |
1247 #if !defined(SK_BUILD_FOR_IOS) | 1249 #if !defined(SK_BUILD_FOR_IOS) |
1248 int main(int argc, char** argv) { | 1250 int main(int argc, char** argv) { |
1249 SkCommandLineFlags::Parse(argc, argv); | 1251 SkCommandLineFlags::Parse(argc, argv); |
1250 return dm_main(); | 1252 return dm_main(); |
1251 } | 1253 } |
1252 #endif | 1254 #endif |
OLD | NEW |