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

Side by Side Diff: tools/flags/SkCommonFlags.cpp

Issue 2393643002: Resubmit issue 2221103002 to fix the iOS build by declaring the flag in (Closed)
Patch Set: Created 4 years, 2 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 | « tools/flags/SkCommonFlags.h ('k') | 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 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 "SkCommonFlags.h" 8 #include "SkCommonFlags.h"
9 #include "SkOSFile.h" 9 #include "SkOSFile.h"
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 DEFINE_bool2(veryVerbose, V, false, "tell individual tests to be verbose."); 58 DEFINE_bool2(veryVerbose, V, false, "tell individual tests to be verbose.");
59 59
60 DEFINE_string2(writePath, w, "", "If set, write bitmaps here as .pngs."); 60 DEFINE_string2(writePath, w, "", "If set, write bitmaps here as .pngs.");
61 61
62 DEFINE_string(key, "", 62 DEFINE_string(key, "",
63 "Space-separated key/value pairs to add to JSON identifying this b uilder."); 63 "Space-separated key/value pairs to add to JSON identifying this b uilder.");
64 DEFINE_string(properties, "", 64 DEFINE_string(properties, "",
65 "Space-separated key/value pairs to add to JSON identifying this r un."); 65 "Space-separated key/value pairs to add to JSON identifying this r un.");
66 DEFINE_bool2(pre_log, p, false, "Log before running each test. May be incomprehe nsible when threading"); 66 DEFINE_bool2(pre_log, p, false, "Log before running each test. May be incomprehe nsible when threading");
67 67
68 DEFINE_bool(analyticAA, false, "Analytic Anati-Alias");
69
68 bool CollectImages(SkCommandLineFlags::StringArray images, SkTArray<SkString>* o utput) { 70 bool CollectImages(SkCommandLineFlags::StringArray images, SkTArray<SkString>* o utput) {
69 SkASSERT(output); 71 SkASSERT(output);
70 72
71 static const char* const exts[] = { 73 static const char* const exts[] = {
72 "bmp", "gif", "jpg", "jpeg", "png", "webp", "ktx", "astc", "wbmp", "ico" , 74 "bmp", "gif", "jpg", "jpeg", "png", "webp", "ktx", "astc", "wbmp", "ico" ,
73 "BMP", "GIF", "JPG", "JPEG", "PNG", "WEBP", "KTX", "ASTC", "WBMP", "ICO" , 75 "BMP", "GIF", "JPG", "JPEG", "PNG", "WEBP", "KTX", "ASTC", "WBMP", "ICO" ,
74 #ifdef SK_CODEC_DECODES_RAW 76 #ifdef SK_CODEC_DECODES_RAW
75 "arw", "cr2", "dng", "nef", "nrw", "orf", "raf", "rw2", "pef", "srw", 77 "arw", "cr2", "dng", "nef", "nrw", "orf", "raf", "rw2", "pef", "srw",
76 "ARW", "CR2", "DNG", "NEF", "NRW", "ORF", "RAF", "RW2", "PEF", "SRW", 78 "ARW", "CR2", "DNG", "NEF", "NRW", "ORF", "RAF", "RW2", "PEF", "SRW",
77 #endif 79 #endif
(...skipping 21 matching lines...) Expand all
99 SkDebugf("No supported images found in %s!\n", flag); 101 SkDebugf("No supported images found in %s!\n", flag);
100 return false; 102 return false;
101 } 103 }
102 } else { 104 } else {
103 // Also add the value if it is a single image 105 // Also add the value if it is a single image
104 output->push_back() = flag; 106 output->push_back() = flag;
105 } 107 }
106 } 108 }
107 return true; 109 return true;
108 } 110 }
OLDNEW
« no previous file with comments | « tools/flags/SkCommonFlags.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698