Go to the source code of this file.
◆ CachedState
◆ LockedState
◆ check_data()
Definition at line 29 of file CachedDataTest.cpp.
30 {
34}
#define REPORTER_ASSERT(r, cond,...)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
◆ DEF_TEST()
Definition at line 81 of file CachedDataTest.cpp.
81 {
83
84 for (int useDiscardable = 0; useDiscardable <= 1; ++useDiscardable) {
85 const size_t size = 100;
86
87
90 data->detachFromCacheAndUnref();
93
94
99 data->detachFromCacheAndUnref();
100 }
101}
static void check_data(skiatest::Reporter *reporter, SkCachedData *data, int refcnt, CachedState cacheState, LockedState lockedState)
static SkCachedData * test_locking(skiatest::Reporter *reporter, size_t size, SkDiscardableMemoryPool *pool)
static sk_sp< SkDiscardableMemoryPool > Make(size_t size)
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
◆ make_data()
Definition at line 36 of file CachedDataTest.cpp.
36 {
39
42 } else {
44 }
45}
#define SkASSERT_RELEASE(cond)
static void * sk_malloc_throw(size_t size)
◆ test_locking()
Definition at line 48 of file CachedDataTest.cpp.
49 {
51
52 memset(
data->writable_data(), 0x80, size);
53
55
60
61 data->attachToCacheAndRef();
63
66
69
71}
static std::unique_ptr< uint32_t[]> make_data()