Flutter Engine
The Flutter Engine
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
10
11#if defined(SK_BUILD_FOR_WIN)
12
14
15#include <stdarg.h>
16#include <stdio.h>
17
18static const size_t kBufferSize = 2048;
19
20void SkDebugf(const char format[], ...) {
21 char buffer[kBufferSize + 1];
22 va_list args;
23
25 vfprintf(stderr, format, args);
26 va_end(args);
27 fflush(stderr); // stderr seems to be buffered on Windows.
28
30 vsnprintf(buffer, kBufferSize, format, args);
31 va_end(args);
32
33 OutputDebugStringA(buffer);
34}
35#endif // defined(SK_BUILD_FOR_WIN)
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static const size_t kBufferSize
Definition: SkString.cpp:27
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
uint32_t uint32_t * format
va_start(args, format)
va_end(args)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
Definition: switches.h:126