| OLD | NEW |
| 1 #include "CrashHandler.h" | 1 #include "CrashHandler.h" |
| 2 #include "DMJsonWriter.h" | 2 #include "DMJsonWriter.h" |
| 3 #include "DMSrcSink.h" | 3 #include "DMSrcSink.h" |
| 4 #include "DMSrcSinkAndroid.h" | 4 #include "DMSrcSinkAndroid.h" |
| 5 #include "OverwriteLine.h" | 5 #include "OverwriteLine.h" |
| 6 #include "ProcStats.h" | 6 #include "ProcStats.h" |
| 7 #include "SkBBHFactory.h" | 7 #include "SkBBHFactory.h" |
| 8 #include "SkChecksum.h" | 8 #include "SkChecksum.h" |
| 9 #include "SkCommonFlags.h" | 9 #include "SkCommonFlags.h" |
| 10 #include "SkForceLinking.h" | 10 #include "SkForceLinking.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 !SkCommandLineFlags::ShouldSkip(FLAGS_match, src->name().c_str())) { | 139 !SkCommandLineFlags::ShouldSkip(FLAGS_match, src->name().c_str())) { |
| 140 Tagged<Src>& s = gSrcs.push_back(); | 140 Tagged<Src>& s = gSrcs.push_back(); |
| 141 s.reset(src.detach()); | 141 s.reset(src.detach()); |
| 142 s.tag = tag; | 142 s.tag = tag; |
| 143 } | 143 } |
| 144 } | 144 } |
| 145 | 145 |
| 146 static bool codec_supported(const char* ext) { | 146 static bool codec_supported(const char* ext) { |
| 147 // FIXME: Once other versions of SkCodec are available, we can add them to t
his | 147 // FIXME: Once other versions of SkCodec are available, we can add them to t
his |
| 148 // list (and eventually we can remove this check once they are all supported
). | 148 // list (and eventually we can remove this check once they are all supported
). |
| 149 return strcmp(ext, "png") == 0 || strcmp(ext, "PNG") == 0; | 149 return strcmp(ext, "png") == 0 || strcmp(ext, "PNG") == 0 || |
| 150 strcmp(ext, "bmp") == 0 || strcmp(ext, "BMP") == 0 || |
| 151 strcmp(ext, "ico") == 0 || strcmp(ext, "ICO") == 0; |
| 150 } | 152 } |
| 151 | 153 |
| 152 static void gather_srcs() { | 154 static void gather_srcs() { |
| 153 for (const skiagm::GMRegistry* r = skiagm::GMRegistry::Head(); r; r = r->nex
t()) { | 155 for (const skiagm::GMRegistry* r = skiagm::GMRegistry::Head(); r; r = r->nex
t()) { |
| 154 push_src("gm", new GMSrc(r->factory())); | 156 push_src("gm", new GMSrc(r->factory())); |
| 155 } | 157 } |
| 156 for (int i = 0; i < FLAGS_skps.count(); i++) { | 158 for (int i = 0; i < FLAGS_skps.count(); i++) { |
| 157 const char* path = FLAGS_skps[i]; | 159 const char* path = FLAGS_skps[i]; |
| 158 if (sk_isdir(path)) { | 160 if (sk_isdir(path)) { |
| 159 SkOSFile::Iter it(path, "skp"); | 161 SkOSFile::Iter it(path, "skp"); |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 } | 639 } |
| 638 return 0; | 640 return 0; |
| 639 } | 641 } |
| 640 | 642 |
| 641 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 643 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 642 int main(int argc, char** argv) { | 644 int main(int argc, char** argv) { |
| 643 SkCommandLineFlags::Parse(argc, argv); | 645 SkCommandLineFlags::Parse(argc, argv); |
| 644 return dm_main(); | 646 return dm_main(); |
| 645 } | 647 } |
| 646 #endif | 648 #endif |
| OLD | NEW |