Chromium Code Reviews| 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 true;//strcmp(ext, "png") == 0 || strcmp(ext, "PNG") == 0; |
|
msarett
2015/03/23 19:40:02
Not planning to commit this.
scroggo
2015/03/23 20:34:50
Even better would be to add "bmp", "BMP", "ico", "
msarett
2015/03/24 13:08:37
Done.
| |
| 150 } | 150 } |
| 151 | 151 |
| 152 static void gather_srcs() { | 152 static void gather_srcs() { |
| 153 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()) { |
| 154 push_src("gm", new GMSrc(r->factory())); | 154 push_src("gm", new GMSrc(r->factory())); |
| 155 } | 155 } |
| 156 for (int i = 0; i < FLAGS_skps.count(); i++) { | 156 for (int i = 0; i < FLAGS_skps.count(); i++) { |
| 157 const char* path = FLAGS_skps[i]; | 157 const char* path = FLAGS_skps[i]; |
| 158 if (sk_isdir(path)) { | 158 if (sk_isdir(path)) { |
| 159 SkOSFile::Iter it(path, "skp"); | 159 SkOSFile::Iter it(path, "skp"); |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 637 } | 637 } |
| 638 return 0; | 638 return 0; |
| 639 } | 639 } |
| 640 | 640 |
| 641 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 641 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 642 int main(int argc, char** argv) { | 642 int main(int argc, char** argv) { |
| 643 SkCommandLineFlags::Parse(argc, argv); | 643 SkCommandLineFlags::Parse(argc, argv); |
| 644 return dm_main(); | 644 return dm_main(); |
| 645 } | 645 } |
| 646 #endif | 646 #endif |
| OLD | NEW |