Lines Matching refs:vertexCount
198 void recordDraw(Target* target, sk_sp<const GrGeometryProcessor> gp, int vertexCount, in recordDraw() argument
200 if (vertexCount == 0 || indexCount == 0) { in recordDraw()
205 void* verts = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, in recordDraw()
211 memcpy(verts, vertices, vertexCount * vertexStride); in recordDraw()
222 mesh->setIndexed(std::move(indexBuffer), indexCount, firstIndex, 0, vertexCount - 1, in recordDraw()
243 int64_t vertexCount = 0; in onPrepareDraws() local
259 if (vertexCount + currentVertices > static_cast<int>(UINT16_MAX)) { in onPrepareDraws()
263 target, gp, vertexCount, vertexStride, vertices, indexCount, indices); in onPrepareDraws()
264 vertexCount = 0; in onPrepareDraws()
267 if (vertexCount + currentVertices > maxVertices) { in onPrepareDraws()
268 maxVertices = SkTMax(vertexCount + currentVertices, maxVertices * 2); in onPrepareDraws()
287 extract_verts(tess, vertices + vertexStride * vertexCount, in onPrepareDraws()
288 GrVertexColor(args.fColor, fWideColor), vertexCount, in onPrepareDraws()
290 vertexCount += currentVertices; in onPrepareDraws()
293 if (vertexCount <= SK_MaxS32 && indexCount <= SK_MaxS32) { in onPrepareDraws()
294 this->recordDraw(target, std::move(gp), vertexCount, vertexStride, vertices, indexCount, in onPrepareDraws()