Home
last modified time | relevance | path

Searched refs:startT (Results 1 – 25 of 47) sorted by relevance

12

/third_party/skia/src/pathops/
DSkPathOpsRect.cpp13 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()
DSkPathOpsCurve.h262 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()
DSkPathOpsTSect.cpp833 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 matesWith()
1682 || mate.fC1Span->endT() <= fC1Span->startT()); in matesWith()
[all …]
DSkOpSegment.cpp1630 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()
/third_party/flutter/skia/src/pathops/
DSkPathOpsRect.cpp13 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()
DSkPathOpsCurve.h262 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()
DSkPathOpsTSect.cpp832 double startT = first->fStartT; in extractCoincident() local
843 if (prev && prev->fEndT == startT in extractCoincident()
844 && this->binarySearchCoin(sect2, startT, prev->fStartT - startT, &coinStart, in extractCoincident()
846 && prev->fStartT < coinStart && coinStart < startT in extractCoincident()
1652 double r1t = fC1Index ? fC1Span->endT() : fC1Span->startT(); in addIntersection()
1653 double r2t = fC2Index ? fC2Span->endT() : fC2Span->startT(); in addIntersection()
1670 fC1StartT = span1->startT(); in findEnd()
1672 fC2StartT = span2->startT(); in findEnd()
1680 SkOPOBJASSERT(i, fC1Span == mate.fC1Span || fC1Span->endT() <= mate.fC1Span->startT() in matesWith()
1681 || mate.fC1Span->endT() <= fC1Span->startT()); in matesWith()
[all …]
/third_party/flutter/skia/src/effects/
DSkTrimPathEffect.cpp53 SkTrimPE::SkTrimPE(SkScalar startT, SkScalar stopT, SkTrimPathEffect::Mode mode) in SkTrimPE() argument
54 : fStartT(startT), fStopT(stopT), fMode(mode) {} in SkTrimPE()
102 sk_sp<SkPathEffect> SkTrimPathEffect::Make(SkScalar startT, SkScalar stopT, Mode mode) { in Make() argument
103 if (!SkScalarsAreFinite(startT, stopT)) { in Make()
107 if (startT <= 0 && stopT >= 1 && mode == Mode::kNormal) { in Make()
111 startT = SkTPin(startT, 0.f, 1.f); in Make()
114 if (startT >= stopT && mode == Mode::kInverted) { in Make()
118 return sk_sp<SkPathEffect>(new SkTrimPE(startT, stopT, mode)); in Make()
DSkTrimPE.h17 SkTrimPE(SkScalar startT, SkScalar stopT, SkTrimPathEffect::Mode);
/third_party/skia/src/effects/
DSkTrimPathEffect.cpp48 SkTrimPE::SkTrimPE(SkScalar startT, SkScalar stopT, SkTrimPathEffect::Mode mode) in SkTrimPE() argument
49 : fStartT(startT), fStopT(stopT), fMode(mode) {} in SkTrimPE()
118 sk_sp<SkPathEffect> SkTrimPathEffect::Make(SkScalar startT, SkScalar stopT, Mode mode) { in Make() argument
119 if (!SkScalarsAreFinite(startT, stopT)) { in Make()
123 if (startT <= 0 && stopT >= 1 && mode == Mode::kNormal) { in Make()
127 startT = SkTPin(startT, 0.f, 1.f); in Make()
130 if (startT >= stopT && mode == Mode::kInverted) { in Make()
134 return sk_sp<SkPathEffect>(new SkTrimPE(startT, stopT, mode)); in Make()
DSkTrimPE.h16 SkTrimPE(SkScalar startT, SkScalar stopT, SkTrimPathEffect::Mode);
/third_party/skia/modules/skottie/src/layers/shapelayer/
DTrimPaths.cpp41 auto startT = std::min(start, end) + offset, in onSync() local
45 if (stopT - startT < 1) { in onSync()
46 startT -= SkScalarFloorToScalar(startT); in onSync()
49 if (startT > stopT) { in onSync()
51 swap(startT, stopT); in onSync()
55 startT = 0; in onSync()
59 this->node()->setStart(startT); in onSync()
/third_party/skia/src/core/
DSkContourMeasure.cpp32 SkScalar startT, SkScalar stopT, SkPath* dst) { in SkContourMeasure_segTo() argument
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()
92 if (conic.chopAt(startT, tmp)) { in SkContourMeasure_segTo()
97 conic.chopAt(startT, stopT, &tmp); in SkContourMeasure_segTo()
[all …]
DSkPathMeasurePriv.h27 SkScalar startT, SkScalar stopT, SkPath* dst);
/third_party/flutter/skia/src/core/
DSkContourMeasure.cpp27 SkScalar startT, SkScalar stopT, SkPath* dst) { in SkContourMeasure_segTo() argument
28 SkASSERT(startT >= 0 && startT <= SK_Scalar1); in SkContourMeasure_segTo()
30 SkASSERT(startT <= stopT); in SkContourMeasure_segTo()
32 if (startT == stopT) { in SkContourMeasure_segTo()
55 if (0 == startT) { in SkContourMeasure_segTo()
63 SkChopQuadAt(pts, tmp0, startT); in SkContourMeasure_segTo()
67 SkChopQuadAt(&tmp0[2], tmp1, (stopT - startT) / (1 - startT)); in SkContourMeasure_segTo()
75 if (0 == startT) { in SkContourMeasure_segTo()
87 if (conic.chopAt(startT, tmp1)) { in SkContourMeasure_segTo()
92 conic.chopAt(startT, stopT, &tmp); in SkContourMeasure_segTo()
[all …]
DSkPathMeasurePriv.h27 SkScalar startT, SkScalar stopT, SkPath* dst);
/third_party/flutter/skia/modules/skottie/src/
DSkottieAdapter.cpp319 auto startT = SkTMin(start, end) + offset, in apply() local
323 if (stopT - startT < 1) { in apply()
324 startT -= SkScalarFloorToScalar(startT); in apply()
327 if (startT > stopT) { in apply()
329 swap(startT, stopT); in apply()
333 startT = 0; in apply()
337 fTrimEffect->setStart(startT); in apply()
/third_party/flutter/skia/include/effects/
DSkTrimPathEffect.h38 static sk_sp<SkPathEffect> Make(SkScalar startT, SkScalar stopT, Mode = Mode::kNormal);
/third_party/skia/include/effects/
DSkTrimPathEffect.h38 static sk_sp<SkPathEffect> Make(SkScalar startT, SkScalar stopT, Mode = Mode::kNormal);
/third_party/skia/tests/
DPathOpsAngleTest.cpp478 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/flutter/skia/tests/
DPathOpsAngleTest.cpp481 void SkOpSegment::debugAddAngle(double startT, double endT) { in debugAddAngle() argument
482 SkOpPtT* startPtT = startT == 0 ? fHead.ptT() : startT == 1 ? fTail.ptT() in debugAddAngle()
483 : this->addT(startT); in debugAddAngle()
496 if (startT < endT) { in debugAddAngle()
/third_party/skia/modules/pathkit/
Dexterns.js57 _trim: function(startT, stopT, isComplement) {}, argument
108 PathKit.SkPath.prototype.trim = function(startT, stopT, isComplement) {}; argument
Dchaining.js178 PathKit.SkPath.prototype.trim = function(startT, stopT, isComplement) { argument
179 if (this._trim(startT, stopT, !!isComplement)) {
/third_party/flutter/skia/modules/pathkit/
Dexterns.js57 _trim: function(startT, stopT, isComplement) {}, argument
108 PathKit.SkPath.prototype.trim = function(startT, stopT, isComplement) {}; argument
Dchaining.js178 PathKit.SkPath.prototype.trim = function(startT, stopT, isComplement) { argument
179 if (this._trim(startT, stopT, !!isComplement)) {

12