Home
last modified time | relevance | path

Searched refs:GrCpuBuffer (Results 1 – 6 of 6) sorted by relevance

/external/skia/src/gpu/
DGrCpuBuffer.h14 class GrCpuBuffer final : public GrNonAtomicRef<GrCpuBuffer>, public GrBuffer {
16 static sk_sp<GrCpuBuffer> Make(size_t size) { in Make()
18 auto mem = ::operator new(sizeof(GrCpuBuffer) + size); in Make()
19 return sk_sp<GrCpuBuffer>(new (mem) GrCpuBuffer((char*)mem + sizeof(GrCpuBuffer), size)); in Make()
22 void ref() const override { GrNonAtomicRef<GrCpuBuffer>::ref(); } in ref()
23 void unref() const override { GrNonAtomicRef<GrCpuBuffer>::unref(); } in unref()
31 GrCpuBuffer(void* data, size_t size) : fData(data), fSize(size) {} in GrCpuBuffer() function
DGrBufferAllocPool.h45 sk_sp<GrCpuBuffer> makeBuffer(size_t size, bool mustBeInitialized);
52 sk_sp<GrCpuBuffer> fBuffer;
162 sk_sp<GrCpuBuffer> fCpuStagingBuffer;
DGrBufferAllocPool.cpp33 sk_sp<GrCpuBuffer> GrBufferAllocPool::CpuBufferCache::makeBuffer(size_t size, in makeBuffer()
46 fBuffers[i].fBuffer = GrCpuBuffer::Make(size); in makeBuffer()
52 tempResult.fBuffer = GrCpuBuffer::Make(size); in makeBuffer()
361 fBufferPtr = static_cast<GrCpuBuffer*>(block.fBuffer.get())->data(); in createBlock()
398 : GrCpuBuffer::Make(newSize); in resetCpuData()
429 : GrCpuBuffer::Make(size); in getBuffer()
/external/skia/src/gpu/gl/
DGrGLVertexArray.cpp100 offsetAsPtr = static_cast<const GrCpuBuffer*>(vertexBuffer)->data() + offsetInBytes; in set()
DGrGLGpu.cpp2656 return static_cast<const GrCpuBuffer*>(indexBuffer)->data() + baseOffset; in element_ptr()
/external/skia/gn/
Dgpu.gni85 "$_src/gpu/GrCpuBuffer.h",