| 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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   510             for (SkString file; it.next(&file); ) { |   510             for (SkString file; it.next(&file); ) { | 
|   511                 push_src("skp", "", new SKPSrc(SkOSPath::Join(path, file.c_str()
      ))); |   511                 push_src("skp", "", new SKPSrc(SkOSPath::Join(path, file.c_str()
      ))); | 
|   512             } |   512             } | 
|   513         } else { |   513         } else { | 
|   514             push_src("skp", "", new SKPSrc(path)); |   514             push_src("skp", "", new SKPSrc(path)); | 
|   515         } |   515         } | 
|   516     } |   516     } | 
|   517     static const char* const exts[] = { |   517     static const char* const exts[] = { | 
|   518         "bmp", "gif", "jpg", "jpeg", "png", "webp", "ktx", "astc", "wbmp", "ico"
      , |   518         "bmp", "gif", "jpg", "jpeg", "png", "webp", "ktx", "astc", "wbmp", "ico"
      , | 
|   519         "BMP", "GIF", "JPG", "JPEG", "PNG", "WEBP", "KTX", "ASTC", "WBMP", "ICO"
      , |   519         "BMP", "GIF", "JPG", "JPEG", "PNG", "WEBP", "KTX", "ASTC", "WBMP", "ICO"
      , | 
 |   520         "arw", "cr2", "dng", "nef", "nrw", "orf", "raf", "rw2", | 
 |   521         "ARW", "CR2", "DNG", "NEF", "NRW", "ORF", "RAF", "RW2", | 
|   520     }; |   522     }; | 
|   521     for (int i = 0; i < FLAGS_images.count(); i++) { |   523     for (int i = 0; i < FLAGS_images.count(); i++) { | 
|   522         const char* flag = FLAGS_images[i]; |   524         const char* flag = FLAGS_images[i]; | 
|   523         if (sk_isdir(flag)) { |   525         if (sk_isdir(flag)) { | 
|   524             for (size_t j = 0; j < SK_ARRAY_COUNT(exts); j++) { |   526             for (size_t j = 0; j < SK_ARRAY_COUNT(exts); j++) { | 
|   525                 SkOSFile::Iter it(flag, exts[j]); |   527                 SkOSFile::Iter it(flag, exts[j]); | 
|   526                 for (SkString file; it.next(&file); ) { |   528                 for (SkString file; it.next(&file); ) { | 
|   527                     SkString path = SkOSPath::Join(flag, file.c_str()); |   529                     SkString path = SkOSPath::Join(flag, file.c_str()); | 
|   528                     push_src("image", "decode", new ImageSrc(path)); // Decode e
      ntire image |   530                     push_src("image", "decode", new ImageSrc(path)); // Decode e
      ntire image | 
|   529                     push_codec_srcs(path); |   531                     push_codec_srcs(path); | 
| (...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1218                                                            Reporter* reporter, |  1220                                                            Reporter* reporter, | 
|  1219                                                            GrContextFactory* fac
      tory); |  1221                                                            GrContextFactory* fac
      tory); | 
|  1220 } // namespace skiatest |  1222 } // namespace skiatest | 
|  1221  |  1223  | 
|  1222 #if !defined(SK_BUILD_FOR_IOS) |  1224 #if !defined(SK_BUILD_FOR_IOS) | 
|  1223 int main(int argc, char** argv) { |  1225 int main(int argc, char** argv) { | 
|  1224     SkCommandLineFlags::Parse(argc, argv); |  1226     SkCommandLineFlags::Parse(argc, argv); | 
|  1225     return dm_main(); |  1227     return dm_main(); | 
|  1226 } |  1228 } | 
|  1227 #endif |  1229 #endif | 
| OLD | NEW |