Home
last modified time | relevance | path

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

12345

/third_party/flutter/skia/src/gpu/
DGrMesh.h43 void setIndexed(sk_sp<const GrBuffer> indexBuffer, int indexCount, int baseIndex,
45 void setIndexedPatterned(sk_sp<const GrBuffer> indexBuffer, int indexCount, int vertexCount,
48 void setInstanced(sk_sp<const GrBuffer> instanceBuffer, int instanceCount, int baseInstance,
50 void setIndexedInstanced(sk_sp<const GrBuffer> indexBuffer, int indexCount,
51 sk_sp<const GrBuffer> instanceBuffer, int instanceCount,
54 void setVertexData(sk_sp<const GrBuffer> vertexBuffer, int baseVertex = 0);
58 virtual void sendMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
61 virtual void sendIndexedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer,
63 uint16_t maxIndexValue, const GrBuffer* vertexBuffer,
66 virtual void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer,
[all …]
DGrBuffer.h14 class GrBuffer {
16 GrBuffer(const GrBuffer&) = delete;
17 GrBuffer& operator=(const GrBuffer&) = delete;
19 virtual ~GrBuffer() = default;
33 GrBuffer() = default;
DGrBufferAllocPool.h108 void* makeSpace(size_t size, size_t alignment, sk_sp<const GrBuffer>* buffer, size_t* offset);
138 sk_sp<const GrBuffer>* buffer,
142 sk_sp<GrBuffer> getBuffer(size_t size);
147 sk_sp<GrBuffer> fBuffer;
206 sk_sp<const GrBuffer>* buffer,
239 sk_sp<const GrBuffer>* buffer,
280 void* makeSpace(int indexCount, sk_sp<const GrBuffer>* buffer, int* startIndex);
309 sk_sp<const GrBuffer>* buffer,
DGrBufferAllocPool.cpp97 GrBuffer* buffer = fBlocks.back().fBuffer.get(); in deleteBlocks()
126 GrBuffer* buffer = block.fBuffer.get(); in unmap()
145 const GrBuffer* buffer = fBlocks.back().fBuffer.get(); in validate()
150 const GrBuffer* buffer = fBlocks.back().fBuffer.get(); in validate()
155 const GrBuffer* buffer = fBlocks[i].fBuffer.get(); in validate()
159 GrBuffer* buffer = fBlocks[i].fBuffer.get(); in validate()
183 sk_sp<const GrBuffer>* buffer, in makeSpace()
236 sk_sp<const GrBuffer>* buffer, in makeSpaceAtLeast()
311 GrBuffer* buffer = block.fBuffer.get(); in putBack()
344 GrBuffer* buffer = prev.fBuffer.get(); in createBlock()
[all …]
/third_party/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()
DGrMeshDrawTarget.h52 virtual void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>*,
60 virtual uint16_t* makeIndexSpace(int indexCount, sk_sp<const GrBuffer>*, int* startIndex) = 0;
69 int fallbackVertexCount, sk_sp<const GrBuffer>*,
79 sk_sp<const GrBuffer>*, int* startIndex,
86 virtual GrDrawIndirectWriter makeDrawIndirectSpace(int drawCount, sk_sp<const GrBuffer>* buffer,
94 sk_sp<const GrBuffer>*,
DGrOpFlushState.h132 void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>*,
134 uint16_t* makeIndexSpace(int indexCount, sk_sp<const GrBuffer>*, int* startIndex) final;
136 sk_sp<const GrBuffer>*, int* startVertex,
139 sk_sp<const GrBuffer>*, int* startIndex,
141 GrDrawIndirectWriter makeDrawIndirectSpace(int drawCount, sk_sp<const GrBuffer>* buffer, in makeDrawIndirectSpace()
146 sk_sp<const GrBuffer>* buffer, in makeDrawIndexedIndirectSpace()
228 void bindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
229 sk_sp<const GrBuffer> vertexBuffer,
250 void drawIndirect(const GrBuffer* drawIndirectBuffer, size_t offset, int drawCount) { in drawIndirect()
253 void drawIndexedIndirect(const GrBuffer* drawIndirectBuffer, size_t offset, int drawCount) { in drawIndexedIndirect()
DGrBufferAllocPool.cpp97 GrBuffer* buffer = fBlocks.back().fBuffer.get(); in deleteBlocks()
126 GrBuffer* buffer = block.fBuffer.get(); in unmap()
145 const GrBuffer* buffer = fBlocks.back().fBuffer.get(); in validate()
150 const GrBuffer* buffer = fBlocks.back().fBuffer.get(); in validate()
155 const GrBuffer* buffer = fBlocks[i].fBuffer.get(); in validate()
159 GrBuffer* buffer = fBlocks[i].fBuffer.get(); in validate()
191 sk_sp<const GrBuffer>* buffer, in makeSpace()
244 sk_sp<const GrBuffer>* buffer, in makeSpaceAtLeast()
297 GrBuffer* buffer = block.fBuffer.get(); in putBack()
330 GrBuffer* buffer = prev.fBuffer.get(); in createBlock()
[all …]
/third_party/skia/src/gpu/gl/
DGrGLOpsRenderPass.h43 void bindInstanceBuffer(const GrBuffer*, int baseInstance);
44 void bindVertexBuffer(const GrBuffer*, int baseVertex);
67 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
68 sk_sp<const GrBuffer> vertexBuffer, GrPrimitiveRestart) override;
76 void onDrawIndirect(const GrBuffer* drawIndirectBuffer, size_t offset, int drawCount) override;
77 void multiDrawArraysANGLEOrWebGL(const GrBuffer* drawIndirectBuffer, size_t offset,
79 void onDrawIndexedIndirect(const GrBuffer* drawIndirectBuffer, size_t offset,
81 void multiDrawElementsANGLEOrWebGL(const GrBuffer* drawIndirectBuffer, size_t offset,
DGrGLOpsRenderPass.cpp99 void GrGLOpsRenderPass::onBindBuffers(sk_sp<const GrBuffer> indexBuffer, in onBindBuffers()
100 sk_sp<const GrBuffer> instanceBuffer, in onBindBuffers()
101 sk_sp<const GrBuffer> vertexBuffer, in onBindBuffers()
144 void GrGLOpsRenderPass::bindInstanceBuffer(const GrBuffer* instanceBuffer, int baseInstance) { in bindInstanceBuffer()
163 void GrGLOpsRenderPass::bindVertexBuffer(const GrBuffer* vertexBuffer, int baseVertex) { in bindVertexBuffer()
263 static const void* buffer_offset_to_gl_address(const GrBuffer* drawIndirectBuffer, size_t offset) { in buffer_offset_to_gl_address()
271 void GrGLOpsRenderPass::onDrawIndirect(const GrBuffer* drawIndirectBuffer, size_t offset, in onDrawIndirect()
309 void GrGLOpsRenderPass::multiDrawArraysANGLEOrWebGL(const GrBuffer* drawIndirectBuffer, in multiDrawArraysANGLEOrWebGL()
346 void GrGLOpsRenderPass::onDrawIndexedIndirect(const GrBuffer* drawIndirectBuffer, size_t offset, in onDrawIndexedIndirect()
381 void GrGLOpsRenderPass::multiDrawElementsANGLEOrWebGL(const GrBuffer* drawIndirectBuffer, in multiDrawElementsANGLEOrWebGL()
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlGpuCommandBuffer.h101 void bindGeometry(const GrBuffer* vertexBuffer, size_t vertexOffset,
102 const GrBuffer* instanceBuffer);
106 void sendMeshToGpu(GrPrimitiveType primType, const GrBuffer* vertexBuffer, int vertexCount,
109 void sendIndexedMeshToGpu(GrPrimitiveType primType, const GrBuffer* indexBuffer, int indexCount,
111 const GrBuffer* vertexBuffer, int baseVertex,
114 void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
115 int baseVertex, const GrBuffer* instanceBuffer, int instanceCount,
118 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
119 int baseIndex, const GrBuffer* vertexBuffer, int baseVertex,
120 const GrBuffer* instanceBuffer, int instanceCount,
/third_party/flutter/skia/src/gpu/dawn/
DGrDawnGpuCommandBuffer.h86 void sendMeshToGpu(GrPrimitiveType primType, const GrBuffer* vertexBuffer, int vertexCount, in sendMeshToGpu()
93 const GrBuffer* indexBuffer, int indexCount, int baseIndex, in sendIndexedMeshToGpu()
95 const GrBuffer* vertexBuffer, int baseVertex, in sendIndexedMeshToGpu()
102 const GrBuffer* vertexBuffer, int vertexCount, int baseVertex,
103 const GrBuffer* instanceBuffer, int instanceCount,
107 const GrBuffer* indexBuffer, int indexCount, int baseIndex,
108 const GrBuffer* vertexBuffer, int baseVertex,
109 const GrBuffer* instanceBuffer, int instanceCount,
/third_party/skia/src/gpu/mtl/
DGrMtlOpsRenderPass.h45 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
46 sk_sp<const GrBuffer> vertexBuffer, GrPrimitiveRestart) override;
54 void onDrawIndirect(const GrBuffer* drawIndirectBuffer, size_t bufferOffset,
56 void onDrawIndexedIndirect(const GrBuffer* drawIndirectBuffer, size_t bufferOffset,
66 void setVertexBuffer(GrMtlRenderCommandEncoder*, const GrBuffer*, size_t offset,
/third_party/flutter/skia/src/gpu/vk/
DGrVkGpuCommandBuffer.h156 void sendMeshToGpu(GrPrimitiveType primType, const GrBuffer* vertexBuffer, int vertexCount, in sendMeshToGpu()
162 void sendIndexedMeshToGpu(GrPrimitiveType primType, const GrBuffer* indexBuffer, int indexCount, in sendIndexedMeshToGpu()
164 const GrBuffer* vertexBuffer, int baseVertex, in sendIndexedMeshToGpu()
172 void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
173 int baseVertex, const GrBuffer* instanceBuffer, int instanceCount,
176 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
177 int baseIndex, const GrBuffer* vertexBuffer, int baseVertex,
178 const GrBuffer* instanceBuffer, int instanceCount,
/third_party/skia/tests/
DGrMeshTest.cpp54 sk_sp<const GrBuffer> getIndexBuffer();
56 sk_sp<const GrBuffer> makeIndexBuffer(const uint16_t[], int count);
58 template<typename T> sk_sp<const GrBuffer> makeVertexBuffer(const SkTArray<T>& data) { in makeVertexBuffer()
61 template<typename T> sk_sp<const GrBuffer> makeVertexBuffer(const std::vector<T>& data) { in makeVertexBuffer()
64 template<typename T> sk_sp<const GrBuffer> makeVertexBuffer(const T* data, int count);
68 sk_sp<const GrBuffer> fIndexBuffer;
69 sk_sp<const GrBuffer> fIndexBuffer2;
70 sk_sp<const GrBuffer> fInstBuffer;
71 sk_sp<const GrBuffer> fVertBuffer;
72 sk_sp<const GrBuffer> fVertBuffer2;
[all …]
/third_party/skia/src/gpu/d3d/
DGrD3DCommandList.h81 void copyTextureRegionToBuffer(sk_sp<const GrBuffer> dst,
99 void addGrBuffer(sk_sp<const GrBuffer> buffer) { in addGrBuffer()
138 SkSTArray<kInitialTrackedResourcesCount, sk_sp<const GrBuffer>> fTrackedGpuBuffers;
171 sk_sp<const GrBuffer> vertexBuffer, size_t vertexStride,
172 sk_sp<const GrBuffer> instanceBuffer, size_t instanceStride);
173 void setIndexBuffer(sk_sp<const GrBuffer> indexBuffer);
219 const GrBuffer* fCurrentVertexBuffer = nullptr;
221 const GrBuffer* fCurrentInstanceBuffer = nullptr;
223 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;
/third_party/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->noopDraw(); } in onDrawIndirect() argument
50 void onDrawIndexedIndirect(const GrBuffer*, size_t, int) override { this->noopDraw(); } in onDrawIndexedIndirect() argument
DGrMockOpTarget.h46 void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>* buffer, in makeVertexSpace()
58 sk_sp<const GrBuffer>* buffer, int* startVertex, in makeVertexSpaceAtLeast()
70 GrDrawIndirectWriter makeDrawIndirectSpace(int drawCount, sk_sp<const GrBuffer>* buffer, in makeDrawIndirectSpace()
84 sk_sp<const GrBuffer>* buffer, in makeDrawIndexedIndirectSpace()
104 UNIMPL(uint16_t* makeIndexSpace(int, sk_sp<const GrBuffer>*, int*))
105 UNIMPL(uint16_t* makeIndexSpaceAtLeast(int, int, sk_sp<const GrBuffer>*, int*, int*))
/third_party/flutter/skia/src/gpu/ops/
DGrMeshDrawOp.h38 sk_sp<const GrBuffer> indexBuffer, int verticesPerRepetition,
50 void init(Target*, GrPrimitiveType, size_t vertexStride, sk_sp<const GrBuffer> indexBuffer,
104 virtual void* makeVertexSpace(size_t vertexSize, int vertexCount, sk_sp<const GrBuffer>*,
112 virtual uint16_t* makeIndexSpace(int indexCount, sk_sp<const GrBuffer>*, int* startIndex) = 0;
121 int fallbackVertexCount, sk_sp<const GrBuffer>*,
131 sk_sp<const GrBuffer>*, int* startIndex,
/third_party/skia/src/gpu/vk/
DGrVkOpsRenderPass.h75 void onBindBuffers(sk_sp<const GrBuffer> indexBuffer, sk_sp<const GrBuffer> instanceBuffer,
76 sk_sp<const GrBuffer> vertexBuffer, GrPrimitiveRestart) override;
88 void onDrawIndirect(const GrBuffer* drawIndirectBuffer, size_t offset, int drawCount) override;
89 void onDrawIndexedIndirect(const GrBuffer* drawIndirectBuffer, size_t offset,
/third_party/flutter/skia/src/gpu/gl/
DGrGLGpu.h78 GrGLenum bindBuffer(GrGpuBufferType type, const GrBuffer*);
93 void sendMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
96 void sendIndexedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
98 const GrBuffer* vertexBuffer, int baseVertex,
101 void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
102 int baseVertex, const GrBuffer* instanceBuffer, int instanceCount,
105 void sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* indexBuffer, int indexCount,
106 int baseIndex, const GrBuffer* vertexBuffer, int baseVertex,
107 const GrBuffer* instanceBuffer, int instanceCount,
300 void setupGeometry(const GrBuffer* indexBuffer,
[all …]

12345