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

Side by Side Diff: dm/DM.cpp

Issue 798383003: Add more filetypes to DM's image tests. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add commas Created 6 years 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Main binary for DM. 1 // Main binary for DM.
2 // For a high-level overview, please see dm/README. 2 // For a high-level overview, please see dm/README.
3 3
4 #include "CrashHandler.h" 4 #include "CrashHandler.h"
5 #include "LazyDecodeBitmap.h" 5 #include "LazyDecodeBitmap.h"
6 #include "SkCommonFlags.h" 6 #include "SkCommonFlags.h"
7 #include "SkForceLinking.h" 7 #include "SkForceLinking.h"
8 #include "SkGraphics.h" 8 #include "SkGraphics.h"
9 #include "SkOSFile.h" 9 #include "SkOSFile.h"
10 #include "SkPicture.h" 10 #include "SkPicture.h"
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 243
244 SkTArray<SkString> skps; 244 SkTArray<SkString> skps;
245 if (!FLAGS_skps.isEmpty()) { 245 if (!FLAGS_skps.isEmpty()) {
246 const char* suffixes[] = { "skp" }; 246 const char* suffixes[] = { "skp" };
247 find_files(FLAGS_skps[0], suffixes, SK_ARRAY_COUNT(suffixes), &skps); 247 find_files(FLAGS_skps[0], suffixes, SK_ARRAY_COUNT(suffixes), &skps);
248 } 248 }
249 249
250 SkTArray<SkString> images; 250 SkTArray<SkString> images;
251 if (!FLAGS_images.isEmpty()) { 251 if (!FLAGS_images.isEmpty()) {
252 const char* suffixes[] = { "bmp", "gif", "jpg", "png", "webp", "ktx", "a stc" }; 252 const char* suffixes[] = {
253 "bmp", "gif", "jpg", "jpeg", "png", "webp", "ktx", "astc", "wbmp", " ico",
254 "BMP", "GIF", "JPG", "JPEG", "PNG", "WEBP", "KTX", "ASTC", "WBMP", " ICO",
255 };
253 find_files(FLAGS_images[0], suffixes, SK_ARRAY_COUNT(suffixes), &images) ; 256 find_files(FLAGS_images[0], suffixes, SK_ARRAY_COUNT(suffixes), &images) ;
254 } 257 }
255 258
256 SkDebugf("%d GMs x %d configs, %d tests, %d pictures, %d images\n", 259 SkDebugf("%d GMs x %d configs, %d tests, %d pictures, %d images\n",
257 gms.count(), configs.count(), tests.count(), skps.count(), images.c ount()); 260 gms.count(), configs.count(), tests.count(), skps.count(), images.c ount());
258 DM::Reporter reporter; 261 DM::Reporter reporter;
259 262
260 DM::TaskRunner tasks; 263 DM::TaskRunner tasks;
261 kick_off_tests(tests, &reporter, &tasks); 264 kick_off_tests(tests, &reporter, &tasks);
262 kick_off_gms(gms, configs, gpuAPI, &reporter, &tasks); 265 kick_off_gms(gms, configs, gpuAPI, &reporter, &tasks);
(...skipping 15 matching lines...) Expand all
278 report_failures(failures); 281 report_failures(failures);
279 return failures.count() > 0; 282 return failures.count() > 0;
280 } 283 }
281 284
282 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 285 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
283 int main(int argc, char** argv) { 286 int main(int argc, char** argv) {
284 SkCommandLineFlags::Parse(argc, argv); 287 SkCommandLineFlags::Parse(argc, argv);
285 return dm_main(); 288 return dm_main();
286 } 289 }
287 #endif 290 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698