Flutter Engine
The Flutter Engine
|
#include <ProxyCache.h>
Public Types | |
using | BitmapGeneratorContext = const void * |
using | BitmapGeneratorFn = SkBitmap(*)(BitmapGeneratorContext) |
Public Member Functions | |
ProxyCache (uint32_t recorderID) | |
~ProxyCache () | |
sk_sp< TextureProxy > | findOrCreateCachedProxy (Recorder *, const SkBitmap &, std::string_view label) |
sk_sp< TextureProxy > | findOrCreateCachedProxy (Recorder *recorder, const UniqueKey &key, BitmapGeneratorContext context, BitmapGeneratorFn fn, std::string_view label={}) |
void | purgeAll () |
Friends | |
class | ResourceCache |
Definition at line 33 of file ProxyCache.h.
using skgpu::graphite::ProxyCache::BitmapGeneratorContext = const void* |
Definition at line 49 of file ProxyCache.h.
Definition at line 50 of file ProxyCache.h.
skgpu::graphite::ProxyCache::ProxyCache | ( | uint32_t | recorderID | ) |
Definition at line 64 of file ProxyCache.cpp.
skgpu::graphite::ProxyCache::~ProxyCache | ( | ) |
Definition at line 68 of file ProxyCache.cpp.
sk_sp< TextureProxy > skgpu::graphite::ProxyCache::findOrCreateCachedProxy | ( | Recorder * | recorder, |
const SkBitmap & | bitmap, | ||
std::string_view | label | ||
) |
Definition at line 74 of file ProxyCache.cpp.
sk_sp< TextureProxy > skgpu::graphite::ProxyCache::findOrCreateCachedProxy | ( | Recorder * | recorder, |
const UniqueKey & | key, | ||
BitmapGeneratorContext | context, | ||
BitmapGeneratorFn | fn, | ||
std::string_view | label = {} |
||
) |
Definition at line 86 of file ProxyCache.cpp.
void skgpu::graphite::ProxyCache::purgeAll | ( | ) |
Definition at line 120 of file ProxyCache.cpp.
|
friend |
Definition at line 68 of file ProxyCache.h.