2
3
4
5
7#ifndef SKIA_CONFIG_SKUSERCONFIG_H_
8#define SKIA_CONFIG_SKUSERCONFIG_H_
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
38
39
40
41
42
43
44
45
50
51
52
53
54
59
60
65
66
67
68
69
75
76
77
81
82
83
87
88
89
90
94
95
96
97
101
111
112
113
114
115
116
117
121
122
123
124
127#include "core/fxcrt/component_export.h"
131#define SK_MSCALAR_IS_FLOAT
132#undef SK_MSCALAR_IS_DOUBLE
134#define GR_MAX_OFFSCREEN_AA_DIM 512
140#if defined(SK_BUILD_FOR_WIN) && !defined(__clang__
)
142#define SkDebugf(...) SkDebugf_FileLineOnly(__FILE__, __LINE__)
143SK_API
void SkDebugf_FileLineOnly(
const char* file,
int line);
145#define SkDebugf(...) SkDebugf_FileLine(__FILE__, __LINE__, __VA_ARGS__)
153#define SK_A32_SHIFT 24
154#define SK_R32_SHIFT 16
155#define SK_G32_SHIFT 8
156#define SK_B32_SHIFT 0
159#if defined(SK_BUILD_FOR_WIN32)
161#define SK_BUILD_FOR_WIN
164#define bzero(str, len) memset(str, 0
, len)
166#elif defined(SK_BUILD_FOR_MAC)
168#define SK_CPU_LENDIAN
171#elif defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID)
176#define SK_USE_FREETYPE_EMBOLDEN
178#if defined(SK_BUILD_FOR_UNIX) && defined(SK_CPU_BENDIAN)
186#error Read the comment at this location
194#ifndef SK_SUPPORT_LEGACY_ANISOTROPIC_MIPMAP_SCALE
195#define SK_SUPPORT_LEGACY_ANISOTROPIC_MIPMAP_SCALE
201
202
203#define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 0
206
207#define SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS
209#define SK_IGNORE_BLURRED_RRECT_OPT
210#define SK_USE_DISCARDABLE_SCALEDIMAGECACHE
211#define SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT
213#define SK_ATTR_DEPRECATED SK_NOTHING_ARG1
214#define SK_ENABLE_INST_COUNT 0
218#define SK_SUPPORT_LEGACY_DIVBITS_UB
222#define SK_SUPPORT_LEGACY_X86_BLITS
224#define SK_DISABLE_TILE_IMAGE_FILTER_OPTIMIZATION
226#if defined(SK_BUILD_FOR_WIN) && !defined(__clang__
)
227#define SK_ABORT(format, ...)
228 SkAbort_FileLine(__FILE__, __LINE__, format, ##__VA_ARGS__)
229[[noreturn]] SK_API
void SkAbort_FileLine(
const char* file,
#define COMPONENT_EXPORT(component)
void SkDebugf_FileLine(const char *file, int line, const char *format,...)