Lines Matching refs:vertexStride
65 size_t vertexStride, in extract_verts() argument
73 *((SkPoint*)((intptr_t)verts + i * vertexStride)) = tess.point(i); in extract_verts()
83 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = scaledColor; in extract_verts()
85 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = color; in extract_verts()
86 *reinterpret_cast<float*>(verts + i * vertexStride + sizeof(GrColor)) = in extract_verts()
163 size_t vertexStride, void* vertices, int indexCount, uint16_t* indices) const { in draw() argument
170 void* verts = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, in draw()
176 memcpy(verts, vertices, vertexCount * vertexStride); in draw()
206 size_t vertexStride = gp->getVertexStride(); in onPrepareDraws() local
209 vertexStride == sizeof(GrDefaultGeoProcFactory::PositionColorAttr) : in onPrepareDraws()
210 vertexStride == sizeof(GrDefaultGeoProcFactory::PositionColorCoverageAttr)); in onPrepareDraws()
218 uint8_t* vertices = (uint8_t*) sk_malloc_throw(maxVertices * vertexStride); in onPrepareDraws()
233 this->draw(target, this->pipeline(), vertexCount, vertexStride, vertices, in onPrepareDraws()
241 vertices = (uint8_t*) sk_realloc_throw(vertices, maxVertices * vertexStride); in onPrepareDraws()
248 extract_verts(tess, vertices + vertexStride * vertexCount, vertexStride, args.fColor, in onPrepareDraws()
253 this->draw(target, this->pipeline(), vertexCount, vertexStride, vertices, indexCount, in onPrepareDraws()