Home
last modified time | relevance | path

Searched refs:GrBuffer (Results 1 – 25 of 144) sorted by relevance

123456

/external/skqp/src/gpu/
DGrMesh.h38 void setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount, int baseIndex,
40 void setIndexedPatterned(sk_sp<const GrBuffer> indexBuffer, int indexCount, int vertexCount,
43 void setInstanced(sk_sp<const GrBuffer> instanceBuffer, int instanceCount, int baseInstance,
45 void setIndexedInstanced(sk_sp<const GrBuffer>, int indexCount, sk_sp<const GrBuffer>,
48 void setVertexData(sk_sp<const GrBuffer> vertexBuffer, int baseVertex = 0);
52 virtual void sendMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
55 virtual void sendIndexedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer,
57 uint16_t maxIndexValue, const GrBuffer* vertexBuffer,
60 virtual void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer,
62 const GrBuffer* instanceBuffer, int instanceCount,
[all …]
DGrBuffer.cpp12 sk_sp<GrBuffer> GrBuffer::MakeCPUBacked(GrGpu* gpu, size_t sizeInBytes, GrBufferType intendedType, in MakeCPUBacked()
24 return sk_sp<GrBuffer>(new GrBuffer(gpu, sizeInBytes, intendedType, cpuData)); in MakeCPUBacked()
27 GrBuffer::GrBuffer(GrGpu* gpu, size_t sizeInBytes, GrBufferType type, void* cpuData) in GrBuffer() function in GrBuffer
37 GrBuffer::GrBuffer(GrGpu* gpu, size_t sizeInBytes, GrBufferType type, GrAccessPattern pattern) in GrBuffer() function in GrBuffer
47 void GrBuffer::ComputeScratchKeyForDynamicVBO(size_t size, GrBufferType intendedType, in ComputeScratchKeyForDynamicVBO()
61 bool GrBuffer::onUpdateData(const void* src, size_t srcSizeInBytes) { in onUpdateData()
67 void GrBuffer::computeScratchKey(GrScratchKey* key) const { in computeScratchKey()
DGrBufferAllocPool.h17 class GrBuffer; variable
85 void* makeSpace(size_t size, size_t alignment, sk_sp<const GrBuffer>* buffer, size_t* offset);
115 sk_sp<const GrBuffer>* buffer,
119 sk_sp<GrBuffer> getBuffer(size_t size);
124 sk_sp<GrBuffer> fBuffer;
184 sk_sp<const GrBuffer>* buffer,
217 sk_sp<const GrBuffer>* buffer,
258 void* makeSpace(int indexCount, sk_sp<const GrBuffer>* buffer, int* startIndex);
287 sk_sp<const GrBuffer>* buffer,
DGrResourceProvider.h148 sk_sp<const GrBuffer> findOrMakeStaticBuffer(GrBufferType intendedType, size_t size,
164 sk_sp<const GrBuffer> findOrCreatePatternedIndexBuffer(const uint16_t* pattern, in findOrCreatePatternedIndexBuffer()
169 if (auto buffer = this->findByUniqueKey<GrBuffer>(key)) { in findOrCreatePatternedIndexBuffer()
182 sk_sp<const GrBuffer> refQuadIndexBuffer() { in refQuadIndexBuffer()
183 if (auto buffer = this->findByUniqueKey<const GrBuffer>(fQuadIndexBufferKey)) { in refQuadIndexBuffer()
208 sk_sp<GrBuffer> createBuffer(size_t size, GrBufferType intendedType, GrAccessPattern, Flags,
289 sk_sp<const GrBuffer> createPatternedIndexBuffer(const uint16_t* pattern,
295 sk_sp<const GrBuffer> createQuadIndexBuffer();
DGrBuffer.h15 class GrBuffer : public GrGpuResource {
20 static SK_WARN_UNUSED_RESULT sk_sp<GrBuffer> MakeCPUBacked(GrGpu*, size_t sizeInBytes,
99 ~GrBuffer() override { in ~GrBuffer()
104 GrBuffer(GrGpu*, size_t sizeInBytes, GrBufferType, GrAccessPattern);
112 GrBuffer(GrGpu*, size_t sizeInBytes, GrBufferType, void* cpuData);
/external/skia/src/gpu/
DGrSimpleMesh.h22 void set(sk_sp<const GrBuffer> vertexBuffer, int vertexCount, int baseVertex);
23 void setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount, int baseIndex,
25 sk_sp<const GrBuffer> vertexBuffer, int baseVertex);
26 void setIndexedPatterned(sk_sp<const GrBuffer> indexBuffer, int indexCount,
28 sk_sp<const GrBuffer> vertexBuffer, int patternVertexCount,
31 sk_sp<const GrBuffer> fIndexBuffer;
40 sk_sp<const GrBuffer> fVertexBuffer;
47 inline void GrSimpleMesh::set(sk_sp<const GrBuffer> vertexBuffer, int vertexCount, int baseVertex) { in set()
56 inline void GrSimpleMesh::setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount, in setIndexed()
59 sk_sp<const GrBuffer> vertexBuffer, int baseVertex) { in setIndexed()
[all …]
DGrBuffer.h14 class GrBuffer {
16 GrBuffer(const GrBuffer&) = delete;
17 GrBuffer& operator=(const GrBuffer&) = delete;
19 virtual ~GrBuffer() = default;
33 GrBuffer() = default;
DGrOpsRenderPass.h75 void bindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
76 … sk_sp<const GrBuffer> vertexBuffer, GrPrimitiveRestart = GrPrimitiveRestart::kNo);
102 void drawIndirect(const GrBuffer* drawIndirectBuffer, size_t bufferOffset, int drawCount);
110 void drawIndexedIndirect(const GrBuffer* drawIndirectBuffer, size_t bufferOffset,
161 sk_sp<const GrBuffer> fActiveIndexBuffer;
162 sk_sp<const GrBuffer> fActiveVertexBuffer;
163 sk_sp<const GrBuffer> fActiveInstanceBuffer;
184 …virtual void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
185 sk_sp<const GrBuffer> vertexBuffer, GrPrimitiveRestart) = 0;
193 virtual void onDrawIndirect(const GrBuffer*, size_t offset, int drawCount) { in onDrawIndirect() argument
[all …]
DGrBufferAllocPool.h109 void* makeSpace(size_t size, size_t alignment, sk_sp<const GrBuffer>* buffer, size_t* offset);
139 sk_sp<const GrBuffer>* buffer,
143 sk_sp<GrBuffer> getBuffer(size_t size);
148 sk_sp<GrBuffer> fBuffer;
207 sk_sp<const GrBuffer>* buffer,
240 sk_sp<const GrBuffer>* buffer,
281 void* makeSpace(int indexCount, sk_sp<const GrBuffer>* buffer, int* startIndex);
310 sk_sp<const GrBuffer>* buffer,
323 GrDrawIndirectWriter makeSpace(int drawCount, sk_sp<const GrBuffer>* buffer, size_t* offset) { in makeSpace()
332 GrDrawIndexedIndirectWriter makeIndexedSpace(int drawCount, sk_sp<const GrBuffer>* buffer, in makeIndexedSpace()
DGrOpFlushState.h133 void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>*,
135 uint16_t* makeIndexSpace(int indexCount, sk_sp<const GrBuffer>*, int* startIndex) final;
137 sk_sp<const GrBuffer>*, int* startVertex,
140 sk_sp<const GrBuffer>*, int* startIndex,
142 GrDrawIndirectWriter makeDrawIndirectSpace(int drawCount, sk_sp<const GrBuffer>* buffer, in makeDrawIndirectSpace()
147 sk_sp<const GrBuffer>* buffer, in makeDrawIndexedIndirectSpace()
229 void bindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
230 sk_sp<const GrBuffer> vertexBuffer,
251 void drawIndirect(const GrBuffer* drawIndirectBuffer, size_t offset, int drawCount) { in drawIndirect()
254 void drawIndexedIndirect(const GrBuffer* drawIndirectBuffer, size_t offset, int drawCount) { in drawIndexedIndirect()
DGrBufferAllocPool.cpp99 GrBuffer* buffer = fBlocks.back().fBuffer.get(); in deleteBlocks()
128 GrBuffer* buffer = block.fBuffer.get(); in unmap()
147 const GrBuffer* buffer = fBlocks.back().fBuffer.get(); in validate()
152 const GrBuffer* buffer = fBlocks.back().fBuffer.get(); in validate()
157 const GrBuffer* buffer = fBlocks[i].fBuffer.get(); in validate()
161 GrBuffer* buffer = fBlocks[i].fBuffer.get(); in validate()
193 sk_sp<const GrBuffer>* buffer, in makeSpace()
246 sk_sp<const GrBuffer>* buffer, in makeSpaceAtLeast()
299 GrBuffer* buffer = block.fBuffer.get(); in putBack()
332 GrBuffer* buffer = prev.fBuffer.get(); in createBlock()
[all …]
/external/skia/src/gpu/gl/
DGrGLOpsRenderPass.h43 void bindInstanceBuffer(const GrBuffer*, int baseInstance);
44 void bindVertexBuffer(const GrBuffer*, int baseVertex);
61 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
62 sk_sp<const GrBuffer> vertexBuffer, GrPrimitiveRestart) override;
70 void onDrawIndirect(const GrBuffer* drawIndirectBuffer, size_t offset, int drawCount) override;
71 void multiDrawArraysANGLEOrWebGL(const GrBuffer* drawIndirectBuffer, size_t offset,
73 void onDrawIndexedIndirect(const GrBuffer* drawIndirectBuffer, size_t offset,
75 void multiDrawElementsANGLEOrWebGL(const GrBuffer* drawIndirectBuffer, size_t offset,
/external/skqp/src/gpu/mtl/
DGrMtlGpuCommandBuffer.h93 void bindGeometry(const GrBuffer* vertexBuffer, const GrBuffer* instanceBuffer);
97 void sendMeshToGpu(GrPrimitiveType primType, const GrBuffer* vertexBuffer, int vertexCount, in sendMeshToGpu()
103 void sendIndexedMeshToGpu(GrPrimitiveType primType, const GrBuffer* indexBuffer, int indexCount, in sendIndexedMeshToGpu()
105 const GrBuffer* vertexBuffer, int baseVertex, in sendIndexedMeshToGpu()
113 void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
114 int baseVertex, const GrBuffer* instanceBuffer, int instanceCount,
117 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
118 int baseIndex, const GrBuffer* vertexBuffer, int baseVertex,
119 const GrBuffer* instanceBuffer, int instanceCount,
/external/skqp/src/gpu/vk/
DGrVkGpuCommandBuffer.h99 void bindGeometry(const GrBuffer* indexBuffer,
100 const GrBuffer* vertexBuffer,
101 const GrBuffer* instanceBuffer);
119 void sendMeshToGpu(GrPrimitiveType primType, const GrBuffer* vertexBuffer, int vertexCount, in sendMeshToGpu()
125 void sendIndexedMeshToGpu(GrPrimitiveType primType, const GrBuffer* indexBuffer, int indexCount, in sendIndexedMeshToGpu()
127 const GrBuffer* vertexBuffer, int baseVertex, in sendIndexedMeshToGpu()
135 void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
136 int baseVertex, const GrBuffer* instanceBuffer, int instanceCount,
139 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
140 int baseIndex, const GrBuffer* vertexBuffer, int baseVertex,
[all …]
/external/skia/src/gpu/mtl/
DGrMtlOpsRenderPass.h43 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
44 sk_sp<const GrBuffer> vertexBuffer, GrPrimitiveRestart) override;
52 void onDrawIndirect(const GrBuffer* drawIndirectBuffer, size_t bufferOffset,
54 void onDrawIndexedIndirect(const GrBuffer* drawIndirectBuffer, size_t bufferOffset,
64 void setVertexBuffer(id<MTLRenderCommandEncoder>, const GrBuffer*, size_t offset,
/external/skia/tests/
DGrMeshTest.cpp55 sk_sp<const GrBuffer> getIndexBuffer();
57 sk_sp<const GrBuffer> makeIndexBuffer(const uint16_t[], int count);
59 template<typename T> sk_sp<const GrBuffer> makeVertexBuffer(const SkTArray<T>& data) { in makeVertexBuffer()
62 template<typename T> sk_sp<const GrBuffer> makeVertexBuffer(const std::vector<T>& data) { in makeVertexBuffer()
65 template<typename T> sk_sp<const GrBuffer> makeVertexBuffer(const T* data, int count);
69 sk_sp<const GrBuffer> fIndexBuffer;
70 sk_sp<const GrBuffer> fIndexBuffer2;
71 sk_sp<const GrBuffer> fInstBuffer;
72 sk_sp<const GrBuffer> fVertBuffer;
73 sk_sp<const GrBuffer> fVertBuffer2;
[all …]
/external/skia/src/gpu/d3d/
DGrD3DCommandList.h81 void copyTextureRegionToBuffer(sk_sp<const GrBuffer> dst,
99 void addGrBuffer(sk_sp<const GrBuffer> buffer) { in addGrBuffer()
140 SkSTArray<kInitialTrackedResourcesCount, sk_sp<const GrBuffer>> fTrackedGpuBuffers;
175 sk_sp<const GrBuffer> vertexBuffer, size_t vertexStride,
176 sk_sp<const GrBuffer> instanceBuffer, size_t instanceStride);
177 void setIndexBuffer(sk_sp<const GrBuffer> indexBuffer);
224 const GrBuffer* fCurrentVertexBuffer = nullptr;
226 const GrBuffer* fCurrentInstanceBuffer = nullptr;
228 const GrBuffer* fCurrentIndexBuffer = nullptr;
DGrD3DOpsRenderPass.h46 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
47 sk_sp<const GrBuffer> vertexBuffer, GrPrimitiveRestart) override;
59 void onDrawIndirect(const GrBuffer*, size_t offset, int drawCount) override;
60 void onDrawIndexedIndirect(const GrBuffer*, size_t offset, int drawCount) override;
/external/skia/src/gpu/mock/
DGrMockOpsRenderPass.h43 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer, in onBindBuffers()
44 sk_sp<const GrBuffer> vertexBuffer, GrPrimitiveRestart) override {} in onBindBuffers()
49 void onDrawIndirect(const GrBuffer*, size_t, int) override { this->dummyDraw(); } in onDrawIndirect() argument
50 void onDrawIndexedIndirect(const GrBuffer*, size_t, int) override { this->dummyDraw(); } in onDrawIndexedIndirect() argument
DGrMockOpTarget.h44 void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>* buffer, in makeVertexSpace()
56 sk_sp<const GrBuffer>* buffer, int* startVertex, in makeVertexSpaceAtLeast()
68 GrDrawIndirectWriter makeDrawIndirectSpace(int drawCount, sk_sp<const GrBuffer>* buffer, in makeDrawIndirectSpace()
82 sk_sp<const GrBuffer>* buffer, in makeDrawIndexedIndirectSpace()
102 UNIMPL(uint16_t* makeIndexSpace(int, sk_sp<const GrBuffer>*, int*))
103 UNIMPL(uint16_t* makeIndexSpaceAtLeast(int, int, sk_sp<const GrBuffer>*, int*, int*))
/external/skia/src/gpu/ops/
DGrMeshDrawOp.h59 sk_sp<const GrBuffer> indexBuffer, int verticesPerRepetition,
72 void init(Target*, GrPrimitiveType, size_t vertexStride, sk_sp<const GrBuffer> indexBuffer,
169 virtual void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>*,
177 virtual uint16_t* makeIndexSpace(int indexCount, sk_sp<const GrBuffer>*, int* startIndex) = 0;
186 int fallbackVertexCount, sk_sp<const GrBuffer>*,
196 sk_sp<const GrBuffer>*, int* startIndex,
203 virtual GrDrawIndirectWriter makeDrawIndirectSpace(int drawCount, sk_sp<const GrBuffer>* buffer,
211 sk_sp<const GrBuffer>*,
/external/skqp/src/gpu/gl/
DGrGLGpu.h77 GrGLenum bindBuffer(GrBufferType type, const GrBuffer*);
92 void sendMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
95 void sendIndexedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
97 const GrBuffer* vertexBuffer, int baseVertex,
100 void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
101 int baseVertex, const GrBuffer* instanceBuffer, int instanceCount,
104 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
105 int baseIndex, const GrBuffer* vertexBuffer, int baseVertex,
106 const GrBuffer* instanceBuffer, int instanceCount,
190 sk_sp<GrBuffer> onCreateBuffer(size_t size, GrBufferType intendedType, GrAccessPattern,
[all …]
/external/skqp/src/gpu/ccpr/
DGrCCPerFlushResources.h108 sk_sp<const GrBuffer> refIndexBuffer() const { in refIndexBuffer()
112 sk_sp<const GrBuffer> refVertexBuffer() const { in refVertexBuffer()
116 sk_sp<const GrBuffer> refInstanceBuffer() const { in refInstanceBuffer()
134 const sk_sp<const GrBuffer> fIndexBuffer;
135 const sk_sp<const GrBuffer> fVertexBuffer;
136 const sk_sp<GrBuffer> fInstanceBuffer;
/external/skqp/src/gpu/ops/
DGrMeshDrawOp.h37 PatternHelper(Target*, GrPrimitiveType, size_t vertexStride, sk_sp<const GrBuffer>,
48 void init(Target*, GrPrimitiveType, size_t vertexStride, sk_sp<const GrBuffer>,
103 virtual void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>*,
111 virtual uint16_t* makeIndexSpace(int indexCount, sk_sp<const GrBuffer>*, int* startIndex) = 0;
120 int fallbackVertexCount, sk_sp<const GrBuffer>*,
130 sk_sp<const GrBuffer>*, int* startIndex,
/external/skia/src/gpu/tessellate/
DGrPathTessellator.h67 sk_sp<const GrBuffer> fInstanceBuffer;
71 sk_sp<const GrBuffer> fIndirectDrawBuffer;
74 sk_sp<const GrBuffer> fIndirectIndexBuffer;
85 sk_sp<const GrBuffer> fPatchBuffer;

123456