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

Side by Side Diff: dm/DM.cpp

Issue 1006583005: SkCodec: add wbmp class (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-03-27 (Friday) 10:53:14 EDT Created 5 years, 8 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 | gyp/codec.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 s.reset(src.detach()); 148 s.reset(src.detach());
149 s.tag = tag; 149 s.tag = tag;
150 } 150 }
151 } 151 }
152 152
153 static bool codec_supported(const char* ext) { 153 static bool codec_supported(const char* ext) {
154 // FIXME: Once other versions of SkCodec are available, we can add them to t his 154 // FIXME: Once other versions of SkCodec are available, we can add them to t his
155 // list (and eventually we can remove this check once they are all supported ). 155 // list (and eventually we can remove this check once they are all supported ).
156 return strcmp(ext, "png") == 0 || strcmp(ext, "PNG") == 0 || 156 return strcmp(ext, "png") == 0 || strcmp(ext, "PNG") == 0 ||
157 strcmp(ext, "bmp") == 0 || strcmp(ext, "BMP") == 0 || 157 strcmp(ext, "bmp") == 0 || strcmp(ext, "BMP") == 0 ||
158 strcmp(ext, "ico") == 0 || strcmp(ext, "ICO") == 0; 158 strcmp(ext, "ico") == 0 || strcmp(ext, "ICO") == 0 ||
159 strcmp(ext, "wbmp") == 0 || strcmp(ext, "WBMP") == 0;
159 } 160 }
160 161
161 static void gather_srcs() { 162 static void gather_srcs() {
162 for (const skiagm::GMRegistry* r = skiagm::GMRegistry::Head(); r; r = r->nex t()) { 163 for (const skiagm::GMRegistry* r = skiagm::GMRegistry::Head(); r; r = r->nex t()) {
163 push_src("gm", new GMSrc(r->factory())); 164 push_src("gm", new GMSrc(r->factory()));
164 } 165 }
165 for (int i = 0; i < FLAGS_skps.count(); i++) { 166 for (int i = 0; i < FLAGS_skps.count(); i++) {
166 const char* path = FLAGS_skps[i]; 167 const char* path = FLAGS_skps[i];
167 if (sk_isdir(path)) { 168 if (sk_isdir(path)) {
168 SkOSFile::Iter it(path, "skp"); 169 SkOSFile::Iter it(path, "skp");
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 } 649 }
649 return 0; 650 return 0;
650 } 651 }
651 652
652 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 653 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
653 int main(int argc, char** argv) { 654 int main(int argc, char** argv) {
654 SkCommandLineFlags::Parse(argc, argv); 655 SkCommandLineFlags::Parse(argc, argv);
655 return dm_main(); 656 return dm_main();
656 } 657 }
657 #endif 658 #endif
OLDNEW
« no previous file with comments | « no previous file | gyp/codec.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698