Home
last modified time | relevance | path

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

/external/skia/src/gpu/
DGrCpuBuffer.h15 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
DGrBufferAllocPool.h46 sk_sp<GrCpuBuffer> makeBuffer(size_t size, bool mustBeInitialized);
53 sk_sp<GrCpuBuffer> fBuffer;
163 sk_sp<GrCpuBuffer> fCpuStagingBuffer;
DGrBufferAllocPool.cpp35 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()
349 fBufferPtr = static_cast<GrCpuBuffer*>(block.fBuffer.get())->data(); in createBlock()
386 : GrCpuBuffer::Make(newSize); in resetCpuData()
419 : GrCpuBuffer::Make(size); in getBuffer()
DGrOpsRenderPass.cpp282 auto* cpuIndirectBuffer = static_cast<const GrCpuBuffer*>(drawIndirectBuffer); in drawIndirect()
309 auto* cpuIndirectBuffer = static_cast<const GrCpuBuffer*>(drawIndirectBuffer); in drawIndexedIndirect()
/external/skia/src/gpu/gl/
DGrGLOpsRenderPass.cpp103 auto* cpuIndexBuffer = static_cast<const GrCpuBuffer*>(indexBuffer.get()); in onBindBuffers()
250 return static_cast<const GrCpuBuffer*>(drawIndirectBuffer)->data() + offset; in buffer_offset_to_gl_address()
306 auto* cpuBuffer = static_cast<const GrCpuBuffer*>(drawIndirectBuffer); in multiDrawArraysANGLEOrWebGL()
379 auto* cpuBuffer = static_cast<const GrCpuBuffer*>(drawIndirectBuffer); in multiDrawElementsANGLEOrWebGL()
DGrGLVertexArray.cpp97 offsetAsPtr = static_cast<const GrCpuBuffer*>(vertexBuffer)->data() + offsetInBytes; in set()
/external/skia/gn/
Dgpu.gni80 "$_src/gpu/GrCpuBuffer.h",