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

Unified Diff: src/ports/SkDebug_win.cpp

Issue 26680004: flush after every print in windows (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: bench and gm prints Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/gm_expectations.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkDebug_win.cpp
diff --git a/src/ports/SkDebug_win.cpp b/src/ports/SkDebug_win.cpp
index e368c9719d41daf0974f33d4ce52899af4d3f8c7..599b133e54eec6f0a86e531ac1366d78b02db727 100644
--- a/src/ports/SkDebug_win.cpp
+++ b/src/ports/SkDebug_win.cpp
@@ -23,6 +23,9 @@ void SkDebugf(const char format[], ...) {
va_start(args, format);
vprintf(format, args);
va_end(args);
+ // When we crash on Windows we often are missing a lot of prints. Since we don't really care
+ // about SkDebugf performance we flush after every print.
+ fflush(stdout);
va_start(args, format);
vsnprintf(buffer, kBufferSize, format, args);
« no previous file with comments | « gm/gm_expectations.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698