Home
last modified time | relevance | path

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

123456

/third_party/flutter/skia/src/gpu/
DGrGpuBuffer.cpp12 GrGpuBuffer::GrGpuBuffer(GrGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, in GrGpuBuffer() function in GrGpuBuffer
20 void* GrGpuBuffer::map() { in map()
30 void GrGpuBuffer::unmap() { in unmap()
39 bool GrGpuBuffer::isMapped() const { return SkToBool(fMapPtr); } in isMapped()
41 bool GrGpuBuffer::updateData(const void* src, size_t srcSizeInBytes) { in updateData()
50 void GrGpuBuffer::ComputeScratchKeyForDynamicVBO(size_t size, GrGpuBufferType intendedType, in ComputeScratchKeyForDynamicVBO()
64 void GrGpuBuffer::computeScratchKey(GrScratchKey* key) const { in computeScratchKey()
DGrResourceProvider.h177 sk_sp<const GrGpuBuffer> findOrMakeStaticBuffer(GrGpuBufferType intendedType, size_t size,
193 sk_sp<const GrGpuBuffer> findOrCreatePatternedIndexBuffer(const uint16_t* pattern, in findOrCreatePatternedIndexBuffer()
198 if (auto buffer = this->findByUniqueKey<const GrGpuBuffer>(key)) { in findOrCreatePatternedIndexBuffer()
211 sk_sp<const GrGpuBuffer> refQuadIndexBuffer() { in refQuadIndexBuffer()
237 sk_sp<GrGpuBuffer> createBuffer(size_t size, GrGpuBufferType intendedType, GrAccessPattern,
328 sk_sp<const GrGpuBuffer> createPatternedIndexBuffer(const uint16_t* pattern,
334 sk_sp<const GrGpuBuffer> createQuadIndexBuffer();
339 sk_sp<const GrGpuBuffer> fQuadIndexBuffer;
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 …]
DGrOnFlushResourceProvider.cpp85 sk_sp<GrGpuBuffer> GrOnFlushResourceProvider::makeBuffer(GrGpuBufferType intendedType, size_t size, in makeBuffer()
95 return sk_sp<GrGpuBuffer>( in makeBuffer()
99 sk_sp<const GrGpuBuffer> GrOnFlushResourceProvider::findOrMakeStaticBuffer( in findOrMakeStaticBuffer()
109 sk_sp<const GrGpuBuffer> buffer = in findOrMakeStaticBuffer()
DGrGpu.h28 class GrGpuBuffer; variable
175 sk_sp<GrGpuBuffer> createBuffer(size_t size, GrGpuBufferType intendedType,
271 GrGpuBuffer* transferBuffer, size_t offset, size_t rowBytes);
296 GrGpuBuffer* transferBuffer, size_t offset);
576 virtual sk_sp<GrGpuBuffer> onCreateBuffer(size_t size, GrGpuBufferType intendedType,
592 GrGpuBuffer* transferBuffer, size_t offset,
597 GrGpuBuffer* transferBuffer, size_t offset) = 0;
DGrResourceProvider.cpp434 sk_sp<const GrGpuBuffer> GrResourceProvider::findOrMakeStaticBuffer(GrGpuBufferType intendedType, in findOrMakeStaticBuffer()
438 if (auto buffer = this->findByUniqueKey<GrGpuBuffer>(key)) { in findOrMakeStaticBuffer()
447 return sk_sp<const GrGpuBuffer>(buffer); in findOrMakeStaticBuffer()
452 sk_sp<const GrGpuBuffer> GrResourceProvider::createPatternedIndexBuffer(const uint16_t* pattern, in createPatternedIndexBuffer()
460 sk_sp<GrGpuBuffer> buffer( in createPatternedIndexBuffer()
494 sk_sp<const GrGpuBuffer> GrResourceProvider::createQuadIndexBuffer() { in createQuadIndexBuffer()
511 sk_sp<GrGpuBuffer> GrResourceProvider::createBuffer(size_t size, GrGpuBufferType intendedType, in createBuffer()
525 GrGpuBuffer::ComputeScratchKeyForDynamicVBO(allocSize, intendedType, &key); in createBuffer()
527 sk_sp<GrGpuBuffer>(static_cast<GrGpuBuffer*>(this->cache()->findAndRefScratchResource( in createBuffer()
/third_party/skia/src/gpu/
DGrGpuBuffer.cpp12 GrGpuBuffer::GrGpuBuffer(GrGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, in GrGpuBuffer() function in GrGpuBuffer
20 void* GrGpuBuffer::map() { in map()
31 void GrGpuBuffer::unmap() { in unmap()
43 bool GrGpuBuffer::isMapped() const { return SkToBool(fMapPtr); } in isMapped()
45 bool GrGpuBuffer::updateData(const void* src, size_t srcSizeInBytes) { in updateData()
61 void GrGpuBuffer::ComputeScratchKeyForDynamicBuffer(size_t size, GrGpuBufferType intendedType, in ComputeScratchKeyForDynamicBuffer()
72 void GrGpuBuffer::computeScratchKey(GrScratchKey* key) const { in computeScratchKey()
DGrResourceProvider.h198 sk_sp<const GrGpuBuffer> findOrMakeStaticBuffer(GrGpuBufferType intendedType, size_t size,
211 sk_sp<const GrGpuBuffer> findOrMakeStaticBuffer(GrGpuBufferType intendedType, size_t size,
227 sk_sp<const GrGpuBuffer> findOrCreatePatternedIndexBuffer(const uint16_t* pattern, in findOrCreatePatternedIndexBuffer()
232 if (auto buffer = this->findByUniqueKey<const GrGpuBuffer>(key)) { in findOrCreatePatternedIndexBuffer()
245 sk_sp<const GrGpuBuffer> refNonAAQuadIndexBuffer() { in refNonAAQuadIndexBuffer()
263 sk_sp<const GrGpuBuffer> refAAQuadIndexBuffer() { in refAAQuadIndexBuffer()
285 sk_sp<GrGpuBuffer> createBuffer(size_t size,
401 sk_sp<const GrGpuBuffer> createPatternedIndexBuffer(const uint16_t* pattern,
407 sk_sp<const GrGpuBuffer> createNonAAQuadIndexBuffer();
408 sk_sp<const GrGpuBuffer> createAAQuadIndexBuffer();
[all …]
DGrClientMappedBufferManager.h33 BufferFinishedMessage(sk_sp<GrGpuBuffer> buffer, in BufferFinishedMessage()
41 sk_sp<GrGpuBuffer> fBuffer;
68 void insert(sk_sp<GrGpuBuffer> b);
78 std::forward_list<sk_sp<GrGpuBuffer>> fClientHeldBuffers;
81 void remove(const sk_sp<GrGpuBuffer>& b);
DGrStagingBufferManager.h23 Slice(GrGpuBuffer* buffer, size_t offset, void* offsetMapPtr) in Slice()
25 GrGpuBuffer* fBuffer = nullptr;
52 StagingBuffer(sk_sp<GrGpuBuffer> buffer, void* mapPtr) in StagingBuffer()
56 sk_sp<GrGpuBuffer> fBuffer;
DGrBufferAllocPool.cpp85 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()
298 if (!buffer->isCpuBuffer() && static_cast<GrGpuBuffer*>(buffer)->isMapped()) { in putBack()
332 if (static_cast<GrGpuBuffer*>(buffer)->isMapped()) { in createBlock()
352 fBufferPtr = static_cast<GrGpuBuffer*>(block.fBuffer.get())->map(); in createBlock()
[all …]
DGrRingBuffer.h40 GrGpuBuffer* fBuffer;
60 sk_sp<GrGpuBuffer> fCurrentBuffer;
61 std::vector<sk_sp<GrGpuBuffer>> fPreviousBuffers; // previous buffers we've used in this submit
DGrThreadSafeCache.h114 GrGpuBuffer* gpuBuffer() { return fGpuBuffer.get(); } in gpuBuffer()
115 sk_sp<GrGpuBuffer> refGpuBuffer() { return fGpuBuffer; } in refGpuBuffer()
117 void setGpuBuffer(sk_sp<GrGpuBuffer> gpuBuffer) { in setGpuBuffer()
141 VertexData(sk_sp<GrGpuBuffer> gpuBuffer, int numVertices, size_t vertexSize) in VertexData()
152 sk_sp<GrGpuBuffer> fGpuBuffer;
160 static sk_sp<VertexData> MakeVertexData(sk_sp<GrGpuBuffer> buffer,
DGrResourceProvider.cpp408 sk_sp<const GrGpuBuffer> GrResourceProvider::findOrMakeStaticBuffer(GrGpuBufferType intendedType, in findOrMakeStaticBuffer()
412 if (auto buffer = this->findByUniqueKey<GrGpuBuffer>(key)) { in findOrMakeStaticBuffer()
420 return sk_sp<const GrGpuBuffer>(buffer); in findOrMakeStaticBuffer()
425 sk_sp<const GrGpuBuffer> GrResourceProvider::findOrMakeStaticBuffer( in findOrMakeStaticBuffer()
430 if (auto buffer = this->findByUniqueKey<GrGpuBuffer>(uniqueKey)) { in findOrMakeStaticBuffer()
459 sk_sp<const GrGpuBuffer> GrResourceProvider::createPatternedIndexBuffer(const uint16_t* pattern, in createPatternedIndexBuffer()
466 sk_sp<GrGpuBuffer> buffer( in createPatternedIndexBuffer()
503 sk_sp<const GrGpuBuffer> GrResourceProvider::createNonAAQuadIndexBuffer() { in createNonAAQuadIndexBuffer()
525 sk_sp<const GrGpuBuffer> GrResourceProvider::createAAQuadIndexBuffer() { in createAAQuadIndexBuffer()
549 sk_sp<GrGpuBuffer> GrResourceProvider::createBuffer(size_t size, GrGpuBufferType intendedType, in createBuffer()
[all …]
DGrGpu.h30 class GrGpuBuffer; variable
211 sk_sp<GrGpuBuffer> createBuffer(size_t size, GrGpuBufferType intendedType,
323 sk_sp<GrGpuBuffer> transferBuffer,
349 sk_sp<GrGpuBuffer> transferBuffer,
406 virtual void takeOwnershipOfBuffer(sk_sp<GrGpuBuffer>) {} in takeOwnershipOfBuffer() argument
738 virtual sk_sp<GrGpuBuffer> onCreateBuffer(size_t size, GrGpuBufferType intendedType,
763 sk_sp<GrGpuBuffer> transferBuffer,
772 sk_sp<GrGpuBuffer> transferBuffer,
/third_party/flutter/skia/src/gpu/ccpr/
DGrCCPerFlushResources.h115 sk_sp<const GrGpuBuffer> refIndexBuffer() const { in refIndexBuffer()
119 sk_sp<const GrGpuBuffer> refVertexBuffer() const { in refVertexBuffer()
123 sk_sp<const GrGpuBuffer> refInstanceBuffer() const { in refInstanceBuffer()
127 sk_sp<const GrGpuBuffer> refStencilResolveBuffer() const { in refStencilResolveBuffer()
149 const sk_sp<const GrGpuBuffer> fIndexBuffer;
150 const sk_sp<const GrGpuBuffer> fVertexBuffer;
151 const sk_sp<GrGpuBuffer> fInstanceBuffer;
181 sk_sp<GrGpuBuffer> fStencilResolveBuffer;
DGrVSCoverageProcessor.h23 void appendMesh(sk_sp<const GrGpuBuffer> instanceBuffer, int instanceCount, int baseInstance,
30 sk_sp<const GrGpuBuffer> fVertexBuffer;
31 sk_sp<const GrGpuBuffer> fIndexBuffer;
/third_party/skia/src/gpu/vk/
DGrVkPipelineStateDataManager.h16 class GrGpuBuffer; variable
30 std::pair<sk_sp<GrGpuBuffer>, bool> uploadUniforms(GrVkGpu* gpu, VkPipelineLayout,
43 sk_sp<GrGpuBuffer> fUniformBuffer;
/third_party/flutter/skia/src/gpu/vk/
DGrVkTransferBuffer.h17 class GrVkTransferBuffer : public GrGpuBuffer, public GrVkBuffer {
31 void onMap() override { this->GrGpuBuffer::fMapPtr = this->vkMap(this->getVkGpu()); } in onMap()
44 typedef GrGpuBuffer INHERITED;
DGrVkGpuCommandBuffer.h50 GrColorType bufferColorType, GrGpuBuffer* transferBuffer,
108 GrColorType bufferColorType, GrGpuBuffer* transferBuffer,
136 void bindGeometry(const GrGpuBuffer* indexBuffer,
137 const GrGpuBuffer* vertexBuffer,
138 const GrGpuBuffer* instanceBuffer);
DGrVkIndexBuffer.h16 class GrVkIndexBuffer : public GrGpuBuffer, public GrVkBuffer {
34 typedef GrGpuBuffer INHERITED;
/third_party/skia/src/gpu/dawn/
DGrDawnGpu.h41 void takeOwnershipOfBuffer(sk_sp<GrGpuBuffer>) override;
162 sk_sp<GrGpuBuffer> onCreateBuffer(size_t size, GrGpuBufferType type, GrAccessPattern,
184 sk_sp<GrGpuBuffer>,
192 sk_sp<GrGpuBuffer>,
230 std::list<sk_sp<GrGpuBuffer>> fBusyStagingBuffers;
234 std::vector<sk_sp<GrGpuBuffer>> fSubmittedStagingBuffers;
/third_party/flutter/skia/src/gpu/ops/
DGrTransferFromOp.h26 sk_sp<GrGpuBuffer> dstBuffer,
51 sk_sp<GrGpuBuffer> dstBuffer, in GrTransferFromOp()
66 sk_sp<GrGpuBuffer> fDstBuffer;
/third_party/skia/src/gpu/tessellate/
DPathTessellator.h20 class GrGpuBuffer; variable
158 sk_sp<const GrGpuBuffer> fFixedVertexBuffer;
159 sk_sp<const GrGpuBuffer> fFixedIndexBuffer;
/third_party/flutter/skia/src/gpu/dawn/
DGrDawnBuffer.h16 class GrDawnBuffer : public GrGpuBuffer {
31 typedef GrGpuBuffer INHERITED;

123456