Home
last modified time | relevance | path

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

/third_party/skia/src/gpu/tessellate/
DStrokeIterator.h321 SkVector firstTangent = fFirstPtsInContour[1] - fFirstPtsInContour[0]; in fillSquareCapPoints() local
322 if (firstTangent.isZero()) { in fillSquareCapPoints()
325 firstTangent = fFirstPtsInContour[2] - fFirstPtsInContour[0]; in fillSquareCapPoints()
326 if (firstTangent.isZero()) { in fillSquareCapPoints()
328 firstTangent = fFirstPtsInContour[3] - fFirstPtsInContour[0]; in fillSquareCapPoints()
329 SkASSERT(!firstTangent.isZero()); in fillSquareCapPoints()
334 firstTangent *= (-.5f * fStroke->getWidth()) / firstTangent.length(); in fillSquareCapPoints()
337 firstTangent *= in fillSquareCapPoints()
338 -.5f / fViewMatrix->mapVector(firstTangent.fX, firstTangent.fY).length(); in fillSquareCapPoints()
340 fBeginningCapPts = {fFirstPtsInContour[0] + firstTangent, fFirstPtsInContour[0]}; in fillSquareCapPoints()
DStrokeHardwareTessellator.cpp330 SkVector firstTangent = fCurrContourFirstControlPoint - fCurrContourStartPoint; in writeCaps() local
333 firstTangent *= (-.5f * stroke.getWidth()) / firstTangent.length(); in writeCaps()
336 firstTangent *= in writeCaps()
337 -.5f / viewMatrix.mapVector(firstTangent.fX, firstTangent.fY).length(); in writeCaps()
340 fCurrContourStartPoint + firstTangent); in writeCaps()