/external/skia/src/gpu/ |
D | BufferWriter.h | 112 struct VertexWriter : public BufferWriter { struct 115 VertexWriter() = default; argument 117 explicit VertexWriter(void* ptr) : BufferWriter(ptr, Mark()) {} in VertexWriter() function 119 VertexWriter(void* ptr, size_t size) : BufferWriter(ptr, size) {} in VertexWriter() function 120 VertexWriter(void* ptr, Mark end) : BufferWriter(ptr, end) {} in VertexWriter() argument 122 VertexWriter(const VertexWriter&) = delete; 123 VertexWriter(VertexWriter&& that) { *this = std::move(that); } in VertexWriter() function 125 VertexWriter& operator=(const VertexWriter&) = delete; argument 126 VertexWriter& operator=(VertexWriter&& that) { 131 VertexWriter makeOffset(size_t offsetInBytes) const { in makeOffset() argument [all …]
|
/external/skia/src/gpu/tessellate/ |
D | FixedCountBufferUtils.h | 14 namespace skgpu { struct VertexWriter; } 66 static void WriteVertexBuffer(VertexWriter, size_t bufferSize); 68 static void WriteIndexBuffer(VertexWriter, size_t bufferSize); 97 static void WriteVertexBuffer(VertexWriter, size_t bufferSize); 99 static void WriteIndexBuffer(VertexWriter, size_t bufferSize); 137 static void WriteVertexBuffer(VertexWriter, size_t bufferSize);
|
D | FixedCountBufferUtils.cpp | 20 void write_curve_index_buffer_base_index(VertexWriter vertexWriter, in write_curve_index_buffer_base_index() 60 vertexWriter << VertexWriter::Array(indexData.data(), indexData.size()); in write_curve_index_buffer_base_index() 65 void FixedCountCurves::WriteVertexBuffer(VertexWriter vertexWriter, size_t bufferSize) { in WriteVertexBuffer() 98 void FixedCountCurves::WriteIndexBuffer(VertexWriter vertexWriter, size_t bufferSize) { in WriteIndexBuffer() 102 void FixedCountWedges::WriteVertexBuffer(VertexWriter vertexWriter, size_t bufferSize) { in WriteVertexBuffer() 112 void FixedCountWedges::WriteIndexBuffer(VertexWriter vertexWriter, size_t bufferSize) { in WriteIndexBuffer() 124 void FixedCountStrokes::WriteVertexBuffer(VertexWriter vertexWriter, size_t bufferSize) { in WriteVertexBuffer()
|
D | PatchWriter.h | 153 VertexWriter& operator<<(VertexWriter& w, const AttribValue<A, T, Required, Optional>& v) { 306 if (VertexWriter vw = fPatchAllocator.append(fTolerances)) { in writeDeferredStrokePatch() 307 vw << VertexWriter::Array<char>(fDeferredPatch.fData, PatchStride(fAttribs)); in writeDeferredStrokePatch() 491 if (VertexWriter vw = fPatchAllocator.append(fTolerances)) { in writeCircle() 492 vw << VertexWriter::Repeat<4>(p); // p0,p1,p2,p3 = p -> 4 copies in writeCircle() 498 AI void emitPatchAttribs(VertexWriter vertexWriter, in emitPatchAttribs() 506 AI VertexWriter appendPatch() { in appendPatch() 521 if (VertexWriter vw = this->appendPatch()) { in writePatch()
|
/external/skia/src/gpu/graphite/render/ |
D | VerticesRenderStep.cpp | 155 << VertexWriter::If(fHasColor, colors ? colors[state.f0] in writeVertices() 157 << VertexWriter::If(fHasTexCoords, texCoords ? texCoords[state.f0] in writeVertices() 161 << VertexWriter::If(fHasColor, colors ? colors[state.f1] in writeVertices() 163 << VertexWriter::If(fHasTexCoords, texCoords ? texCoords[state.f1] in writeVertices() 167 << VertexWriter::If(fHasColor, colors ? colors[state.f2] in writeVertices() 169 << VertexWriter::If(fHasTexCoords, texCoords ? texCoords[state.f2] in writeVertices()
|
D | DynamicInstancesPatchAllocator.h | 41 VertexWriter append(const tess::LinearTolerances& tolerances) { in append()
|
/external/skia/src/gpu/ganesh/ |
D | GrMeshDrawTarget.cpp | 24 skgpu::VertexWriter GrMeshDrawTarget::makeVertexWriter( in makeVertexWriter() 27 return make_writer<skgpu::VertexWriter>(p, vertexCount, vertexSize); in makeVertexWriter() 36 skgpu::VertexWriter GrMeshDrawTarget::makeVertexWriterAtLeast( in makeVertexWriterAtLeast() 41 return make_writer<skgpu::VertexWriter>(p, *actualVertexCount, vertexSize); in makeVertexWriterAtLeast()
|
D | GrEagerVertexAllocator.h | 33 skgpu::VertexWriter lockWriter(size_t stride, int eagerCount) { in lockWriter() 35 return p ? skgpu::VertexWriter{p, stride * eagerCount} : skgpu::VertexWriter{}; in lockWriter()
|
D | GrMeshDrawTarget.h | 22 struct VertexWriter; 107 skgpu::VertexWriter makeVertexWriter(size_t vertexSize, int vertexCount, 110 skgpu::VertexWriter makeVertexWriterAtLeast(size_t vertexSize, int minVertexCount,
|
D | GrVertexChunkArray.h | 58 SK_ALWAYS_INLINE skgpu::VertexWriter appendVertices(int count) { in appendVertices() 90 skgpu::VertexWriter fCurrChunkVertexWriter;
|
/external/skia/src/gpu/ganesh/geometry/ |
D | GrTriangulator.h | 93 skgpu::VertexWriter polysToTriangles(Poly* polys, 95 skgpu::VertexWriter data) const; 141 skgpu::VertexWriter emitMonotonePoly(const MonotonePoly*, skgpu::VertexWriter data) const; 142 skgpu::VertexWriter emitTriangle(Vertex* prev, Vertex* curr, Vertex* next, int winding, 143 skgpu::VertexWriter data) const; 144 skgpu::VertexWriter emitPoly(const Poly*, skgpu::VertexWriter data) const;
|
D | GrQuad.h | 70 void writeVertex(int cornerIdx, skgpu::VertexWriter& w) const { in writeVertex() 172 template<> struct skgpu::VertexWriter::is_quad<GrQuad> : std::true_type {};
|
D | GrTriangulator.cpp | 84 static inline skgpu::VertexWriter emit_vertex(Vertex* v, in emit_vertex() 86 skgpu::VertexWriter data) { in emit_vertex() 96 static skgpu::VertexWriter emit_triangle(Vertex* v0, Vertex* v1, Vertex* v2, in emit_triangle() 97 bool emitCoverage, skgpu::VertexWriter data) { in emit_triangle() 316 skgpu::VertexWriter GrTriangulator::emitMonotonePoly(const MonotonePoly* monotonePoly, in emitMonotonePoly() 317 skgpu::VertexWriter data) const { in emitMonotonePoly() 364 skgpu::VertexWriter GrTriangulator::emitTriangle( in emitTriangle() 365 Vertex* prev, Vertex* curr, Vertex* next, int winding, skgpu::VertexWriter data) const { in emitTriangle() 437 skgpu::VertexWriter GrTriangulator::emitPoly(const Poly* poly, skgpu::VertexWriter data) const { in emitPoly() 1567 skgpu::VertexWriter GrTriangulator::polysToTriangles(Poly* polys, in polysToTriangles() [all …]
|
/external/skia/src/gpu/graphite/ |
D | BufferManager.h | 40 std::tuple<VertexWriter, BindBufferInfo> getVertexWriter(size_t requiredBytes); 123 VertexWriter getVertexWriter(size_t size, BindBufferInfo* binding); 126 VertexWriter getIndexWriter(size_t size, BindBufferInfo* binding);
|
D | DrawWriter.h | 263 VertexWriter fNextWriter; // writing to the target buffer binding 294 VertexWriter append(unsigned int count) { in append() 349 VertexWriter append(const V& vertexCount, unsigned int instanceCount) { in append() 350 VertexWriter w = this->Appender::append(instanceCount); in append()
|
D | BufferManager.cpp | 106 std::tuple<VertexWriter, BindBufferInfo> DrawBufferManager::getVertexWriter(size_t requiredBytes) { in getVertexWriter() 117 return {VertexWriter(ptr, requiredBytes), bindInfo}; in getVertexWriter() 330 VertexWriter StaticBufferManager::getVertexWriter(size_t size, BindBufferInfo* binding) { in getVertexWriter() 332 return VertexWriter{data, size}; in getVertexWriter() 335 VertexWriter StaticBufferManager::getIndexWriter(size_t size, BindBufferInfo* binding) { in getIndexWriter() 337 return VertexWriter{data, size}; in getIndexWriter()
|
/external/skia/src/gpu/ganesh/ops/ |
D | QuadPerEdgeAA.h | 27 struct VertexWriter; 157 typedef void (*WriteQuadProc)(VertexWriter* vertices, const VertexSpec& spec, 165 VertexWriter fVertexWriter;
|
D | QuadPerEdgeAA.cpp | 39 void write_quad_generic(VertexWriter* vb, in write_quad_generic() 47 static constexpr auto If = VertexWriter::If<float>; in write_quad_generic() 90 void write_2d_color(VertexWriter* vb, in write_2d_color() 122 void write_2d_uv(VertexWriter* vb, in write_2d_uv() 149 void write_2d_color_uv(VertexWriter* vb, in write_2d_color_uv() 181 void write_2d_cov_uv(VertexWriter* vb, in write_2d_cov_uv() 215 void write_2d_uv_strict(VertexWriter* vb, in write_2d_uv_strict() 243 void write_2d_color_uv_strict(VertexWriter* vb, in write_2d_color_uv_strict() 276 void write_2d_cov_uv_strict(VertexWriter* vb, in write_2d_cov_uv_strict()
|
D | AtlasInstancedHelper.cpp | 30 void AtlasInstancedHelper::writeInstanceData(VertexWriter* instanceWriter, in writeInstanceData() 42 VertexWriter::If(fShaderFlags & ShaderFlags::kCheckBounds, in writeInstanceData()
|
D | StrokeRectOp.cpp | 564 void generateAAStrokeRectGeometry(VertexWriter& vertices, 644 VertexWriter vertices{ helper.vertices() }; in onPrepareDraws() 796 void AAStrokeRectOp::generateAAStrokeRectGeometry(VertexWriter& vertices, in generateAAStrokeRectGeometry() 816 return VertexWriter::TriFanFromRect(r.makeInset(dx, dy)); in generateAAStrokeRectGeometry() 822 return VertexWriter::If(!tweakAlphaForCoverage, coverage); in generateAAStrokeRectGeometry() 918 vertices.writeQuad(VertexWriter::TriFanFromRect(interiorAABoundary), in generateAAStrokeRectGeometry() 925 vertices.writeQuad(VertexWriter::TriFanFromRect(devInside), in generateAAStrokeRectGeometry() 930 vertices.writeQuad(VertexWriter::TriFanFromRect(devInside), in generateAAStrokeRectGeometry()
|
D | RegionOp.cpp | 127 VertexWriter vertices{helper.vertices()}; in onPrepareDraws() 138 vertices.writeQuad(VertexWriter::TriStripFromRect(rect), color); in onPrepareDraws()
|
D | DrawAtlasPathOp.cpp | 199 if (VertexWriter instanceWriter = flushState->makeVertexWriter( in onPrepare() 204 << VertexWriter::If(fUsesLocalCoords, in onPrepare()
|
D | AtlasInstancedHelper.h | 73 void writeInstanceData(VertexWriter* instanceWriter, const Instance*) const;
|
/external/skia/tools/gpu/ |
D | TestOps.cpp | 204 skgpu::VertexWriter writer{helper.vertices()}; in onPrepareDraws() 205 auto pos = skgpu::VertexWriter::TriStripFromRect(fDrawRect); in onPrepareDraws() 206 auto local = skgpu::VertexWriter::TriStripFromRect(fLocalRect); in onPrepareDraws()
|
/external/skia/src/gpu/ganesh/tessellate/ |
D | VertexChunkPatchAllocator.h | 32 VertexWriter append(const tess::LinearTolerances& tolerances) { in append()
|