Searched refs:GrCpuBuffer (Results 1 – 8 of 8) sorted by relevance
15 class GrCpuBuffer final : public GrNonAtomicRef<GrCpuBuffer>, public GrBuffer {17 static sk_sp<GrCpuBuffer> Make(size_t size) { in Make()20 size_t combinedSize = sm.add(sizeof(GrCpuBuffer), size); in Make()25 return sk_sp<GrCpuBuffer>(new (mem) GrCpuBuffer((char*)mem + sizeof(GrCpuBuffer), size)); in Make()31 void ref() const override { GrNonAtomicRef<GrCpuBuffer>::ref(); } in ref()32 void unref() const override { GrNonAtomicRef<GrCpuBuffer>::unref(); } in unref()40 GrCpuBuffer(void* data, size_t size) : fData(data), fSize(size) {} in GrCpuBuffer() function
46 sk_sp<GrCpuBuffer> makeBuffer(size_t size, bool mustBeInitialized);53 sk_sp<GrCpuBuffer> fBuffer;163 sk_sp<GrCpuBuffer> fCpuStagingBuffer;
35 sk_sp<GrCpuBuffer> GrBufferAllocPool::CpuBufferCache::makeBuffer(size_t size, in makeBuffer()48 fBuffers[i].fBuffer = GrCpuBuffer::Make(size); in makeBuffer()54 tempResult.fBuffer = GrCpuBuffer::Make(size); in makeBuffer()347 fBufferPtr = static_cast<GrCpuBuffer*>(block.fBuffer.get())->data(); in createBlock()384 : GrCpuBuffer::Make(newSize); in resetCpuData()417 : GrCpuBuffer::Make(size); in getBuffer()
286 auto* cpuIndirectBuffer = static_cast<const GrCpuBuffer*>(drawIndirectBuffer); in drawIndirect()313 auto* cpuIndirectBuffer = static_cast<const GrCpuBuffer*>(drawIndirectBuffer); in drawIndexedIndirect()
49 "GrCpuBuffer.h",
118 auto* cpuIndexBuffer = static_cast<const GrCpuBuffer*>(indexBuffer.get()); in onBindBuffers()265 return static_cast<const GrCpuBuffer*>(drawIndirectBuffer)->data() + offset; in buffer_offset_to_gl_address()321 auto* cpuBuffer = static_cast<const GrCpuBuffer*>(drawIndirectBuffer); in multiDrawArraysANGLEOrWebGL()394 auto* cpuBuffer = static_cast<const GrCpuBuffer*>(drawIndirectBuffer); in multiDrawElementsANGLEOrWebGL()
97 offsetAsPtr = static_cast<const GrCpuBuffer*>(vertexBuffer)->data() + offsetInBytes; in set()
72 "$_src/gpu/GrCpuBuffer.h",