Home
last modified time | relevance | path

Searched refs:GrVertexWriter (Results 1 – 25 of 33) sorted by relevance

12

/external/skia/src/gpu/
DGrVertexWriter.h25 struct GrVertexWriter { struct
28 GrVertexWriter() = default; argument
29 GrVertexWriter(void* ptr) : fPtr(ptr) {} in GrVertexWriter() function
30 GrVertexWriter(const GrVertexWriter&) = delete;
31 GrVertexWriter(GrVertexWriter&& that) { *this = std::move(that); } in GrVertexWriter() function
33 GrVertexWriter& operator=(const GrVertexWriter&) = delete; argument
34 GrVertexWriter& operator=(GrVertexWriter&& that) {
40 bool operator==(const GrVertexWriter& that) const { return fPtr == that.fPtr; }
43 GrVertexWriter makeOffset(size_t offsetInBytes) const { in makeOffset() argument
53 friend struct GrVertexWriter; argument
DGrVertexChunkArray.h54 SK_ALWAYS_INLINE GrVertexWriter appendVertices(int count) { in appendVertices()
65 SK_ALWAYS_INLINE GrVertexWriter appendVertex() { return this->appendVertices(1); } in appendVertex()
97 GrVertexWriter fCurrChunkVertexWriter;
DGrColor.h113 friend struct GrVertexWriter;
/external/skia/src/gpu/tessellate/
DGrStrokeIndirectTessellator.h13 struct GrVertexWriter;
39 void writeBuffers(GrDrawIndirectWriter*, GrVertexWriter*, const SkMatrix&,
DGrStrokeFixedCountTessellator.cpp122 if (GrVertexWriter writer = fChunkBuilder.appendVertex()) { in writeCircle()
149 } else if (GrVertexWriter writer = fChunkBuilder.appendVertex()) { in writeStroke()
157 void writeDynamicAttribs(GrVertexWriter* writer) { in writeDynamicAttribs()
DGrStrokeIndirectTessellator.cpp645 BinningInstanceWriter(GrDrawIndirectWriter* indirectWriter, GrVertexWriter* instanceWriter, in BinningInstanceWriter()
734 GrVertexWriter fInstanceWriters[kNumBins];
736 SkDEBUGCODE(GrVertexWriter fEndWriters[kNumBins];)
769 GrVertexWriter instanceWriter = {target->makeVertexSpace(fShader.instanceStride(), in prepare()
792 GrVertexWriter* instanceWriter, in writeBuffers()
DGrStrokeHardwareTessellator.cpp227 if (GrVertexWriter patchWriter = fChunkBuilder.appendVertex()) { in writePatchTo()
565 if (GrVertexWriter patchWriter = fChunkBuilder.appendVertex()) { in internalJoinTo()
585 SK_ALWAYS_INLINE void writeDynamicAttribs(GrVertexWriter* patchWriter) { in writeDynamicAttribs()
/external/skia/src/gpu/ops/
DGrQuadPerEdgeAA.h26 struct GrVertexWriter;
156 typedef void (*WriteQuadProc)(GrVertexWriter* vertices, const VertexSpec& spec,
164 GrVertexWriter fVertexWriter;
DGrQuadPerEdgeAA.cpp30 static void write_quad_generic(GrVertexWriter* vb, const GrQuadPerEdgeAA::VertexSpec& spec, in write_quad_generic()
34 static constexpr auto If = GrVertexWriter::If<float>; in write_quad_generic()
77 static void write_2d_color(GrVertexWriter* vb, const GrQuadPerEdgeAA::VertexSpec& spec, in write_2d_color()
104 static void write_2d_uv(GrVertexWriter* vb, const GrQuadPerEdgeAA::VertexSpec& spec, in write_2d_uv()
124 static void write_2d_color_uv(GrVertexWriter* vb, const GrQuadPerEdgeAA::VertexSpec& spec, in write_2d_color_uv()
150 static void write_2d_cov_uv(GrVertexWriter* vb, const GrQuadPerEdgeAA::VertexSpec& spec, in write_2d_cov_uv()
177 static void write_2d_uv_strict(GrVertexWriter* vb, const GrQuadPerEdgeAA::VertexSpec& spec, in write_2d_uv_strict()
197 static void write_2d_color_uv_strict(GrVertexWriter* vb, const GrQuadPerEdgeAA::VertexSpec& spec, in write_2d_color_uv_strict()
223 static void write_2d_cov_uv_strict(GrVertexWriter* vb, const GrQuadPerEdgeAA::VertexSpec& spec, in write_2d_cov_uv_strict()
DGrStrokeRectOp.cpp485 void generateAAStrokeRectGeometry(GrVertexWriter& vertices,
571 GrVertexWriter vertices{ helper.vertices() }; in onPrepareDraws()
732 void AAStrokeRectOp::generateAAStrokeRectGeometry(GrVertexWriter& vertices, in generateAAStrokeRectGeometry()
754 return GrVertexWriter::TriFanFromRect(r.makeInset(dx, dy)); in generateAAStrokeRectGeometry()
758 return GrVertexWriter::If(!tweakAlphaForCoverage, coverage); in generateAAStrokeRectGeometry()
815 vertices.writeQuad(GrVertexWriter::TriFanFromRect(devInside), in generateAAStrokeRectGeometry()
820 vertices.writeQuad(GrVertexWriter::TriFanFromRect(devInside), in generateAAStrokeRectGeometry()
DGrRegionOp.cpp125 GrVertexWriter vertices{helper.vertices()}; in onPrepareDraws()
136 vertices.writeQuad(GrVertexWriter::TriStripFromRect(rect), color); in onPrepareDraws()
DGrSmallPathRenderer.cpp259 GrVertexWriter vertices{ target->makeVertexSpace( in onPrepareDraws()
553 void writePathVertices(GrVertexWriter& vertices, in writePathVertices()
564 auto texCoords = GrVertexWriter::TriStripFromUVs(shapeData->fAtlasLocator.getUVs()); in writePathVertices()
571 vertices.writeQuad(GrVertexWriter::TriStripFromRect(translatedBounds), in writePathVertices()
DGrLatticeOp.cpp243 GrVertexWriter vertices{helper.vertices()}; in onPrepareDraws()
284 vertices.writeQuad(GrVertexWriter::TriStripFromRect(dstR), in onPrepareDraws()
285 GrVertexWriter::TriStripFromRect(texCoords), in onPrepareDraws()
DGrOvalOpFactory.cpp38 static inline GrVertexWriter::TriStrip<float> origin_centered_tri_strip(float x, float y) { in origin_centered_tri_strip()
39 return GrVertexWriter::TriStrip<float>{ -x, -y, x, y }; in origin_centered_tri_strip()
1306 GrVertexWriter vertices{target->makeVertexSpace(fProgramInfo->geomProc().vertexStride(), in onPrepareDraws()
1668 GrVertexWriter vertices{target->makeVertexSpace(fProgramInfo->geomProc().vertexStride(), in onPrepareDraws()
1998 GrVertexWriter verts{helper.vertices()}; in onPrepareDraws()
2027 verts.writeQuad(GrVertexWriter::TriStripFromRect(ellipse.fDevBounds), in onPrepareDraws()
2030 GrVertexWriter::If(fUseScale, std::max(xRadius, yRadius)), in onPrepareDraws()
2267 GrVertexWriter verts{helper.vertices()}; in onPrepareDraws()
2291 verts.writeQuad(GrVertexWriter::TriStripFromRect(ellipse.fBounds), in onPrepareDraws()
2294 GrVertexWriter::If(fUseScale, std::max(xRadius, yRadius)), in onPrepareDraws()
[all …]
DGrAALinearizingConvexPathRenderer.cpp96 GrVertexWriter verts{vertData}; in extract_verts()
102 verts.write(tess.point(i), color, GrVertexWriter::If(localCoordsMatrix, lc), in extract_verts()
/external/skia/tools/gpu/
DTestOps.cpp205 GrVertexWriter writer{helper.vertices()}; in onPrepareDraws()
206 auto pos = GrVertexWriter::TriStripFromRect(fDrawRect); in onPrepareDraws()
207 auto local = GrVertexWriter::TriStripFromRect(fLocalRect); in onPrepareDraws()
/external/skqp/src/gpu/ops/
DGrStrokeRectOp.cpp430 void generateAAStrokeRectGeometry(GrVertexWriter& vertices,
484 GrVertexWriter vertices{ helper.vertices() }; in onPrepareDraws()
632 void AAStrokeRectOp::generateAAStrokeRectGeometry(GrVertexWriter& vertices, in generateAAStrokeRectGeometry()
666 return GrVertexWriter::TriFanFromRect(r.makeInset(dx, dy)); in generateAAStrokeRectGeometry()
670 return GrVertexWriter::If(!tweakAlphaForCoverage, coverage); in generateAAStrokeRectGeometry()
720 vertices.writeQuad(GrVertexWriter::TriFanFromRect(devInside), in generateAAStrokeRectGeometry()
725 vertices.writeQuad(GrVertexWriter::TriFanFromRect(devInside), in generateAAStrokeRectGeometry()
DGrRegionOp.cpp120 GrVertexWriter vertices{helper.vertices()}; in onPrepareDraws()
131 vertices.writeQuad(GrVertexWriter::TriStripFromRect(rect), color); in onPrepareDraws()
DGrLatticeOp.cpp234 GrVertexWriter vertices{helper.vertices()}; in onPrepareDraws()
275 vertices.writeQuad(GrVertexWriter::TriStripFromRect(dstR), in onPrepareDraws()
276 GrVertexWriter::TriStripFromRect(texCoords), in onPrepareDraws()
DGrOvalOpFactory.cpp36 static inline GrVertexWriter::TriStrip<float> origin_centered_tri_strip(float x, float y) { in origin_centered_tri_strip()
37 return GrVertexWriter::TriStrip<float>{ -x, -y, x, y }; in origin_centered_tri_strip()
1171 GrVertexWriter vertices{target->makeVertexSpace(gp->vertexStride(), fVertCount, in onPrepareDraws()
1496 GrVertexWriter vertices{target->makeVertexSpace(gp->vertexStride(), fVertCount, in onPrepareDraws()
1773 GrVertexWriter verts{helper.vertices()}; in onPrepareDraws()
1801 verts.writeQuad(GrVertexWriter::TriStripFromRect(ellipse.fDevBounds), in onPrepareDraws()
1990 GrVertexWriter verts{helper.vertices()}; in onPrepareDraws()
2014 verts.writeQuad(GrVertexWriter::TriStripFromRect(ellipse.fBounds), in onPrepareDraws()
2299 static void FillInOverstrokeVerts(GrVertexWriter& verts, const SkRect& bounds, SkScalar smInset, in FillInOverstrokeVerts()
2364 GrVertexWriter verts{target->makeVertexSpace(gp->vertexStride(), fVertCount, in onPrepareDraws()
[all …]
DGrSmallPathRenderer.cpp379 GrVertexWriter vertices{target->makeVertexSpace(kVertexStride, in onPrepareDraws()
745 GrVertexWriter& vertices, in writePathVertices()
756 GrVertexWriter::TriStrip<uint16_t> texCoords{ in writePathVertices()
769 vertices.writeQuad(GrVertexWriter::TriStripFromRect(translatedBounds), in writePathVertices()
DGrAAConvexPathRenderer.cpp355 GrVertexWriter& verts, in create_vertices()
447 GrVertexWriter::Skip<SkPoint> skipUVs; in create_vertices()
767 GrVertexWriter verts{target->makeVertexSpace(kVertexStride, vertexCount, in onPrepareDraws()
DGrQuadPerEdgeAA.cpp334 static void write_quad(GrVertexWriter* vb, const GrQuadPerEdgeAA::VertexSpec& spec, in write_quad()
340 static constexpr auto If = GrVertexWriter::If<float>; in write_quad()
421 GrVertexWriter vb{vertices}; in Tessellate()
/external/skqp/src/gpu/
DGrVertexWriter.h24 struct GrVertexWriter { struct
33 friend struct GrVertexWriter; argument
/external/skqp/include/private/
DGrColor.h108 friend struct GrVertexWriter;

12