8#ifndef GrMockBuffer_DEFINED
9#define GrMockBuffer_DEFINED
26 std::string_view label)
38 bool onClearToZero()
override {
return true; }
39 bool onUpdateData(
const void*
src,
size_t offset,
size_t size,
bool preserve)
override {
SK_API void sk_free(void *)
static void * sk_malloc_throw(size_t size)
size_t size() const final
GrGpuBuffer(GrGpu *, size_t sizeInBytes, GrGpuBufferType, GrAccessPattern, std::string_view label)
GrAccessPattern accessPattern() const
void registerWithCache(skgpu::Budgeted)
GrMockBuffer(GrMockGpu *gpu, size_t sizeInBytes, GrGpuBufferType type, GrAccessPattern accessPattern, std::string_view label)