Home
last modified time | relevance | path

Searched refs:stopT (Results 1 - 11 of 11) sorted by relevance

/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) {
128 stopT = SkTPin(stopT, 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.cpp42 stopT = std::max(start, end) + offset; variable
45 if (stopT - startT < 1) {
47 stopT -= SkScalarFloorToScalar(stopT);
49 if (startT > stopT) {
51 swap(startT, stopT);
56 stopT = 1;
60 this->node()->setStop(stopT); variable
/third_party/skia/src/core/
H A DSkContourMeasure.cpp32 SkScalar startT, SkScalar stopT, SkPath* dst) { in SkContourMeasure_segTo()
34 SkASSERT(stopT >= 0 && stopT <= SK_Scalar1); in SkContourMeasure_segTo()
35 SkASSERT(startT <= stopT); in SkContourMeasure_segTo()
37 if (startT == stopT) { in SkContourMeasure_segTo()
52 if (SK_Scalar1 == stopT) { in SkContourMeasure_segTo()
55 dst->lineTo(SkScalarInterp(pts[0].fX, pts[1].fX, stopT), in SkContourMeasure_segTo()
56 SkScalarInterp(pts[0].fY, pts[1].fY, stopT)); in SkContourMeasure_segTo()
61 if (SK_Scalar1 == stopT) { in SkContourMeasure_segTo()
64 SkChopQuadAt(pts, tmp0, stopT); 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/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 9 milliseconds