Lines Matching refs:vertexStride
142 size_t vertexStride,
198 size_t vertexStride = gp->getVertexStride(); in onPrepareDraws() local
201 vertexStride == sizeof(GrDefaultGeoProcFactory::PositionColorAttr) : in onPrepareDraws()
202 vertexStride == sizeof(GrDefaultGeoProcFactory::PositionColorCoverageAttr)); in onPrepareDraws()
212 void* vertices = helper.init(target, kTriangles_GrPrimitiveType, vertexStride, in onPrepareDraws()
223 i * verticesPerInstance * vertexStride, in onPrepareDraws()
224 vertexStride, in onPrepareDraws()
374 size_t vertexStride, in generateAAStrokeRectGeometry() argument
390 SkPoint* fan1Pos = reinterpret_cast<SkPoint*>(verts + outerVertexNum * vertexStride); in generateAAStrokeRectGeometry()
391 SkPoint* fan2Pos = reinterpret_cast<SkPoint*>(verts + 2 * outerVertexNum * vertexStride); in generateAAStrokeRectGeometry()
394 vertexStride); in generateAAStrokeRectGeometry()
431 set_inset_fan(fan0Pos, vertexStride, devOutside, -SK_ScalarHalf, -SK_ScalarHalf); in generateAAStrokeRectGeometry()
433 set_inset_fan(fan1Pos, vertexStride, devOutside, inset, inset); in generateAAStrokeRectGeometry()
435 set_inset_fan(fan2Pos, vertexStride, devInside, -inset, -inset); in generateAAStrokeRectGeometry()
437 set_inset_fan(fan3Pos, vertexStride, devInside, SK_ScalarHalf, SK_ScalarHalf); in generateAAStrokeRectGeometry()
443 devInside.fRight, devInside.fBottom, vertexStride); in generateAAStrokeRectGeometry()
445 devInside.fRight, devInside.fBottom, vertexStride); in generateAAStrokeRectGeometry()
448 SkPoint* fan0AssistPos = reinterpret_cast<SkPoint*>(verts + 4 * vertexStride); in generateAAStrokeRectGeometry()
451 vertexStride); in generateAAStrokeRectGeometry()
453 set_inset_fan(fan0Pos, vertexStride, devOutside, -SK_ScalarHalf, -SK_ScalarHalf); in generateAAStrokeRectGeometry()
454 set_inset_fan(fan0AssistPos, vertexStride, devOutsideAssist, -SK_ScalarHalf, in generateAAStrokeRectGeometry()
457 set_inset_fan(fan1Pos, vertexStride, devOutside, inset, inset); in generateAAStrokeRectGeometry()
458 set_inset_fan(fan1AssistPos, vertexStride, devOutsideAssist, inset, inset); in generateAAStrokeRectGeometry()
461 set_inset_fan(fan2Pos, vertexStride, devInside, -inset, -inset); in generateAAStrokeRectGeometry()
463 set_inset_fan(fan3Pos, vertexStride, devInside, SK_ScalarHalf, SK_ScalarHalf); in generateAAStrokeRectGeometry()
469 devInside.fRight, devInside.fBottom, vertexStride); in generateAAStrokeRectGeometry()
471 devInside.fRight, devInside.fBottom, vertexStride); in generateAAStrokeRectGeometry()
480 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = 0; in generateAAStrokeRectGeometry()
482 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = color; in generateAAStrokeRectGeometry()
483 *reinterpret_cast<float*>(verts + i * vertexStride + sizeof(GrColor)) = 0; in generateAAStrokeRectGeometry()
494 verts += outerVertexNum * vertexStride; in generateAAStrokeRectGeometry()
497 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = scaledColor; in generateAAStrokeRectGeometry()
499 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = color; in generateAAStrokeRectGeometry()
500 *reinterpret_cast<float*>(verts + i * vertexStride + sizeof(GrColor)) = innerCoverage; in generateAAStrokeRectGeometry()
506 verts += (outerVertexNum + innerVertexNum) * vertexStride; in generateAAStrokeRectGeometry()
514 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = scaledColor; in generateAAStrokeRectGeometry()
516 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = color; in generateAAStrokeRectGeometry()
517 *reinterpret_cast<float*>(verts + i * vertexStride + sizeof(GrColor)) = innerCoverage; in generateAAStrokeRectGeometry()