16 if (
void*
data = fTarget->
makeVertexSpace(stride, eagerCount, fVertexBuffer, fBaseVertex)) {
18 fLockCount = eagerCount;
21 fVertexBuffer->reset();
31 fVertexBuffer->reset();
39 SkASSERT(!fLockStride && !fVertices && !fVertexData);
49 SkASSERT(fLockStride && fVertices && !fVertexData);
60 SkASSERT(!fLockStride && !fVertices && fVertexData);
62 return std::move(fVertexData);
static void * sk_malloc_throw(size_t size)
SK_API void * sk_realloc_throw(void *buffer, size_t size)
sk_sp< GrThreadSafeCache::VertexData > detachVertexData()
void * lock(size_t stride, int eagerCount) override
void unlock(int actualCount) override
void * lock(size_t stride, int eagerCount) final
void unlock(int actualCount) final
virtual void * makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp< const GrBuffer > *, int *startVertex)=0
virtual void putBackVertices(int vertices, size_t vertexStride)=0
static sk_sp< VertexData > MakeVertexData(const void *vertices, int vertexCount, size_t vertexSize)
std::shared_ptr< const fml::Mapping > data