Lines Matching refs:lines
82 MSAALineVertices& lines) { in append_contour_edge_indices() argument
83 *(lines.nextIndex++) = fanCenterIdx; in append_contour_edge_indices()
84 *(lines.nextIndex++) = edgeV0Idx; in append_contour_edge_indices()
85 *(lines.nextIndex++) = edgeV0Idx + 1; in append_contour_edge_indices()
88 static inline void add_quad(MSAALineVertices& lines, MSAAQuadVertices& quads, const SkPoint pts[], in add_quad() argument
90 SkASSERT(lines.nextVertex < lines.verticesEnd); in add_quad()
91 *lines.nextVertex = { pts[2], color }; in add_quad()
93 int prevIdx = (uint16_t) (lines.nextVertex - lines.vertices - 1); in add_quad()
95 append_contour_edge_indices(subpathLineIdxStart, prevIdx, lines); in add_quad()
98 lines.nextVertex++; in add_quad()
336 MSAALineVertices lines; in onPrepareDraws() local
338 lines.vertices = (MSAALineVertices::Vertex*) target->makeVertexSpace(lineVertexStride, in onPrepareDraws()
342 if (!lines.vertices) { in onPrepareDraws()
346 lines.nextVertex = lines.vertices; in onPrepareDraws()
347 SkDEBUGCODE(lines.verticesEnd = lines.vertices + fMaxLineVertices;) in onPrepareDraws()
359 lines.indices = in onPrepareDraws()
361 if (!lines.indices) { in onPrepareDraws()
365 lines.nextIndex = lines.indices; in onPrepareDraws()
367 lines.indices = nullptr; in onPrepareDraws()
368 lines.nextIndex = nullptr; in onPrepareDraws()
385 if (!this->createGeom(lines, in onPrepareDraws()
394 int lineVertexOffset = (int) (lines.nextVertex - lines.vertices); in onPrepareDraws()
395 int lineIndexOffset = (int) (lines.nextIndex - lines.indices); in onPrepareDraws()
482 bool createGeom(MSAALineVertices& lines, in createGeom() argument
489 uint16_t subpathIdxStart = (uint16_t) (lines.nextVertex - lines.vertices); in createGeom()
502 uint16_t currIdx = (uint16_t) (lines.nextVertex - lines.vertices); in createGeom()
505 SkASSERT(lines.nextVertex < lines.verticesEnd); in createGeom()
506 *(lines.nextVertex++) = { pts[0], color }; in createGeom()
510 uint16_t prevIdx = (uint16_t) (lines.nextVertex - lines.vertices - 1); in createGeom()
512 append_contour_edge_indices(subpathIdxStart, prevIdx, lines); in createGeom()
515 SkASSERT(lines.nextVertex < lines.verticesEnd); in createGeom()
516 *(lines.nextVertex++) = { pts[1], color }; in createGeom()
523 add_quad(lines, quads, quadPts + i * 2, color, isIndexed, in createGeom()
529 add_quad(lines, quads, pts, color, isIndexed, subpathIdxStart); in createGeom()
537 add_quad(lines, quads, &quadPts[i], color, isIndexed, subpathIdxStart); in createGeom()