Flutter Engine
The Flutter Engine
|
#include <MemoryCache.h>
Public Member Functions | |
MemoryCache ()=default | |
MemoryCache (const MemoryCache &)=delete | |
MemoryCache & | operator= (const MemoryCache &)=delete |
void | reset () |
sk_sp< SkData > | load (const SkData &key) override |
void | store (const SkData &key, const SkData &data, const SkString &description) override |
int | numCacheMisses () const |
int | numCacheStores () const |
void | resetCacheStats () |
void | writeShadersToDisk (const char *path, GrBackendApi backend) |
template<typename Fn > | |
void | foreach (Fn &&fn) |
Public Member Functions inherited from GrContextOptions::PersistentCache | |
virtual | ~PersistentCache ()=default |
virtual sk_sp< SkData > | load (const SkData &key)=0 |
virtual void | store (const SkData &, const SkData &) |
virtual void | store (const SkData &key, const SkData &data, const SkString &) |
Additional Inherited Members | |
Protected Member Functions inherited from GrContextOptions::PersistentCache | |
PersistentCache ()=default | |
PersistentCache (const PersistentCache &)=delete | |
PersistentCache & | operator= (const PersistentCache &)=delete |
This class can be used to maintain an in memory record of all programs cached by GrContext. It can be shared by multiple GrContexts so long as those GrContexts are created with the same options and will have the same GrCaps (e.g. same backend, same GL context creation parameters, ...).
Definition at line 25 of file MemoryCache.h.
|
default |
|
delete |
|
inline |
Definition at line 47 of file MemoryCache.h.
Returns the data for the key if it exists in the cache, otherwise returns null.
Implements GrContextOptions::PersistentCache.
Definition at line 39 of file MemoryCache.cpp.
|
inline |
Definition at line 37 of file MemoryCache.h.
|
inline |
Definition at line 38 of file MemoryCache.h.
|
delete |
|
inline |
Definition at line 30 of file MemoryCache.h.
|
inline |
Definition at line 39 of file MemoryCache.h.
|
overridevirtual |
Stores data in the cache, indexed by key. description provides a human-readable version of the key.
Reimplemented from GrContextOptions::PersistentCache.
Definition at line 56 of file MemoryCache.cpp.
void sk_gpu_test::MemoryCache::writeShadersToDisk | ( | const char * | path, |
GrBackendApi | backend | ||
) |
Definition at line 65 of file MemoryCache.cpp.