Flutter Engine
The Flutter Engine
|
#include <GrThreadSafeCache.h>
Classes | |
class | Trampoline |
class | VertexData |
Public Types | |
typedef bool(* | IsNewerBetter) (SkData *incumbent, SkData *challenger) |
Static Public Member Functions | |
static sk_sp< VertexData > | MakeVertexData (const void *vertices, int vertexCount, size_t vertexSize) |
static sk_sp< VertexData > | MakeVertexData (sk_sp< GrGpuBuffer > buffer, int vertexCount, size_t vertexSize) |
static std::tuple< GrSurfaceProxyView, sk_sp< Trampoline > > | CreateLazyView (GrDirectContext *, GrColorType, SkISize dimensions, GrSurfaceOrigin, SkBackingFit) |
Public Attributes | |
SkDEBUGCODE(bool has(const skgpu::UniqueKey &) SK_EXCLUDES(fSpinLock);) GrSurfaceProxyView find(const skgpu std::tuple< GrSurfaceProxyView, sk_sp< SkData > > | findWithData (const skgpu::UniqueKey &) SK_EXCLUDES(fSpinLock) |
Definition at line 66 of file GrThreadSafeCache.h.
Definition at line 170 of file GrThreadSafeCache.h.
GrThreadSafeCache::GrThreadSafeCache | ( | ) |
Definition at line 24 of file GrThreadSafeCache.cpp.
GrThreadSafeCache::~GrThreadSafeCache | ( | ) |
Definition at line 28 of file GrThreadSafeCache.cpp.
GrSurfaceProxyView GrThreadSafeCache::add | ( | const skgpu::UniqueKey & | key, |
const GrSurfaceProxyView & | view | ||
) |
Definition at line 212 of file GrThreadSafeCache.cpp.
std::tuple< sk_sp< GrThreadSafeCache::VertexData >, sk_sp< SkData > > GrThreadSafeCache::addVertsWithData | ( | const skgpu::UniqueKey & | key, |
sk_sp< VertexData > | vertData, | ||
IsNewerBetter | isNewerBetter | ||
) |
Definition at line 304 of file GrThreadSafeCache.cpp.
std::tuple< GrSurfaceProxyView, sk_sp< SkData > > GrThreadSafeCache::addWithData | ( | const skgpu::UniqueKey & | key, |
const GrSurfaceProxyView & | view | ||
) |
Definition at line 221 of file GrThreadSafeCache.cpp.
|
static |
Definition at line 325 of file GrThreadSafeCache.cpp.
void GrThreadSafeCache::dropAllRefs | ( | ) |
Definition at line 46 of file GrThreadSafeCache.cpp.
void GrThreadSafeCache::dropUniqueRefs | ( | GrResourceCache * | resourceCache | ) |
Definition at line 59 of file GrThreadSafeCache.cpp.
void GrThreadSafeCache::dropUniqueRefsOlderThan | ( | skgpu::StdSteadyClock::time_point | purgeTime | ) |
Definition at line 82 of file GrThreadSafeCache.cpp.
GrSurfaceProxyView GrThreadSafeCache::findOrAdd | ( | const skgpu::UniqueKey & | key, |
const GrSurfaceProxyView & | v | ||
) |
Definition at line 229 of file GrThreadSafeCache.cpp.
std::tuple< GrSurfaceProxyView, sk_sp< SkData > > GrThreadSafeCache::findOrAddWithData | ( | const skgpu::UniqueKey & | key, |
const GrSurfaceProxyView & | v | ||
) |
Definition at line 243 of file GrThreadSafeCache.cpp.
std::tuple< sk_sp< GrThreadSafeCache::VertexData >, sk_sp< SkData > > GrThreadSafeCache::findVertsWithData | ( | const skgpu::UniqueKey & | key | ) |
Definition at line 280 of file GrThreadSafeCache.cpp.
|
static |
Definition at line 256 of file GrThreadSafeCache.cpp.
|
static |
Definition at line 262 of file GrThreadSafeCache.cpp.
void GrThreadSafeCache::remove | ( | const skgpu::UniqueKey & | key | ) |
Definition at line 313 of file GrThreadSafeCache.cpp.
std::tuple< GrSurfaceProxyView, sk_sp< SkData > > GrThreadSafeCache::findWithData |
Definition at line 90 of file GrThreadSafeCache.h.