Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Side by Side Diff: dm/DM.cpp

Issue 1022843005: Revert of Enabling ico decoding with use of png and bmp decoders (Closed) Base URL: https://skia.googlesource.com/skia.git@swizzle
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | dm/DMSrcSink.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | dm/DMSrcSink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698