aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-09 15:09:42 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-09 15:09:42 +0000
commitaadb4d9a53d406b4bf40089a10ef94302d21b6bb (patch)
tree9a627fd7349a8f2c6584b7d6b7799286746c2d04 /src/ports
parentdf187c7eb27d7616b75d91f3329deb97c4cd6de2 (diff)
flush after every print in windows
R=djsollen@google.com, reed@google.com, epoger@google.com Author: bsalomon@google.com Review URL: https://codereview.chromium.org/26680004 git-svn-id: http://skia.googlecode.com/svn/trunk@11670 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/ports')
-rw-r--r--src/ports/SkDebug_win.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ports/SkDebug_win.cpp b/src/ports/SkDebug_win.cpp
index e368c9719d..599b133e54 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);