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

Side by Side Diff: dm/DM.cpp

Issue 1813933002: just write the verbose log file any time we have a --writePath (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 | 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 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
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
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
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