Go to the source code of this file.
◆ SK_ABORT
Value: do { \
__FILE__, __LINE__, ##__VA_ARGS__); \
SK_DUMP_GOOGLE3_STACK(); \
sk_abort_no_print(); \
} while (false)
#define SK_DUMP_LINE_FORMAT
Definition at line 70 of file SkAssert.h.
◆ SK_ASSUME
#define SK_ASSUME |
( |
|
cond | ) |
((void)0) |
◆ SK_DUMP_GOOGLE3_STACK
#define SK_DUMP_GOOGLE3_STACK |
( |
| ) |
|
◆ SK_DUMP_LINE_FORMAT
#define SK_DUMP_LINE_FORMAT "%s:%d" |
◆ SK_LIKELY
◆ SK_UNLIKELY
◆ SkASSERT
#define SkASSERT |
( |
|
cond | ) |
static_cast<void>(0) |
◆ SkASSERT_RELEASE
#define SkASSERT_RELEASE |
( |
|
cond | ) |
static_cast<void>( (cond) ? static_cast<void>(0) : []{ SK_ABORT("check(%s)", #cond); }() ) |
◆ SkASSERTF
#define SkASSERTF |
( |
|
cond, |
|
|
|
fmt, |
|
|
|
... |
|
) |
| static_cast<void>(0) |
◆ SkASSERTF_RELEASE
#define SkASSERTF_RELEASE |
( |
|
cond, |
|
|
|
fmt, |
|
|
|
... |
|
) |
| |
Value: static_cast<void>( (cond) \
? static_cast<void>(0) \
: [&]{
SK_ABORT(
"assertf(%s): " fmt, #cond, ##__VA_ARGS__); }() )
#define SK_ABORT(message,...)
static SkString fmt(SkColor4f c)
Definition at line 103 of file SkAssert.h.
◆ SkAssertResult
#define SkAssertResult |
( |
|
cond | ) |
if (cond) {} do {} while(false) |
◆ SkDEBUGFAIL
◆ SkDEBUGFAILF
#define SkDEBUGFAILF |
( |
|
fmt, |
|
|
|
... |
|
) |
| |
◆ SkUNREACHABLE
#define SkUNREACHABLE __builtin_trap() |
◆ check_size_bytes_too_big()
Definition at line 190 of file SkAssert.h.
190 {
192 if (
size > kMaxSize) {
193 #if defined(SK_DEBUG)
195 #else
197 #endif
198 }
200}
SK_API void sk_print_size_too_big(size_t size, size_t maxSize)
static float max(float r, float g, float b)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
◆ sk_abort_no_print()
SK_API void sk_abort_no_print |
( |
void |
| ) |
|
Called internally if we hit an unrecoverable error. The platform implementation must not return, but should either throw an exception or otherwise exit.
Definition at line 56 of file SkMemory_malloc.cpp.
56 {
57#if defined(SK_DEBUG) && defined(SK_BUILD_FOR_WIN)
58 __fastfail(FAST_FAIL_FATAL_APP_EXIT);
59#elif defined(__clang__)
60 __builtin_trap();
61#else
62 abort();
63#endif
64}
◆ sk_collection_check_bounds()
SK_API T sk_collection_check_bounds |
( |
T |
i, |
|
|
T |
size |
|
) |
| |
|
inline |
Definition at line 143 of file SkAssert.h.
143 {
146 }
147
149 #if defined(SK_DEBUG)
151 #else
153 #endif
154 }
155}
SK_API void sk_print_index_out_of_bounds(size_t i, size_t size)
◆ sk_collection_check_length()
SK_API T sk_collection_check_length |
( |
T |
i, |
|
|
T |
size |
|
) |
| |
|
inline |
Definition at line 161 of file SkAssert.h.
161 {
164 }
165
167 #if defined(SK_DEBUG)
169 #else
171 #endif
172 }
173}
SK_API void sk_print_length_too_big(size_t i, size_t size)
◆ sk_collection_not_empty()
SK_API void sk_collection_not_empty |
( |
bool |
empty | ) |
|
|
inline |
Definition at line 175 of file SkAssert.h.
175 {
177 #if defined(SK_DEBUG)
179 #else
181 #endif
182 }
183}
EMSCRIPTEN_KEEPALIVE void empty()
◆ sk_print_index_out_of_bounds()
SK_API void sk_print_index_out_of_bounds |
( |
size_t |
i, |
|
|
size_t |
size |
|
) |
| |
|
inline |
◆ sk_print_length_too_big()
SK_API void sk_print_length_too_big |
( |
size_t |
i, |
|
|
size_t |
size |
|
) |
| |
|
inline |
◆ sk_print_size_too_big()
SK_API void sk_print_size_too_big |
( |
size_t |
size, |
|
|
size_t |
maxSize |
|
) |
| |
|
inline |
Definition at line 185 of file SkAssert.h.
185 {
186 SK_ABORT(
"Size (%zu) can't be represented in bytes. Max size is %zu.\n",
size, maxSize);
187}