8#ifndef GrGLBuffer_DEFINED
9#define GrGLBuffer_DEFINED
39 std::string_view label);
44 const SkString& dumpName)
const override;
52 bool onClearToZero()
override;
53 bool onUpdateData(
const void*
src,
size_t offset,
size_t size,
bool preserve)
override;
55 void onSetLabel()
override;
60 bool fHasAttachedToTexture;
static sk_sp< GrGLBuffer > Make(GrGLGpu *, size_t size, GrGpuBufferType intendedType, GrAccessPattern)
void onAbandon() override
void setMemoryBacking(SkTraceMemoryDump *traceMemoryDump, const SkString &dumpName) const override
void setHasAttachedToTexture()
GrGLuint bufferID() const
bool hasAttachedToTexture() const
void onRelease() override
GrGLBuffer(GrGLGpu *, size_t size, GrGpuBufferType intendedType, GrAccessPattern, std::string_view label)
size_t size() const final
GrGpuBuffer(GrGpu *, size_t sizeInBytes, GrGpuBufferType, GrAccessPattern, std::string_view label)
GrGpuBufferType intendedType() const