8#ifndef GrCpuBuffer_DEFINED
9#define GrCpuBuffer_DEFINED
24 auto mem = ::operator
new(combinedSize);
29 static void operator delete(
void*
p) { ::operator
delete(
p); }
33 size_t size()
const override {
return fSize; }
36 char*
data() {
return reinterpret_cast<char*
>(fData); }
37 const char*
data()
const {
return reinterpret_cast<const char*
>(fData); }
#define SK_ABORT(message,...)
void ref() const override
const char * data() const
void unref() const override
bool isCpuBuffer() const override
static sk_sp< GrCpuBuffer > Make(size_t size)
size_t size() const override
size_t add(size_t x, size_t y)