Go to the source code of this file.
◆ SK_DEFAULT_IMAGE_CACHE_LIMIT
#define SK_DEFAULT_IMAGE_CACHE_LIMIT (32 * 1024 * 1024) |
◆ SK_DISCARDABLEMEMORY_SCALEDIMAGECACHE_COUNT_LIMIT
#define SK_DISCARDABLEMEMORY_SCALEDIMAGECACHE_COUNT_LIMIT 1024 |
◆ dump_visitor()
Definition at line 591 of file SkResourceCache.cpp.
591 {
592 SkDebugf(
"RC: %12s bytes %9zu discardable %p\n",
594}
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
virtual const char * getCategory() const =0
virtual SkDiscardableMemory * diagnostic_only_getDiscardable() const
virtual size_t bytesUsed() const =0
◆ get_cache()
Must hold resource_cache_mutex() when calling.
Definition at line 473 of file SkResourceCache.cpp.
473 {
474
477#ifdef SK_USE_DISCARDABLE_SCALEDIMAGECACHE
479#else
481#endif
482 }
484}
static SkMutex & resource_cache_mutex()
static SkResourceCache * gResourceCache
#define SK_DEFAULT_IMAGE_CACHE_LIMIT
static SkDiscardableMemory * Create(size_t bytes)
◆ make_size_str()
static void make_size_str |
( |
size_t |
size, |
|
|
SkString * |
str |
|
) |
| |
|
static |
Definition at line 145 of file SkResourceCache.cpp.
145 {
146 const char suffix[] = {
'b',
'k',
'm',
'g',
't', 0 };
151 }
153}
void printf(const char format[],...) SK_PRINTF_LIKE(2
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
◆ resource_cache_mutex()
static SkMutex & resource_cache_mutex |
( |
| ) |
|
|
static |
Definition at line 467 of file SkResourceCache.cpp.
467 {
468 static SkMutex& mutex = *(new SkMutex);
469 return mutex;
470}
◆ sk_trace_dump_visitor()
Definition at line 600 of file SkResourceCache.cpp.
600 {
604 if (discardable) {
605 dump->setDiscardableMemoryBacking(dumpName.
c_str(), *discardable);
606
607
608
609 dump->dumpNumericValue(dumpName.
c_str(),
"discardable_size",
"bytes", rec.
bytesUsed());
610 } else {
612 dump->setMemoryBacking(dumpName.
c_str(),
"malloc",
nullptr);
613 }
614}
SK_API SkString SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.
static void dump(const float m[20], SkYUVColorSpace cs, bool rgb2yuv)
const char * c_str() const
◆ SkShouldPostMessageToBus()
◆ gDumpCacheTransactions
bool gDumpCacheTransactions |
|
static |
◆ gResourceCache