Home
last modified time | relevance | path

Searched refs:meas (Results 1 – 5 of 5) sorted by relevance

/external/skia/src/effects/
DSk1DPathEffect.cpp23 SkPathMeasure meas(src, false); in filterPath() local
25 SkScalar length = meas.getLength(); in filterPath()
29 SkScalar delta = this->next(dst, distance, meas); in filterPath()
34 } while (meas.nextContour()); in filterPath()
90 SkPathMeasure& meas, SkScalar dist) in morphpoints() argument
100 meas.getPosTan(dist + sx, &pos, &tangent); in morphpoints()
119 static void morphpath(SkPath* dst, const SkPath& src, SkPathMeasure& meas, SkScalar dist) in morphpath() argument
129 morphpoints(dstP, srcP, 1, meas, dist); in morphpath()
138 morphpoints(dstP, &srcP[1], 2, meas, dist); in morphpath()
142 morphpoints(dstP, &srcP[1], 3, meas, dist); in morphpath()
[all …]
DSkDiscretePathEffect.cpp41 SkPathMeasure meas(src, doFill); in filterPath() local
42 uint32_t seed = SkScalarRound(meas.getLength()); in filterPath()
49 SkScalar length = meas.getLength(); in filterPath()
53 meas.getSegment(0, length, dst, true); // to short for us to mangle in filterPath()
61 if (meas.isClosed()) in filterPath()
66 meas.getPosTan(distance, &p, &v); in filterPath()
72 meas.getPosTan(distance, &p, &v); in filterPath()
76 if (meas.isClosed()) in filterPath()
79 } while (meas.nextContour()); in filterPath()
DSkDashPathEffect.cpp88 SkPathMeasure meas(src, false); in filterPath() local
92 bool skipFirstSegment = meas.isClosed(); in filterPath()
94 SkScalar length = meas.getLength(); in filterPath()
120 meas.getSegment(distance, distance + dlen, dst, true); in filterPath()
138 if (meas.isClosed() && is_even(fInitialDashIndex) && fInitialDashLength > 0) in filterPath()
139 meas.getSegment(0, SkScalarMul(fInitialDashLength, scale), dst, !addedSegment); in filterPath()
140 } while (meas.nextContour()); in filterPath()
/external/skia/tests/
DPathMeasureTest.cpp12 SkPathMeasure meas(path, true); in TestPathMeasure() local
13 SkScalar length = meas.getLength(); in TestPathMeasure()
19 meas.setPath(&path, false); in TestPathMeasure()
20 length = meas.getLength(); in TestPathMeasure()
25 meas.setPath(&path, true); in TestPathMeasure()
26 length = meas.getLength(); in TestPathMeasure()
33 meas.getPosTan(d, &p, &v); in TestPathMeasure()
/external/skia/src/core/
DSkDraw.cpp1741 SkPathMeasure& meas, const SkMatrix& matrix) { in morphpoints() argument
1752 meas.getPosTan(sx, &pos, &tangent); in morphpoints()
1775 static void morphpath(SkPath* dst, const SkPath& src, SkPathMeasure& meas, in morphpath() argument
1784 morphpoints(dstP, srcP, 1, meas, matrix); in morphpath()
1791 morphpoints(dstP, srcP, 2, meas, matrix); in morphpath()
1795 morphpoints(dstP, &srcP[1], 2, meas, matrix); in morphpath()
1799 morphpoints(dstP, &srcP[1], 3, meas, matrix); in morphpath()
1825 SkPathMeasure meas(follow, false); in drawTextOnPath() local
1830 SkScalar pathLen = meas.getLength(); in drawTextOnPath()
1852 morphpath(&tmp, *iterPath, meas, m); in drawTextOnPath()