8#ifndef GrEagerVertexAllocator_DEFINED
9#define GrEagerVertexAllocator_DEFINED
27 virtual void*
lock(
size_t stride,
int eagerCount) = 0;
29 virtual void unlock(
int actualCount) = 0;
34 void*
p = this->
lock(stride, eagerCount);
47 , fVertexBuffer(vertexBuffer)
48 , fBaseVertex(baseVertex) {
58 void*
lock(
size_t stride,
int eagerCount)
final;
61 void unlock(
int actualCount)
final;
66 int*
const fBaseVertex;
78 SkASSERT(!fLockStride && !fVertices && !fVertexData);
82 void*
lock(
size_t stride,
int eagerCount)
override;
83 void unlock(
int actualCount)
override;
90 void* fVertices =
nullptr;
91 size_t fLockStride = 0;
sk_sp< GrThreadSafeCache::VertexData > detachVertexData()
void * lock(size_t stride, int eagerCount) override
GrCpuVertexAllocator()=default
void unlock(int actualCount) override
GrEagerDynamicVertexAllocator(GrMeshDrawTarget *target, sk_sp< const GrBuffer > *vertexBuffer, int *baseVertex)
void * lock(size_t stride, int eagerCount) final
void unlock(int actualCount) final
skgpu::VertexWriter lockWriter(size_t stride, int eagerCount)
virtual void unlock(int actualCount)=0
virtual void * lock(size_t stride, int eagerCount)=0
virtual ~GrEagerVertexAllocator()