Flutter Engine
The Flutter Engine
|
#include <GrContextOptions.h>
Public Member Functions | |
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 &) |
Protected Member Functions | |
PersistentCache ()=default | |
PersistentCache (const PersistentCache &)=delete | |
PersistentCache & | operator= (const PersistentCache &)=delete |
Abstract class which stores Skia data in a cache that persists between sessions. Currently, Skia stores compiled shader binaries (only when glProgramBinary / glGetProgramBinary are supported) when provided a persistent cache, but this may extend to other data in the future.
Definition at line 46 of file GrContextOptions.h.
|
virtualdefault |
Reimplemented in flutter::PersistentCache.
|
protecteddefault |
|
protecteddelete |
Returns the data for the key if it exists in the cache, otherwise returns null.
Implemented in flutter::PersistentCache, and sk_gpu_test::MemoryCache.
|
protecteddelete |
|
inlinevirtual |
Definition at line 57 of file GrContextOptions.h.
|
inlinevirtual |
Stores data in the cache, indexed by key. description provides a human-readable version of the key.
Reimplemented in sk_gpu_test::MemoryCache.
Definition at line 63 of file GrContextOptions.h.