Searched refs:lastTangent (Results 1 – 2 of 2) sorted by relevance
286 SkVector lastTangent; in fillSquareCapPoints() local291 lastTangent = lastPts[3] - lastPts[2]; in fillSquareCapPoints()292 if (!lastTangent.isZero()) { in fillSquareCapPoints()298 lastTangent = lastPts[2] - lastPts[1]; in fillSquareCapPoints()299 if (!lastTangent.isZero()) { in fillSquareCapPoints()304 lastTangent = lastPts[1] - lastPts[0]; in fillSquareCapPoints()305 SkASSERT(!lastTangent.isZero()); in fillSquareCapPoints()312 lastTangent *= (.5f * fStroke->getWidth()) / lastTangent.length(); in fillSquareCapPoints()315 lastTangent *= .5f / fViewMatrix->mapVector(lastTangent.fX, lastTangent.fY).length(); in fillSquareCapPoints()318 fEndingCapPts = {lastPoint, lastPoint + lastTangent}; in fillSquareCapPoints()
319 SkVector lastTangent = contourEndpoint - fLastControlPoint; in writeCaps() local322 lastTangent *= (.5f * stroke.getWidth()) / lastTangent.length(); in writeCaps()325 lastTangent *= in writeCaps()326 .5f / viewMatrix.mapVector(lastTangent.fX, lastTangent.fY).length(); in writeCaps()328 this->writeLineTo(strokeJoinType, contourEndpoint, contourEndpoint + lastTangent); in writeCaps()