#include <SkBitmapCache.h>
Definition at line 43 of file SkBitmapCache.h.
◆ RecPtr
◆ Add()
Definition at line 215 of file SkBitmapCache.cpp.
215 {
217}
static void Add(Rec *, void *payload=nullptr)
◆ Alloc()
Definition at line 187 of file SkBitmapCache.cpp.
188 {
189
192
193 const size_t rb =
info.minRowBytes();
194 size_t size =
info.computeByteSize(rb);
196 return nullptr;
197 }
198
199 std::unique_ptr<SkDiscardableMemory> dm;
200 void* block = nullptr;
201
203 if (factory) {
204 dm.reset(factory(
size));
205 } else {
207 }
208 if (!dm && !block) {
209 return nullptr;
210 }
213}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static void * sk_malloc_canfail(size_t size)
std::unique_ptr< Rec, RecDeleter > RecPtr
static DiscardableFactory GetDiscardableFactory()
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
static bool ByteSizeOverflowed(size_t byteSize)
◆ Find()
Search based on the desc. If found, returns true and result will be set to the matching bitmap with its pixels already locked.
Definition at line 219 of file SkBitmapCache.cpp.
219 {
222}
static bool Finder(const SkResourceCache::Rec &baseRec, void *contextBitmap)
static bool Find(const Key &key, FindVisitor, void *context)
The documentation for this class was generated from the following files: