Home
last modified time | relevance | path

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

12

/third_party/flutter/skia/tests/
DPathMeasureTest.cpp24 SkPathMeasure meas(path, false); in test_small_segment3() local
25 meas.getLength(); in test_small_segment3()
40 SkPathMeasure meas(path, false); in test_small_segment2() local
41 meas.getLength(); in test_small_segment2()
58 SkPathMeasure meas(path, false); in test_small_segment() local
73 meas.getLength(); in test_small_segment()
84 SkPathMeasure meas(path, true); in DEF_TEST() local
85 SkScalar length = meas.getLength(); in DEF_TEST()
91 meas.setPath(&path, false); in DEF_TEST()
92 length = meas.getLength(); in DEF_TEST()
[all …]
/third_party/skia/tests/
DPathMeasureTest.cpp25 SkPathMeasure meas(path, false); in test_small_segment3() local
26 meas.getLength(); in test_small_segment3()
41 SkPathMeasure meas(path, false); in test_small_segment2() local
42 meas.getLength(); in test_small_segment2()
59 SkPathMeasure meas(path, false); in test_small_segment() local
74 meas.getLength(); in test_small_segment()
85 SkPathMeasure meas(path, true); in DEF_TEST() local
86 SkScalar length = meas.getLength(); in DEF_TEST()
92 meas.setPath(&path, false); in DEF_TEST()
93 length = meas.getLength(); in DEF_TEST()
[all …]
/third_party/flutter/skia/src/effects/
DSk1DPathEffect.cpp21 SkPathMeasure meas(src, false); in onFilterPath() local
24 SkScalar length = meas.getLength(); in onFilterPath()
27 SkScalar delta = this->next(dst, distance, meas); in onFilterPath()
33 } while (meas.nextContour()); in onFilterPath()
83 SkPathMeasure& meas, SkScalar dist) { in morphpoints() argument
91 if (!meas.getPosTan(dist + sx, &pos, &tangent)) { in morphpoints()
113 static void morphpath(SkPath* dst, const SkPath& src, SkPathMeasure& meas, in morphpath() argument
122 if (morphpoints(dstP, srcP, 1, meas, dist)) { in morphpath()
132 if (morphpoints(dstP, &srcP[1], 2, meas, dist)) { in morphpath()
137 if (morphpoints(dstP, &srcP[1], 2, meas, dist)) { in morphpath()
[all …]
DSkDiscretePathEffect.cpp88 SkPathMeasure meas(src, doFill); in onFilterPath() local
91 uint32_t seed = fSeedAssist ^ SkScalarRoundToInt(meas.getLength()); in onFilterPath()
99 SkScalar length = meas.getLength(); in onFilterPath()
102 meas.getSegment(0, length, dst, true); // to short for us to mangle in onFilterPath()
110 if (meas.isClosed()) { in onFilterPath()
115 if (meas.getPosTan(distance, &p, &v)) { in onFilterPath()
121 if (meas.getPosTan(distance, &p, &v)) { in onFilterPath()
126 if (meas.isClosed()) { in onFilterPath()
130 } while (meas.nextContour()); in onFilterPath()
DSkTrimPathEffect.cpp65 SkPathMeasure meas(src, false); in onFilterPath() local
67 len += meas.getLength(); in onFilterPath()
68 } while (meas.nextContour()); in onFilterPath()
/third_party/skia/src/effects/
DSk1DPathEffect.cpp25 SkPathMeasure meas(src, false); in onFilterPath() local
28 SkScalar length = meas.getLength(); in onFilterPath()
31 SkScalar delta = this->next(dst, distance, meas); in onFilterPath()
37 } while (meas.nextContour()); in onFilterPath()
136 SkPathMeasure& meas, SkScalar dist) { in morphpoints() argument
144 if (!meas.getPosTan(dist + sx, &pos, &tangent)) { in morphpoints()
166 static void morphpath(SkPath* dst, const SkPath& src, SkPathMeasure& meas, in morphpath() argument
175 if (morphpoints(dstP, srcP, 1, meas, dist)) { in morphpath()
185 if (morphpoints(dstP, &srcP[1], 2, meas, dist)) { in morphpath()
190 if (morphpoints(dstP, &srcP[1], 2, meas, dist)) { in morphpath()
[all …]
DSkDiscretePathEffect.cpp80 SkPathMeasure meas(src, doFill); in onFilterPath() local
83 uint32_t seed = fSeedAssist ^ SkScalarRoundToInt(meas.getLength()); in onFilterPath()
91 SkScalar length = meas.getLength(); in onFilterPath()
99 meas.getSegment(0, length, dst, true); // to short for us to mangle in onFilterPath()
107 if (meas.isClosed()) { in onFilterPath()
112 if (meas.getPosTan(distance, &p, &v)) { in onFilterPath()
118 if (meas.getPosTan(distance, &p, &v)) { in onFilterPath()
123 if (meas.isClosed()) { in onFilterPath()
127 } while (meas.nextContour()); in onFilterPath()
DSkTrimPathEffect.cpp60 SkPathMeasure meas(src, false); in onFilterPath() local
62 len += meas.getLength(); in onFilterPath()
63 } while (meas.nextContour()); in onFilterPath()
/third_party/skia/src/utils/
DSkDashPath.cpp364 SkPathMeasure meas(*srcPtr, false, rec->getResScale()); in InternalFilter() local
367 bool skipFirstSegment = meas.isClosed(); in InternalFilter()
369 SkScalar length = meas.getLength(); in InternalFilter()
403 meas.getSegment(SkDoubleToScalar(distance), in InternalFilter()
425 if (meas.isClosed() && is_even(initialDashIndex) && in InternalFilter()
427 meas.getSegment(0, initialDashLength, dst, !addedSegment); in InternalFilter()
430 } while (meas.nextContour()); in InternalFilter()
/third_party/flutter/skia/src/utils/
DSkDashPath.cpp359 SkPathMeasure meas(*srcPtr, false, rec->getResScale()); in InternalFilter() local
362 bool skipFirstSegment = meas.isClosed(); in InternalFilter()
364 SkScalar length = meas.getLength(); in InternalFilter()
398 meas.getSegment(SkDoubleToScalar(distance), in InternalFilter()
420 if (meas.isClosed() && is_even(initialDashIndex) && in InternalFilter()
422 meas.getSegment(0, initialDashLength, dst, !addedSegment); in InternalFilter()
425 } while (meas.nextContour()); in InternalFilter()
/third_party/skia/gm/
Doverstroke.cpp89 SkPathMeasure meas(path, false); in ribs_path() local
90 SkScalar length = meas.getLength(); in ribs_path()
94 if (meas.getPosTan(accum, &pos, &tan)) { in ribs_path()
Darcto.cpp225 SkPathMeasure meas(path, false);
226 SkScalar length = meas.getLength();
Daddarc.cpp101 SkPathMeasure meas(SkPathBuilder().addArc(oval, 0, deg).detach(), false);
104 if (meas.getPosTan(arcLen, &pos, nullptr)) {
/third_party/flutter/skia/gm/
Doverstroke.cpp99 SkPathMeasure meas(path, false); in ribs_path() local
100 SkScalar length = meas.getLength(); in ribs_path()
104 if (meas.getPosTan(accum, &pos, &tan)) { in ribs_path()
Darcto.cpp228 SkPathMeasure meas(path, false);
229 SkScalar length = meas.getLength();
Daddarc.cpp103 SkPathMeasure meas(path, false);
106 if (meas.getPosTan(arcLen, &pos, nullptr)) {
Ddrawatlas.cpp133 SkPathMeasure meas(path, false); local
156 if (!meas.getPosTan(xy[i].x() + offset, &pos, &tan)) {
/third_party/skia/modules/canvaskit/
Dfont.js199 var meas = new CanvasKit.ContourMeasureIter(path, false, 1);
200 var cont = meas.next();
209 cont = meas.next();
235 meas.delete();
/third_party/skia/modules/canvaskit/tests/
Dpath.spec.js398 const meas = new CanvasKit.ContourMeasureIter(path, false, 1); constant
399 let cont = meas.next();
419 cont = meas.next();
424 expect(meas.next()).toBeFalsy();
426 meas.delete();
/third_party/skia/samplecode/
DSamplePatch.cpp325 auto meas = SkContourMeasureIter(path, false).next(); in make_verts() local
326 if (!meas) { in make_verts()
336 for (SkScalar distance = 0; distance < meas->length(); distance += step) { in make_verts()
338 if (!meas->getMatrix(distance, &mx)) { in make_verts()
DSampleQuadStroker.cpp312 SkPathMeasure meas(path, false); in draw_ribs() local
313 SkScalar total = meas.getLength(); in draw_ribs()
323 if (meas.getPosTan(dist, &pos, &tan)) { in draw_ribs()
345 SkPathMeasure meas(path, false); in draw_t_divs() local
346 SkScalar total = meas.getLength(); in draw_t_divs()
DSampleVariableWidthStroker.cpp345 SkPathMeasure meas(fPath, false); in totalLength() local
346 return meas.getLength(); in totalLength()
546 PathVerbMeasure meas(path); in getFillPath() local
548 ? meas.totalLength() in getFillPath()
561 ? (meas.currentVerbLength() / totalPathLength) in getFillPath()
604 meas.nextVerb(); in getFillPath()
/third_party/flutter/skia/samplecode/
DSamplePatch.cpp326 auto meas = SkContourMeasureIter(path, false).next(); in make_verts() local
327 if (!meas) { in make_verts()
337 for (SkScalar distance = 0; distance < meas->length(); distance += step) { in make_verts()
339 if (!meas->getMatrix(distance, &mx)) { in make_verts()
DSampleQuadStroker.cpp319 SkPathMeasure meas(path, false); in draw_ribs() local
320 SkScalar total = meas.getLength(); in draw_ribs()
330 if (meas.getPosTan(dist, &pos, &tan)) { in draw_ribs()
352 SkPathMeasure meas(path, false); in draw_t_divs() local
353 SkScalar total = meas.getLength(); in draw_t_divs()
/third_party/flutter/skia/modules/canvaskit/
Dinterface.js672 var meas = new CanvasKit.SkPathMeasure(path, false, 1);
677 if (dist > meas.getLength()) {
679 if (!meas.nextContour()) {
690 var xycs = meas.getPosTan(dist);
704 meas.delete();

12