Home
last modified time | relevance | path

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

123

/external/skia/src/gpu/ganesh/
DGrGpuBuffer.cpp12 GrGpuBuffer::GrGpuBuffer(GrGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, in GrGpuBuffer() function in GrGpuBuffer
21 void* GrGpuBuffer::map() { in map()
31 void GrGpuBuffer::unmap() { in unmap()
40 bool GrGpuBuffer::isMapped() const { return SkToBool(fMapPtr); } in isMapped()
42 bool GrGpuBuffer::clearToZero() { in clearToZero()
56 bool GrGpuBuffer::updateData(const void* src, size_t offset, size_t size, bool preserve) { in updateData()
79 void GrGpuBuffer::ComputeScratchKeyForDynamicBuffer(size_t size, in ComputeScratchKeyForDynamicBuffer()
91 void GrGpuBuffer::computeScratchKey(skgpu::ScratchKey* key) const { in computeScratchKey()
DGrBufferTransferRenderTask.h13 class GrGpuBuffer; variable
17 static sk_sp<GrRenderTask> Make(sk_sp<GrGpuBuffer> src,
19 sk_sp<GrGpuBuffer> dst,
26 GrBufferTransferRenderTask(sk_sp<GrGpuBuffer> src,
28 sk_sp<GrGpuBuffer> dst,
46 sk_sp<GrGpuBuffer> fSrc;
47 sk_sp<GrGpuBuffer> fDst;
DGrResourceProvider.h223 sk_sp<const GrGpuBuffer> findOrMakeStaticBuffer(GrGpuBufferType intendedType,
238 sk_sp<const GrGpuBuffer> findOrMakeStaticBuffer(GrGpuBufferType intendedType,
256 sk_sp<const GrGpuBuffer> findOrCreatePatternedIndexBuffer(const uint16_t* pattern, in findOrCreatePatternedIndexBuffer()
261 if (auto buffer = this->findByUniqueKey<const GrGpuBuffer>(key)) { in findOrCreatePatternedIndexBuffer()
274 sk_sp<const GrGpuBuffer> refNonAAQuadIndexBuffer() { in refNonAAQuadIndexBuffer()
292 sk_sp<const GrGpuBuffer> refAAQuadIndexBuffer() { in refAAQuadIndexBuffer()
315 sk_sp<GrGpuBuffer> createBuffer(size_t size, GrGpuBufferType, GrAccessPattern, ZeroInit);
318 sk_sp<GrGpuBuffer> createBuffer(const void* data,
436 sk_sp<const GrGpuBuffer> createPatternedIndexBuffer(const uint16_t* pattern,
442 sk_sp<const GrGpuBuffer> createNonAAQuadIndexBuffer();
[all …]
DGrBufferUpdateRenderTask.h13 class GrGpuBuffer; variable
17 static sk_sp<GrRenderTask> Make(sk_sp<SkData> src, sk_sp<GrGpuBuffer> dst, size_t dstOffset);
22 GrBufferUpdateRenderTask(sk_sp<SkData> src, sk_sp<GrGpuBuffer> dst, size_t dstOffset);
39 sk_sp<GrGpuBuffer> fDst;
DGrBufferTransferRenderTask.cpp14 sk_sp<GrRenderTask> GrBufferTransferRenderTask::Make(sk_sp<GrGpuBuffer> src, in Make()
16 sk_sp<GrGpuBuffer> dst, in Make()
26 GrBufferTransferRenderTask::GrBufferTransferRenderTask(sk_sp<GrGpuBuffer> src, in GrBufferTransferRenderTask()
28 sk_sp<GrGpuBuffer> dst, in GrBufferTransferRenderTask()
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 …]
DGrGpu.h208 sk_sp<GrGpuBuffer> createBuffer(size_t size,
314 bool transferFromBufferToBuffer(sk_sp<GrGpuBuffer> src,
316 sk_sp<GrGpuBuffer> dst,
338 sk_sp<GrGpuBuffer> transferBuffer,
364 sk_sp<GrGpuBuffer> transferBuffer,
428 virtual void takeOwnershipOfBuffer(sk_sp<GrGpuBuffer>) {} in takeOwnershipOfBuffer() argument
765 virtual sk_sp<GrGpuBuffer> onCreateBuffer(size_t size,
787 virtual bool onTransferFromBufferToBuffer(sk_sp<GrGpuBuffer> src,
789 sk_sp<GrGpuBuffer> dst,
798 sk_sp<GrGpuBuffer> transferBuffer,
[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
DGrDrawingManager.h28 class GrGpuBuffer; variable
87 sk_sp<GrGpuBuffer> dstBuffer, size_t dstOffset);
110 void newBufferTransferTask(sk_sp<GrGpuBuffer> src,
112 sk_sp<GrGpuBuffer> dst,
120 void newBufferUpdateTask(sk_sp<SkData> src, sk_sp<GrGpuBuffer> dst, size_t dstOffset);
DGrThreadSafeCache.h116 GrGpuBuffer* gpuBuffer() { return fGpuBuffer.get(); } in gpuBuffer()
117 sk_sp<GrGpuBuffer> refGpuBuffer() { return fGpuBuffer; } in refGpuBuffer()
119 void setGpuBuffer(sk_sp<GrGpuBuffer> gpuBuffer) { in setGpuBuffer()
143 VertexData(sk_sp<GrGpuBuffer> gpuBuffer, int numVertices, size_t vertexSize) in VertexData()
154 sk_sp<GrGpuBuffer> fGpuBuffer;
162 static sk_sp<VertexData> MakeVertexData(sk_sp<GrGpuBuffer> buffer,
DGrResourceProvider.cpp452 sk_sp<const GrGpuBuffer> GrResourceProvider::findOrMakeStaticBuffer(GrGpuBufferType intendedType, in findOrMakeStaticBuffer()
456 if (auto buffer = this->findByUniqueKey<GrGpuBuffer>(key)) { in findOrMakeStaticBuffer()
474 sk_sp<const GrGpuBuffer> GrResourceProvider::findOrMakeStaticBuffer( in findOrMakeStaticBuffer()
479 if (auto buffer = this->findByUniqueKey<GrGpuBuffer>(uniqueKey)) { in findOrMakeStaticBuffer()
516 sk_sp<const GrGpuBuffer> GrResourceProvider::createPatternedIndexBuffer( in createPatternedIndexBuffer()
524 sk_sp<GrGpuBuffer> buffer = this->createBuffer(bufferSize, in createPatternedIndexBuffer()
563 sk_sp<const GrGpuBuffer> GrResourceProvider::createNonAAQuadIndexBuffer() { in createNonAAQuadIndexBuffer()
585 sk_sp<const GrGpuBuffer> GrResourceProvider::createAAQuadIndexBuffer() { in createAAQuadIndexBuffer()
610 sk_sp<GrGpuBuffer> GrResourceProvider::createBuffer(size_t size, in createBuffer()
621 sk_sp<GrGpuBuffer> buffer = this->gpu()->createBuffer(size, intendedType, accessPattern); in createBuffer()
[all …]
DGrBufferUpdateRenderTask.cpp15 sk_sp<GrGpuBuffer> dst, in Make()
23 sk_sp<GrGpuBuffer> dst, in GrBufferUpdateRenderTask()
/external/skia/src/gpu/ganesh/vk/
DGrVkPipelineStateDataManager.h16 class GrGpuBuffer; variable
30 std::pair<sk_sp<GrGpuBuffer>, bool> uploadUniforms(GrVkGpu* gpu, VkPipelineLayout,
43 sk_sp<GrGpuBuffer> fUniformBuffer;
DGrVkGpu.h59 void takeOwnershipOfBuffer(sk_sp<GrGpuBuffer>) override;
181 bool zeroBuffer(sk_sp<GrGpuBuffer>);
279 sk_sp<GrGpuBuffer> onCreateBuffer(size_t size, GrGpuBufferType type, GrAccessPattern) override;
296 bool onTransferFromBufferToBuffer(sk_sp<GrGpuBuffer> src,
298 sk_sp<GrGpuBuffer> dst,
306 sk_sp<GrGpuBuffer>,
314 sk_sp<GrGpuBuffer>,
/external/skia/src/gpu/ganesh/dawn/
DGrDawnGpu.h43 void takeOwnershipOfBuffer(sk_sp<GrGpuBuffer>) override;
166 sk_sp<GrGpuBuffer> onCreateBuffer(size_t size, GrGpuBufferType type, GrAccessPattern) override;
183 bool onTransferFromBufferToBuffer(sk_sp<GrGpuBuffer> src,
185 sk_sp<GrGpuBuffer> dst,
193 sk_sp<GrGpuBuffer>,
201 sk_sp<GrGpuBuffer>,
253 std::vector<sk_sp<GrGpuBuffer>> fSubmittedStagingBuffers;
/external/skia/src/gpu/ganesh/d3d/
DGrD3DGpu.h50 void takeOwnershipOfBuffer(sk_sp<GrGpuBuffer>) override;
167 sk_sp<GrGpuBuffer> onCreateBuffer(size_t sizeInBytes,
186 bool onTransferFromBufferToBuffer(sk_sp<GrGpuBuffer> src,
188 sk_sp<GrGpuBuffer> dst,
196 sk_sp<GrGpuBuffer>,
204 sk_sp<GrGpuBuffer>,
289 sk_sp<GrGpuBuffer> transferBuffer,
/external/skia/src/gpu/ganesh/mock/
DGrMockGpu.h91 sk_sp<GrGpuBuffer> onCreateBuffer(size_t sizeInBytes,
114 bool onTransferFromBufferToBuffer(sk_sp<GrGpuBuffer> src, in onTransferFromBufferToBuffer()
116 sk_sp<GrGpuBuffer> dst, in onTransferFromBufferToBuffer()
126 sk_sp<GrGpuBuffer>, in onTransferPixelsTo() argument
136 sk_sp<GrGpuBuffer>, in onTransferPixelsFrom() argument
DGrMockBuffer.h15 class GrMockBuffer : public GrGpuBuffer {
36 using INHERITED = GrGpuBuffer;
/external/skia/src/gpu/ganesh/mtl/
DGrMtlGpu.h137 void takeOwnershipOfBuffer(sk_sp<GrGpuBuffer>) override;
193 sk_sp<GrGpuBuffer> onCreateBuffer(size_t, GrGpuBufferType, GrAccessPattern) override;
202 bool onTransferFromBufferToBuffer(sk_sp<GrGpuBuffer> src,
204 sk_sp<GrGpuBuffer> dst,
220 sk_sp<GrGpuBuffer>,
228 sk_sp<GrGpuBuffer>,
DGrMtlBuffer.h19 class GrMtlBuffer: public GrGpuBuffer {
60 using INHERITED = GrGpuBuffer;
/external/skia/src/core/
DSkMeshPriv.h119 virtual sk_sp<const GrGpuBuffer> asGpuBuffer() const { return nullptr; } in asGpuBuffer()
156 sk_sp<const GrGpuBuffer> asGpuBuffer() const override { return fBuffer; } in asGpuBuffer()
163 sk_sp<GrGpuBuffer> fBuffer;
174 sk_sp<GrGpuBuffer>,
218 sk_sp<GrGpuBuffer> buffer = dc->priv().resourceProvider()->createBuffer( in Make()
/external/skia/src/gpu/ganesh/tessellate/
DPathTessellator.h82 sk_sp<const GrGpuBuffer> fFixedVertexBuffer;
83 sk_sp<const GrGpuBuffer> fFixedIndexBuffer;
123 void drawHullInstances(GrOpFlushState*, sk_sp<const GrGpuBuffer> vertexBufferIfNeeded) const;
DStrokeTessellator.h19 class GrGpuBuffer; variable
63 sk_sp<const GrGpuBuffer> fVertexBufferIfNoIDSupport;
/external/skia/src/gpu/ganesh/gl/
DGrGLBuffer.h17 class GrGLBuffer : public GrGpuBuffer {
62 using INHERITED = GrGpuBuffer;

123