Home
last modified time | relevance | path

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

/external/skia/src/gpu/tessellate/
DGrStrokeIterator.h284 SkVector lastTangent; in fillSquareCapPoints() local
289 lastTangent = lastPts[3] - lastPts[2]; in fillSquareCapPoints()
290 if (!lastTangent.isZero()) { in fillSquareCapPoints()
296 lastTangent = lastPts[2] - lastPts[1]; in fillSquareCapPoints()
297 if (!lastTangent.isZero()) { in fillSquareCapPoints()
302 lastTangent = lastPts[1] - lastPts[0]; in fillSquareCapPoints()
303 SkASSERT(!lastTangent.isZero()); in fillSquareCapPoints()
310 lastTangent *= (.5f * fStroke->getWidth()) / lastTangent.length(); in fillSquareCapPoints()
313 lastTangent *= .5f / fViewMatrix->mapVector(lastTangent.fX, lastTangent.fY).length(); in fillSquareCapPoints()
316 fEndingCapPts = {lastPoint, lastPoint + lastTangent}; in fillSquareCapPoints()
DGrStrokeHardwareTessellator.cpp311 SkVector lastTangent = contourEndpoint - fLastControlPoint; in writeCaps() local
314 lastTangent *= (.5f * stroke.getWidth()) / lastTangent.length(); in writeCaps()
317 lastTangent *= in writeCaps()
318 .5f / viewMatrix.mapVector(lastTangent.fX, lastTangent.fY).length(); in writeCaps()
320 this->writeLineTo(strokeJoinType, contourEndpoint, contourEndpoint + lastTangent); in writeCaps()
/external/skia/tests/
DStrokeIndirectTest.cpp470 SkVector lastTangent = p[0] - instance->fLastControlPoint; in verifyBuffers() local
471 rotation += SkMeasureAngleBetweenVectors(lastTangent, tan0); in verifyBuffers()