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

Unified Diff: gm/gm_expectations.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 | « bench/SkBenchLogger.h ('k') | src/ports/SkDebug_win.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/gm_expectations.cpp
diff --git a/gm/gm_expectations.cpp b/gm/gm_expectations.cpp
index 7d6ccf64642817f173cef29cc7ec381c412fcea1..63aa638aac58de2ff952666041e68601a40e76b8 100644
--- a/gm/gm_expectations.cpp
+++ b/gm/gm_expectations.cpp
@@ -34,6 +34,11 @@ namespace skiagm {
va_start(args, format);
fprintf(stream, "GM: ");
vfprintf(stream, format, args);
+#ifdef SK_BUILD_FOR_WIN
+ if (stderr == stream || stdout == stream) {
+ fflush(stream);
+ }
+#endif
va_end(args);
}
« no previous file with comments | « bench/SkBenchLogger.h ('k') | src/ports/SkDebug_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698