Home
last modified time | relevance | path

Searched refs:startT (Results 1 - 22 of 22) sorted by relevance

/third_party/skia/src/pathops/
H A 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()
H A 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()
H A 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 SkDEBUGPARAMS()
[all...]
H A 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()
H A DSkOpSegment.h107 SkOpSpanBase::Collapsed collapsed(double startT, double endT) const;
127 void debugAddAngle(double startT, double endT);
H A DSkPathOpsCubic.cpp723 double SkDCubic::top(const SkDCubic& dCurve, double startT, double endT, SkDPoint*topPt) const {
728 double t = startT + (endT - startT) * extremeTs[index];
H A DSkPathOpsTSect.h201 double startT() const { in startT() function in SkTSpan
H A DSkPathOpsCubic.h136 double top(const SkDCubic& dCurve, double startT, double endT, SkDPoint*topPt) const;
H A DSkOpAngle.cpp1018 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 DSkPathOpsDebug.cpp190 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 DSkTrimPathEffect.cpp48 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 DSkTrimPE.h16 SkTrimPE(SkScalar startT, SkScalar stopT, SkTrimPathEffect::Mode);
/third_party/skia/modules/skottie/src/layers/shapelayer/
H A DTrimPaths.cpp41 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 DSkContourMeasure.cpp32 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 DSkPathMeasurePriv.h27 SkScalar startT, SkScalar stopT, SkPath* dst);
/third_party/skia/tests/
H A 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/skia/modules/pathkit/
H A Dexterns.js57 _trim: function(startT, stopT, isComplement) {},
108 PathKit.SkPath.prototype.trim = function(startT, stopT, isComplement) {};
H A Dchaining.js178 PathKit.SkPath.prototype.trim = function(startT, stopT, isComplement) {
179 if (this._trim(startT, stopT, !!isComplement)) {
H A Dpathkit_wasm_bindings.cpp375 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 DSkTrimPathEffect.h31 * 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 Dinterface.js364 CanvasKit.Path.prototype.trim = function(startT, stopT, isComplement) {
365 if (this._trim(startT, stopT, !!isComplement)) {
H A Dcanvaskit_bindings.cpp555 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()

Completed in 31 milliseconds