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

Unified Diff: src/ports/SkDebug_stdio.cpp

Issue 12547012: Make GrGLEffects use an interface to append their code. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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 | « src/gpu/gl/GrGLShaderBuilder.cpp ('k') | src/ports/SkDebug_win.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkDebug_stdio.cpp
===================================================================
--- src/ports/SkDebug_stdio.cpp (revision 8005)
+++ src/ports/SkDebug_stdio.cpp (working copy)
@@ -9,16 +9,12 @@
#include "SkTypes.h"
-static const size_t kBufferSize = 2048;
-
#include <stdarg.h>
#include <stdio.h>
void SkDebugf(const char format[], ...) {
- char buffer[kBufferSize + 1];
va_list args;
va_start(args, format);
- vsnprintf(buffer, kBufferSize, format, args);
+ vfprintf(stderr, format, args);
va_end(args);
- fprintf(stderr, "%s", buffer);
}
« no previous file with comments | « src/gpu/gl/GrGLShaderBuilder.cpp ('k') | src/ports/SkDebug_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698