OLD | NEW |
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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 } | 182 } |
183 } | 183 } |
184 } | 184 } |
185 | 185 |
186 int dm_main(); | 186 int dm_main(); |
187 int dm_main() { | 187 int dm_main() { |
188 SetupCrashHandler(); | 188 SetupCrashHandler(); |
189 SkAutoGraphics ag; | 189 SkAutoGraphics ag; |
190 SkTaskGroup::Enabler enabled(FLAGS_threads); | 190 SkTaskGroup::Enabler enabled(FLAGS_threads); |
191 | 191 |
192 if (FLAGS_dryRun) { | 192 if (FLAGS_dryRun || FLAGS_veryVerbose) { |
193 FLAGS_verbose = true; | 193 FLAGS_verbose = true; |
194 } | 194 } |
195 #if SK_ENABLE_INST_COUNT | 195 #if SK_ENABLE_INST_COUNT |
196 gPrintInstCount = FLAGS_leaks; | 196 gPrintInstCount = FLAGS_leaks; |
197 #endif | 197 #endif |
198 | 198 |
199 SkTArray<SkString> configs; | 199 SkTArray<SkString> configs; |
200 for (int i = 0; i < FLAGS_config.count(); i++) { | 200 for (int i = 0; i < FLAGS_config.count(); i++) { |
201 SkStrSplit(FLAGS_config[i], ", ", &configs); | 201 SkStrSplit(FLAGS_config[i], ", ", &configs); |
202 } | 202 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 report_failures(failures); | 240 report_failures(failures); |
241 return failures.count() > 0; | 241 return failures.count() > 0; |
242 } | 242 } |
243 | 243 |
244 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 244 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
245 int main(int argc, char** argv) { | 245 int main(int argc, char** argv) { |
246 SkCommandLineFlags::Parse(argc, argv); | 246 SkCommandLineFlags::Parse(argc, argv); |
247 return dm_main(); | 247 return dm_main(); |
248 } | 248 } |
249 #endif | 249 #endif |
OLD | NEW |