| OLD | NEW | 
|---|
| 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 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1304 } | 1304 } | 
| 1305 | 1305 | 
| 1306 #undef PORTABLE_FONT_PREFIX | 1306 #undef PORTABLE_FONT_PREFIX | 
| 1307 | 1307 | 
| 1308 extern SkTypeface* (*gCreateTypefaceDelegate)(const char [], SkTypeface::Style )
      ; | 1308 extern SkTypeface* (*gCreateTypefaceDelegate)(const char [], SkTypeface::Style )
      ; | 
| 1309 | 1309 | 
| 1310 int dm_main(); | 1310 int dm_main(); | 
| 1311 int dm_main() { | 1311 int dm_main() { | 
| 1312     setup_crash_handler(); | 1312     setup_crash_handler(); | 
| 1313 | 1313 | 
| 1314     if (FLAGS_verbose && !FLAGS_writePath.isEmpty()) { | 1314     if (!FLAGS_writePath.isEmpty()) { | 
| 1315         sk_mkdir(FLAGS_writePath[0]); | 1315         sk_mkdir(FLAGS_writePath[0]); | 
| 1316         gVLog = freopen(SkOSPath::Join(FLAGS_writePath[0], "verbose.log").c_str(
      ), "w", stderr); | 1316         gVLog = freopen(SkOSPath::Join(FLAGS_writePath[0], "verbose.log").c_str(
      ), "w", stderr); | 
| 1317     } | 1317     } | 
| 1318 | 1318 | 
| 1319     JsonWriter::DumpJson();  // It's handy for the bots to assume this is ~never
       missing. | 1319     JsonWriter::DumpJson();  // It's handy for the bots to assume this is ~never
       missing. | 
| 1320     SkAutoGraphics ag; | 1320     SkAutoGraphics ag; | 
| 1321     SkTaskGroup::Enabler enabled(FLAGS_threads); | 1321     SkTaskGroup::Enabler enabled(FLAGS_threads); | 
| 1322     gCreateTypefaceDelegate = &create_from_name; | 1322     gCreateTypefaceDelegate = &create_from_name; | 
| 1323 | 1323 | 
| 1324     { | 1324     { | 
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1488                                                            Reporter* reporter, | 1488                                                            Reporter* reporter, | 
| 1489                                                            GrContextFactory* fac
      tory); | 1489                                                            GrContextFactory* fac
      tory); | 
| 1490 } // namespace skiatest | 1490 } // namespace skiatest | 
| 1491 | 1491 | 
| 1492 #if !defined(SK_BUILD_FOR_IOS) | 1492 #if !defined(SK_BUILD_FOR_IOS) | 
| 1493 int main(int argc, char** argv) { | 1493 int main(int argc, char** argv) { | 
| 1494     SkCommandLineFlags::Parse(argc, argv); | 1494     SkCommandLineFlags::Parse(argc, argv); | 
| 1495     return dm_main(); | 1495     return dm_main(); | 
| 1496 } | 1496 } | 
| 1497 #endif | 1497 #endif | 
| OLD | NEW | 
|---|