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

Side by Side Diff: dm/DM.cpp

Issue 1922223002: Don't buffer stdout in DM (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1264 } 1264 }
1265 return nullptr; 1265 return nullptr;
1266 } 1266 }
1267 1267
1268 #undef PORTABLE_FONT_PREFIX 1268 #undef PORTABLE_FONT_PREFIX
1269 1269
1270 extern SkTypeface* (*gCreateTypefaceDelegate)(const char [], SkTypeface::Style ) ; 1270 extern SkTypeface* (*gCreateTypefaceDelegate)(const char [], SkTypeface::Style ) ;
1271 1271
1272 int dm_main(); 1272 int dm_main();
1273 int dm_main() { 1273 int dm_main() {
1274 setbuf(stdout, nullptr);
1274 setup_crash_handler(); 1275 setup_crash_handler();
1275 1276
1276 if (FLAGS_verbose) { 1277 if (FLAGS_verbose) {
1277 gVLog = stderr; 1278 gVLog = stderr;
1278 } else if (!FLAGS_writePath.isEmpty()) { 1279 } else if (!FLAGS_writePath.isEmpty()) {
1279 sk_mkdir(FLAGS_writePath[0]); 1280 sk_mkdir(FLAGS_writePath[0]);
1280 gVLog = freopen(SkOSPath::Join(FLAGS_writePath[0], "verbose.log").c_str( ), "w", stderr); 1281 gVLog = freopen(SkOSPath::Join(FLAGS_writePath[0], "verbose.log").c_str( ), "w", stderr);
1281 } 1282 }
1282 1283
1283 JsonWriter::DumpJson(); // It's handy for the bots to assume this is ~never missing. 1284 JsonWriter::DumpJson(); // It's handy for the bots to assume this is ~never missing.
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1418 #endif 1419 #endif
1419 } 1420 }
1420 } // namespace skiatest 1421 } // namespace skiatest
1421 1422
1422 #if !defined(SK_BUILD_FOR_IOS) 1423 #if !defined(SK_BUILD_FOR_IOS)
1423 int main(int argc, char** argv) { 1424 int main(int argc, char** argv) {
1424 SkCommandLineFlags::Parse(argc, argv); 1425 SkCommandLineFlags::Parse(argc, argv);
1425 return dm_main(); 1426 return dm_main();
1426 } 1427 }
1427 #endif 1428 #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