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

Side by Side Diff: src/ports/SkDebug_brew.cpp

Issue 15941025: Add SkData::NewFromFD. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Remove an indentation level. Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/core/SkData.cpp ('k') | src/ports/SkMemory_brew.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « src/core/SkData.cpp ('k') | src/ports/SkMemory_brew.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698