Home
last modified time | relevance | path

Searched refs:lastTangent (Results 1 – 2 of 2) sorted by relevance

/third_party/skia/src/gpu/tessellate/
DStrokeIterator.h286 SkVector lastTangent; in fillSquareCapPoints() local
291 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()
DStrokeHardwareTessellator.cpp319 SkVector lastTangent = contourEndpoint - fLastControlPoint; in writeCaps() local
322 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()