Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
src
ports
SkDebug_win.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 2010 Google Inc.
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
#include "
include/private/base/SkDebug.h
"
9
#include "
include/private/base/SkFeatures.h
"
10
11
#if defined(SK_BUILD_FOR_WIN)
12
13
#include "
src/base/SkLeanWindows.h
"
14
15
#include <stdarg.h>
16
#include <
stdio.h
>
17
18
static
const
size_t
kBufferSize
= 2048;
19
20
void
SkDebugf
(
const
char
format
[], ...) {
21
char
buffer
[
kBufferSize
+ 1];
22
va_list
args
;
23
24
va_start
(
args
,
format
);
25
vfprintf(stderr,
format
,
args
);
26
va_end
(
args
);
27
fflush(stderr);
// stderr seems to be buffered on Windows.
28
29
va_start
(
args
,
format
);
30
vsnprintf(
buffer
,
kBufferSize
,
format
,
args
);
31
va_end
(
args
);
32
33
OutputDebugStringA(
buffer
);
34
}
35
#endif
// defined(SK_BUILD_FOR_WIN)
SkDebug.h
SkDebugf
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
SkFeatures.h
SkLeanWindows.h
kBufferSize
static const size_t kBufferSize
Definition
SkString.cpp:27
args
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
Definition
fl_event_channel.h:89
buffer
static const uint8_t buffer[]
Definition
fl_pixel_buffer_texture_test.cc:44
format
uint32_t uint32_t * format
Definition
fl_texture_registrar_test.cc:41
dart::bin::va_start
va_start(args, format)
dart::bin::va_end
va_end(args)
stdio.h
Generated on Fri Apr 26 2024 06:17:24 for Flutter Engine by
1.9.8