Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkPathMeasure.cpp37 SkScalar startT, SkScalar stopT, SkPath* dst) { in SkPathMeasure_segTo() argument
39 SkASSERT(stopT >= 0 && stopT <= SK_Scalar1); in SkPathMeasure_segTo()
40 SkASSERT(startT <= stopT); in SkPathMeasure_segTo()
42 if (startT == stopT) { in SkPathMeasure_segTo()
55 if (SK_Scalar1 == stopT) { in SkPathMeasure_segTo()
58 dst->lineTo(SkScalarInterp(pts[0].fX, pts[1].fX, stopT), in SkPathMeasure_segTo()
59 SkScalarInterp(pts[0].fY, pts[1].fY, stopT)); in SkPathMeasure_segTo()
64 if (SK_Scalar1 == stopT) { in SkPathMeasure_segTo()
67 SkChopQuadAt(pts, tmp0, stopT); in SkPathMeasure_segTo()
72 if (SK_Scalar1 == stopT) { in SkPathMeasure_segTo()
[all …]
DSkPathMeasurePriv.h27 SkScalar startT, SkScalar stopT, SkPath* dst);
/external/skia/src/shaders/gradients/
DSkGradientShader.cpp1558 const char* stopT = uniformHandler->getUniformCStr(fHardStopT); in emitColor() local
1578 fragBuilder->codeAppendf("if (clamp_t < %s) {", stopT); in emitColor()
1581 fragBuilder->codeAppendf(" relative_t = clamp_t / %s;", stopT); in emitColor()
1585 fragBuilder->codeAppendf(" relative_t = (clamp_t - %s) / (1 - %s);", stopT, stopT); in emitColor()