Home
last modified time | relevance | path

Searched refs:GrGpuBuffer (Results 1 – 25 of 49) sorted by relevance

12

/external/skia/src/gpu/
DGrResourceProvider.h145 sk_sp<const GrGpuBuffer> findOrMakeStaticBuffer(GrGpuBufferType intendedType, size_t size,
161 sk_sp<const GrGpuBuffer> findOrCreatePatternedIndexBuffer(const uint16_t* pattern, in findOrCreatePatternedIndexBuffer()
166 if (auto buffer = this->findByUniqueKey<const GrGpuBuffer>(key)) { in findOrCreatePatternedIndexBuffer()
179 sk_sp<const GrGpuBuffer> refQuadIndexBuffer() { in refQuadIndexBuffer()
205 sk_sp<GrGpuBuffer> createBuffer(size_t size, GrGpuBufferType intendedType, GrAccessPattern,
286 sk_sp<const GrGpuBuffer> createPatternedIndexBuffer(const uint16_t* pattern,
292 sk_sp<const GrGpuBuffer> createQuadIndexBuffer();
297 sk_sp<const GrGpuBuffer> fQuadIndexBuffer;
DGrGpuBuffer.cpp12 GrGpuBuffer::GrGpuBuffer(GrGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, in GrGpuBuffer() function in GrGpuBuffer
20 void GrGpuBuffer::ComputeScratchKeyForDynamicVBO(size_t size, GrGpuBufferType intendedType, in ComputeScratchKeyForDynamicVBO()
34 void GrGpuBuffer::computeScratchKey(GrScratchKey* key) const { in computeScratchKey()
DGrBufferAllocPool.cpp83 static_cast<GrGpuBuffer*>(block.fBuffer.get())->unmap(); \
98 if (!buffer->isCpuBuffer() && static_cast<GrGpuBuffer*>(buffer)->isMapped()) { in deleteBlocks()
128 if (static_cast<GrGpuBuffer*>(buffer)->isMapped()) { in unmap()
146 if (!buffer->isCpuBuffer() && !static_cast<const GrGpuBuffer*>(buffer)->isMapped()) { in validate()
151 SkASSERT(buffer->isCpuBuffer() || !static_cast<const GrGpuBuffer*>(buffer)->isMapped()); in validate()
156 SkASSERT(buffer->isCpuBuffer() || !static_cast<const GrGpuBuffer*>(buffer)->isMapped()); in validate()
160 if (!buffer->isCpuBuffer() && static_cast<GrGpuBuffer*>(buffer)->wasDestroyed()) { in validate()
312 if (!buffer->isCpuBuffer() && static_cast<GrGpuBuffer*>(buffer)->isMapped()) { in putBack()
346 if (static_cast<GrGpuBuffer*>(buffer)->isMapped()) { in createBlock()
366 fBufferPtr = static_cast<GrGpuBuffer*>(block.fBuffer.get())->map(); in createBlock()
[all …]
DGrResourceProvider.cpp269 sk_sp<const GrGpuBuffer> GrResourceProvider::findOrMakeStaticBuffer(GrGpuBufferType intendedType, in findOrMakeStaticBuffer()
273 if (auto buffer = this->findByUniqueKey<GrGpuBuffer>(key)) { in findOrMakeStaticBuffer()
282 return sk_sp<const GrGpuBuffer>(buffer); in findOrMakeStaticBuffer()
287 sk_sp<const GrGpuBuffer> GrResourceProvider::createPatternedIndexBuffer(const uint16_t* pattern, in createPatternedIndexBuffer()
295 sk_sp<GrGpuBuffer> buffer( in createPatternedIndexBuffer()
329 sk_sp<const GrGpuBuffer> GrResourceProvider::createQuadIndexBuffer() { in createQuadIndexBuffer()
346 sk_sp<GrGpuBuffer> GrResourceProvider::createBuffer(size_t size, GrGpuBufferType intendedType, in createBuffer()
360 GrGpuBuffer::ComputeScratchKeyForDynamicVBO(allocSize, intendedType, &key); in createBuffer()
362 sk_sp<GrGpuBuffer>(static_cast<GrGpuBuffer*>(this->cache()->findAndRefScratchResource( in createBuffer()
DGrOnFlushResourceProvider.cpp84 sk_sp<GrGpuBuffer> GrOnFlushResourceProvider::makeBuffer(GrGpuBufferType intendedType, size_t size, in makeBuffer()
94 return sk_sp<GrGpuBuffer>( in makeBuffer()
98 sk_sp<const GrGpuBuffer> GrOnFlushResourceProvider::findOrMakeStaticBuffer( in findOrMakeStaticBuffer()
108 sk_sp<const GrGpuBuffer> buffer = in findOrMakeStaticBuffer()
DGrGpuBuffer.h16 class GrGpuBuffer : public GrGpuResource, public GrBuffer {
94 GrGpuBuffer(GrGpu*, size_t sizeInBytes, GrGpuBufferType, GrAccessPattern);
DGrGpu.h27 class GrGpuBuffer; variable
145 sk_sp<GrGpuBuffer> createBuffer(size_t size, GrGpuBufferType intendedType,
227 GrColorType bufferColorType, GrGpuBuffer* transferBuffer, size_t offset,
508 virtual sk_sp<GrGpuBuffer> onCreateBuffer(size_t size, GrGpuBufferType intendedType,
521 GrColorType colorType, GrGpuBuffer* transferBuffer, size_t offset,
DGrOnFlushResourceProvider.h89 sk_sp<GrGpuBuffer> makeBuffer(GrGpuBufferType, size_t, const void* data = nullptr);
92 sk_sp<const GrGpuBuffer> findOrMakeStaticBuffer(GrGpuBufferType, size_t, const void* data,
/external/skia/src/gpu/ccpr/
DGrCCPerFlushResources.h108 sk_sp<const GrGpuBuffer> refIndexBuffer() const { in refIndexBuffer()
112 sk_sp<const GrGpuBuffer> refVertexBuffer() const { in refVertexBuffer()
116 sk_sp<const GrGpuBuffer> refInstanceBuffer() const { in refInstanceBuffer()
134 const sk_sp<const GrGpuBuffer> fIndexBuffer;
135 const sk_sp<const GrGpuBuffer> fVertexBuffer;
136 const sk_sp<GrGpuBuffer> fInstanceBuffer;
DGrCCCoverageProcessor.h103 void appendMesh(sk_sp<GrGpuBuffer> instanceBuffer, int instanceCount, int baseInstance, in appendMesh()
253 void appendGSMesh(sk_sp<const GrGpuBuffer> instanceBuffer, int instanceCount, int baseInstance,
255 void appendVSMesh(sk_sp<const GrGpuBuffer> instanceBuffer, int instanceCount, int baseInstance,
272 sk_sp<const GrGpuBuffer> fVSVertexBuffer;
273 sk_sp<const GrGpuBuffer> fVSIndexBuffer;
DGrCCStroker.h16 class GrGpuBuffer; variable
119 sk_sp<GrGpuBuffer> fInstanceBuffer;
DGrCCPathProcessor.h69 static sk_sp<const GrGpuBuffer> FindVertexBuffer(GrOnFlushResourceProvider*);
70 static sk_sp<const GrGpuBuffer> FindIndexBuffer(GrOnFlushResourceProvider*);
DGrCCPathProcessor.cpp37 sk_sp<const GrGpuBuffer> GrCCPathProcessor::FindVertexBuffer(GrOnFlushResourceProvider* onFlushRP) { in FindVertexBuffer()
67 sk_sp<const GrGpuBuffer> GrCCPathProcessor::FindIndexBuffer(GrOnFlushResourceProvider* onFlushRP) { in FindIndexBuffer()
/external/skia/src/gpu/vk/
DGrVkTransferBuffer.h17 class GrVkTransferBuffer : public GrGpuBuffer, public GrVkBuffer {
33 this->GrGpuBuffer::fMapPtr = this->vkMap(this->getVkGpu()); in onMap()
53 typedef GrGpuBuffer INHERITED;
DGrVkVertexBuffer.h16 class GrVkVertexBuffer : public GrGpuBuffer, public GrVkBuffer {
34 typedef GrGpuBuffer INHERITED;
DGrVkIndexBuffer.h16 class GrVkIndexBuffer : public GrGpuBuffer, public GrVkBuffer {
34 typedef GrGpuBuffer INHERITED;
DGrVkGpuCommandBuffer.h99 void bindGeometry(const GrGpuBuffer* indexBuffer,
100 const GrGpuBuffer* vertexBuffer,
101 const GrGpuBuffer* instanceBuffer);
DGrVkGpuCommandBuffer.cpp593 void GrVkGpuRTCommandBuffer::bindGeometry(const GrGpuBuffer* indexBuffer, in bindGeometry()
594 const GrGpuBuffer* vertexBuffer, in bindGeometry()
595 const GrGpuBuffer* instanceBuffer) { in bindGeometry()
806 auto gpuVertexBuffer = static_cast<const GrGpuBuffer*>(vertexBuffer); in sendInstancedMeshToGpu()
807 auto gpuInstanceBuffer = static_cast<const GrGpuBuffer*>(instanceBuffer); in sendInstancedMeshToGpu()
828 auto gpuIndexxBuffer = static_cast<const GrGpuBuffer*>(indexBuffer); in sendIndexedInstancedMeshToGpu()
829 auto gpuVertexBuffer = static_cast<const GrGpuBuffer*>(vertexBuffer); in sendIndexedInstancedMeshToGpu()
830 auto gpuInstanceBuffer = static_cast<const GrGpuBuffer*>(instanceBuffer); in sendIndexedInstancedMeshToGpu()
DGrVkVertexBuffer.cpp52 this->GrGpuBuffer::fMapPtr = this->vkMap(this->getVkGpu()); in onMap()
/external/skia/src/gpu/mock/
DGrMockBuffer.h15 class GrMockBuffer : public GrGpuBuffer {
32 typedef GrGpuBuffer INHERITED;
DGrMockGpu.h81 sk_sp<GrGpuBuffer> onCreateBuffer(size_t sizeInBytes, GrGpuBufferType, GrAccessPattern,
95 GrGpuBuffer* transferBuffer, size_t offset, size_t rowBytes) override { in onTransferPixels()
/external/skia/src/gpu/mtl/
DGrMtlBuffer.h18 class GrMtlBuffer: public GrGpuBuffer {
51 typedef GrGpuBuffer INHERITED;
DGrMtlGpu.h156 sk_sp<GrGpuBuffer> onCreateBuffer(size_t, GrGpuBufferType, GrAccessPattern,
167 GrColorType, GrGpuBuffer*, in onTransferPixels() argument
/external/skia/src/gpu/ops/
DGrTessellatingPathRenderer.cpp57 bool cache_match(GrGpuBuffer* vertexBuffer, SkScalar tol, int* actualCount) { in cache_match()
102 sk_sp<GrGpuBuffer> detachVertexBuffer() { return std::move(fVertexBuffer); } in detachVertexBuffer()
105 sk_sp<GrGpuBuffer> fVertexBuffer;
265 sk_sp<GrGpuBuffer> cachedVertexBuffer(rp->findByUniqueKey<GrGpuBuffer>(key)); in draw()
290 sk_sp<GrGpuBuffer> vb = allocator.detachVertexBuffer(); in draw()
/external/skia/src/gpu/gl/
DGrGLBuffer.h17 class GrGLBuffer : public GrGpuBuffer {
65 typedef GrGpuBuffer INHERITED;

12