/third_party/flutter/skia/tests/ |
D | PathMeasureTest.cpp | 24 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/ |
D | PathMeasureTest.cpp | 25 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/ |
D | Sk1DPathEffect.cpp | 21 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 …]
|
D | SkDiscretePathEffect.cpp | 88 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()
|
D | SkTrimPathEffect.cpp | 65 SkPathMeasure meas(src, false); in onFilterPath() local 67 len += meas.getLength(); in onFilterPath() 68 } while (meas.nextContour()); in onFilterPath()
|
/third_party/skia/src/effects/ |
D | Sk1DPathEffect.cpp | 25 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 …]
|
D | SkDiscretePathEffect.cpp | 80 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()
|
D | SkTrimPathEffect.cpp | 60 SkPathMeasure meas(src, false); in onFilterPath() local 62 len += meas.getLength(); in onFilterPath() 63 } while (meas.nextContour()); in onFilterPath()
|
/third_party/skia/src/utils/ |
D | SkDashPath.cpp | 364 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/ |
D | SkDashPath.cpp | 359 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/ |
D | overstroke.cpp | 89 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()
|
D | arcto.cpp | 225 SkPathMeasure meas(path, false); 226 SkScalar length = meas.getLength();
|
D | addarc.cpp | 101 SkPathMeasure meas(SkPathBuilder().addArc(oval, 0, deg).detach(), false); 104 if (meas.getPosTan(arcLen, &pos, nullptr)) {
|
/third_party/flutter/skia/gm/ |
D | overstroke.cpp | 99 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()
|
D | arcto.cpp | 228 SkPathMeasure meas(path, false); 229 SkScalar length = meas.getLength();
|
D | addarc.cpp | 103 SkPathMeasure meas(path, false); 106 if (meas.getPosTan(arcLen, &pos, nullptr)) {
|
D | drawatlas.cpp | 133 SkPathMeasure meas(path, false); local 156 if (!meas.getPosTan(xy[i].x() + offset, &pos, &tan)) {
|
/third_party/skia/modules/canvaskit/ |
D | font.js | 199 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/ |
D | path.spec.js | 398 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/ |
D | SamplePatch.cpp | 325 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()
|
D | SampleQuadStroker.cpp | 312 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()
|
D | SampleVariableWidthStroker.cpp | 345 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/ |
D | SamplePatch.cpp | 326 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()
|
D | SampleQuadStroker.cpp | 319 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/ |
D | interface.js | 672 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();
|