/third_party/skia/src/pathops/ |
H A D | SkPathOpsRect.cpp | 13 void SkDRect::setBounds(const SkDQuad& curve, const SkDQuad& sub, double startT, double endT) { in setBounds() argument 25 double t = startT + (endT - startT) * tValues[index]; in setBounds() 30 void SkDRect::setBounds(const SkDConic& curve, const SkDConic& sub, double startT, double endT) { in setBounds() argument 42 double t = startT + (endT - startT) * tValues[index]; in setBounds() 47 void SkDRect::setBounds(const SkDCubic& curve, const SkDCubic& sub, double startT, double endT) { in setBounds() argument 59 double t = startT + (endT - startT) * tValues[index]; in setBounds()
|
H A D | SkPathOpsCurve.h | 262 static bool line_is_vertical(const SkPoint a[2], SkScalar , double startT, double endT) { in line_is_vertical() argument 265 SkDPoint dst[2] = { line.ptAtT(startT), line.ptAtT(endT) }; in line_is_vertical() 269 static bool quad_is_vertical(const SkPoint a[3], SkScalar , double startT, double endT) { in quad_is_vertical() argument 272 SkDQuad dst = quad.subDivide(startT, endT); in quad_is_vertical() 276 static bool conic_is_vertical(const SkPoint a[3], SkScalar weight, double startT, double endT) { in conic_is_vertical() argument 279 SkDConic dst = conic.subDivide(startT, endT); in conic_is_vertical() 283 static bool cubic_is_vertical(const SkPoint a[4], SkScalar , double startT, double endT) { in cubic_is_vertical() argument 286 SkDCubic dst = cubic.subDivide(startT, endT); in cubic_is_vertical()
|
H A D | SkPathOpsTSect.cpp | 833 double startT = first->fStartT; in extractCoincident() local 844 if (prev && prev->fEndT == startT in extractCoincident() 845 && this->binarySearchCoin(sect2, startT, prev->fStartT - startT, &coinStart, in extractCoincident() 847 && prev->fStartT < coinStart && coinStart < startT in extractCoincident() 1653 double r1t = fC1Index ? fC1Span->endT() : fC1Span->startT(); in addIntersection() 1654 double r2t = fC2Index ? fC2Span->endT() : fC2Span->startT(); in addIntersection() 1671 fC1StartT = span1->startT(); in findEnd() 1673 fC2StartT = span2->startT(); in findEnd() 1681 SkOPOBJASSERT(i, fC1Span == mate.fC1Span || fC1Span->endT() <= mate.fC1Span->startT() in SkDEBUGPARAMS() [all...] |
H A D | SkOpSegment.cpp | 1630 double startT = startPtT.fT; in subDivide() local 1632 if ((startT == 0 || endT == 0) && (startT == 1 || endT == 1)) { in subDivide() 1644 if (startT == 0) { in subDivide() 1654 edge->fQuad[1] = SkDQuad::SubDivide(fPts, edge->fQuad[0], edge->fQuad[2], startT, endT); in subDivide() 1657 startT, endT, &edge->fConic.fWeight); in subDivide() 1660 SkDCubic::SubDivide(fPts, edge->fCubic[0], edge->fCubic[3], startT, endT, &edge->fCubic[1]); in subDivide()
|
H A D | SkOpSegment.h | 107 SkOpSpanBase::Collapsed collapsed(double startT, double endT) const; 127 void debugAddAngle(double startT, double endT);
|
H A D | SkPathOpsCubic.cpp | 723 double SkDCubic::top(const SkDCubic& dCurve, double startT, double endT, SkDPoint*topPt) const { 728 double t = startT + (endT - startT) * extremeTs[index];
|
H A D | SkPathOpsTSect.h | 201 double startT() const { in startT() function in SkTSpan
|
H A D | SkPathOpsCubic.h | 136 double top(const SkDCubic& dCurve, double startT, double endT, SkDPoint*topPt) const;
|
H A D | SkOpAngle.cpp | 1018 double startT = fStart->t(); in setSpans() local 1023 if (!::between(startT, testTs[index], limitT)) { in setSpans() 1027 testTs[testCount++] = startT; in setSpans() 1043 // OPTIMIZE: could avoid call for t == startT, endT in setSpans()
|
H A D | SkPathOpsDebug.cpp | 190 void record(GlitchType type, const SkOpSegment* seg, double startT, in record() 194 glitch->fStartT = startT; in record() 405 SkDebugf(" startT=%g", glitch.fStartT); in CheckHealth()
|
/third_party/skia/src/effects/ |
H A D | SkTrimPathEffect.cpp | 48 SkTrimPE::SkTrimPE(SkScalar startT, SkScalar stopT, SkTrimPathEffect::Mode mode) 49 : fStartT(startT), fStopT(stopT), fMode(mode) {} 118 sk_sp<SkPathEffect> SkTrimPathEffect::Make(SkScalar startT, SkScalar stopT, Mode mode) { 119 if (!SkScalarsAreFinite(startT, stopT)) { 123 if (startT <= 0 && stopT >= 1 && mode == Mode::kNormal) { 127 startT = SkTPin(startT, 0.f, 1.f); 130 if (startT >= stopT && mode == Mode::kInverted) { 134 return sk_sp<SkPathEffect>(new SkTrimPE(startT, stopT, mode));
|
H A D | SkTrimPE.h | 16 SkTrimPE(SkScalar startT, SkScalar stopT, SkTrimPathEffect::Mode);
|
/third_party/skia/modules/skottie/src/layers/shapelayer/ |
H A D | TrimPaths.cpp | 41 auto startT = std::min(start, end) + offset, variable 45 if (stopT - startT < 1) { 46 startT -= SkScalarFloorToScalar(startT); 49 if (startT > stopT) { 51 swap(startT, stopT); 55 startT = 0; 59 this->node()->setStart(startT); variable
|
/third_party/skia/src/core/ |
H A D | SkContourMeasure.cpp | 32 SkScalar startT, SkScalar stopT, SkPath* dst) { in SkContourMeasure_segTo() 33 SkASSERT(startT >= 0 && startT <= SK_Scalar1); in SkContourMeasure_segTo() 35 SkASSERT(startT <= stopT); in SkContourMeasure_segTo() 37 if (startT == stopT) { in SkContourMeasure_segTo() 60 if (0 == startT) { in SkContourMeasure_segTo() 68 SkChopQuadAt(pts, tmp0, startT); in SkContourMeasure_segTo() 72 SkChopQuadAt(&tmp0[2], tmp1, (stopT - startT) / (1 - startT)); in SkContourMeasure_segTo() 80 if (0 == startT) { in SkContourMeasure_segTo() 31 SkContourMeasure_segTo(const SkPoint pts[], unsigned segType, SkScalar startT, SkScalar stopT, SkPath* dst) SkContourMeasure_segTo() argument [all...] |
H A D | SkPathMeasurePriv.h | 27 SkScalar startT, SkScalar stopT, SkPath* dst);
|
/third_party/skia/tests/ |
H A D | PathOpsAngleTest.cpp | 478 void SkOpSegment::debugAddAngle(double startT, double endT) { in debugAddAngle() argument 479 SkOpPtT* startPtT = startT == 0 ? fHead.ptT() : startT == 1 ? fTail.ptT() in debugAddAngle() 480 : this->addT(startT); in debugAddAngle() 493 if (startT < endT) { in debugAddAngle()
|
/third_party/skia/modules/pathkit/ |
H A D | externs.js | 57 _trim: function(startT, stopT, isComplement) {}, 108 PathKit.SkPath.prototype.trim = function(startT, stopT, isComplement) {};
|
H A D | chaining.js | 178 PathKit.SkPath.prototype.trim = function(startT, stopT, isComplement) { 179 if (this._trim(startT, stopT, !!isComplement)) {
|
H A D | pathkit_wasm_bindings.cpp | 375 bool ApplyTrim(SkPath& path, SkScalar startT, SkScalar stopT, bool isComplement) { in ApplyTrim() argument 377 auto pe = SkTrimPathEffect::Make(startT, stopT, mode); in ApplyTrim() 379 SkDebugf("Invalid args to trim(): startT and stopT must be in [0,1]\n"); in ApplyTrim()
|
/third_party/skia/include/effects/ |
H A D | SkTrimPathEffect.h | 31 * startT and stopT must be 0..1 inclusive. If they are outside of that interval, they will 36 * segments: stopT..1 and 0...startT, in this order. 38 static sk_sp<SkPathEffect> Make(SkScalar startT, SkScalar stopT, Mode = Mode::kNormal);
|
/third_party/skia/modules/canvaskit/ |
H A D | interface.js | 364 CanvasKit.Path.prototype.trim = function(startT, stopT, isComplement) { 365 if (this._trim(startT, stopT, !!isComplement)) {
|
H A D | canvaskit_bindings.cpp | 555 bool ApplyTrim(SkPath& path, SkScalar startT, SkScalar stopT, bool isComplement) { in ApplyTrim() argument 557 auto pe = SkTrimPathEffect::Make(startT, stopT, mode); in ApplyTrim() 559 SkDebugf("Invalid args to trim(): startT and stopT must be in [0,1]\n"); in ApplyTrim()
|