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); |