| 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; | |
| 152 } | 150 } |
| 153 | 151 |
| 154 static void gather_srcs() { | 152 static void gather_srcs() { |
| 155 for (const skiagm::GMRegistry* r = skiagm::GMRegistry::Head(); r; r = r->nex
t()) { | 153 for (const skiagm::GMRegistry* r = skiagm::GMRegistry::Head(); r; r = r->nex
t()) { |
| 156 push_src("gm", new GMSrc(r->factory())); | 154 push_src("gm", new GMSrc(r->factory())); |
| 157 } | 155 } |
| 158 for (int i = 0; i < FLAGS_skps.count(); i++) { | 156 for (int i = 0; i < FLAGS_skps.count(); i++) { |
| 159 const char* path = FLAGS_skps[i]; | 157 const char* path = FLAGS_skps[i]; |
| 160 if (sk_isdir(path)) { | 158 if (sk_isdir(path)) { |
| 161 SkOSFile::Iter it(path, "skp"); | 159 SkOSFile::Iter it(path, "skp"); |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 } | 637 } |
| 640 return 0; | 638 return 0; |
| 641 } | 639 } |
| 642 | 640 |
| 643 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 641 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 644 int main(int argc, char** argv) { | 642 int main(int argc, char** argv) { |
| 645 SkCommandLineFlags::Parse(argc, argv); | 643 SkCommandLineFlags::Parse(argc, argv); |
| 646 return dm_main(); | 644 return dm_main(); |
| 647 } | 645 } |
| 648 #endif | 646 #endif |
| OLD | NEW |