| OLD | NEW |
| (Empty) |
| 1 /* libs/corecg/SkDebug_brew.cpp | |
| 2 * | |
| 3 * Copyright 2009, The Android Open Source Project | |
| 4 * Copyright 2009, Company 100, Inc. | |
| 5 * | |
| 6 * Use of this source code is governed by a BSD-style license that can be | |
| 7 * found in the LICENSE file. | |
| 8 */ | |
| 9 | |
| 10 #include "SkTypes.h" | |
| 11 | |
| 12 #ifdef SK_BUILD_FOR_BREW | |
| 13 | |
| 14 static const size_t kBufferSize = 256; | |
| 15 | |
| 16 #include <AEEStdLib.h> | |
| 17 #include <stdarg.h> | |
| 18 | |
| 19 void SkDebugf(const char format[], ...) { | |
| 20 char buffer[kBufferSize + 1]; | |
| 21 va_list args; | |
| 22 va_start(args, format); | |
| 23 VSNPRINTF(buffer, kBufferSize, format, args); | |
| 24 va_end(args); | |
| 25 DBGPRINTF(buffer); | |
| 26 } | |
| 27 | |
| 28 #endif SK_BUILD_FOR_BREW | |
| OLD | NEW |