Home
last modified time | relevance | path

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

/external/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()
117 sk_sp<SkPathEffect> SkTrimPathEffect::Make(SkScalar startT, SkScalar stopT, Mode mode) { in Make() argument
118 if (!SkScalarsAreFinite(startT, stopT)) { in Make()
122 if (startT <= 0 && stopT >= 1 && mode == Mode::kNormal) { in Make()
127 stopT = SkTPin(stopT, 0.f, 1.f); in Make()
129 if (startT >= stopT && mode == Mode::kInverted) { in Make()
133 return sk_sp<SkPathEffect>(new SkTrimPE(startT, stopT, mode)); in Make()
DSkTrimPE.h17 SkTrimPE(SkScalar startT, SkScalar stopT, SkTrimPathEffect::Mode);
/external/skqp/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()
112 stopT = SkTPin(stopT, 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);
/external/skia/modules/skottie/src/layers/shapelayer/
DTrimPaths.cpp42 stopT = std::max(start, end) + offset; in onSync() local
45 if (stopT - startT < 1) { in onSync()
47 stopT -= SkScalarFloorToScalar(stopT); in onSync()
49 if (startT > stopT) { in onSync()
51 swap(startT, stopT); in onSync()
56 stopT = 1; in onSync()
60 this->node()->setStop(stopT); in onSync()
/external/skia/src/core/
DSkContourMeasure.cpp32 SkScalar startT, SkScalar stopT, SkPath* dst) { in SkContourMeasure_segTo() argument
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()
69 if (SK_Scalar1 == stopT) { in SkContourMeasure_segTo()
[all …]
DSkPathMeasurePriv.h27 SkScalar startT, SkScalar stopT, SkPath* dst);
/external/skqp/src/core/
DSkPathMeasure.cpp37 SkScalar startT, SkScalar stopT, SkPath* dst) { in SkPathMeasure_segTo() argument
39 SkASSERT(stopT >= 0 && stopT <= SK_Scalar1); in SkPathMeasure_segTo()
40 SkASSERT(startT <= stopT); in SkPathMeasure_segTo()
42 if (startT == stopT) { in SkPathMeasure_segTo()
57 if (SK_Scalar1 == stopT) { in SkPathMeasure_segTo()
60 dst->lineTo(SkScalarInterp(pts[0].fX, pts[1].fX, stopT), in SkPathMeasure_segTo()
61 SkScalarInterp(pts[0].fY, pts[1].fY, stopT)); in SkPathMeasure_segTo()
66 if (SK_Scalar1 == stopT) { in SkPathMeasure_segTo()
69 SkChopQuadAt(pts, tmp0, stopT); in SkPathMeasure_segTo()
74 if (SK_Scalar1 == stopT) { in SkPathMeasure_segTo()
[all …]
DSkPathMeasurePriv.h27 SkScalar startT, SkScalar stopT, SkPath* dst);
/external/skqp/modules/skottie/src/
DSkottieAdapter.cpp243 stopT = SkTMax(start, end) + offset; in apply() local
246 if (stopT - startT < 1) { in apply()
248 stopT -= SkScalarFloorToScalar(stopT); in apply()
250 if (startT > stopT) { in apply()
252 swap(startT, stopT); in apply()
257 stopT = 1; in apply()
261 fTrimEffect->setStop(stopT); in apply()
/external/skqp/include/effects/
DSkTrimPathEffect.h38 static sk_sp<SkPathEffect> Make(SkScalar startT, SkScalar stopT, Mode = Mode::kNormal);
/external/skia/include/effects/
DSkTrimPathEffect.h38 static sk_sp<SkPathEffect> Make(SkScalar startT, SkScalar stopT, Mode = Mode::kNormal);
/external/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)) {
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()
/external/skqp/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)) {
Dpathkit_wasm_bindings.cpp388 bool ApplyTrim(SkPath& path, SkScalar startT, SkScalar stopT, bool isComplement) { in ApplyTrim() argument
390 auto pe = SkTrimPathEffect::Make(startT, stopT, mode); in ApplyTrim()
/external/skqp/experimental/canvaskit/
Dinterface.js352 CanvasKit.SkPath.prototype.trim = function(startT, stopT, isComplement) { argument
353 if (this._trim(startT, stopT, !!isComplement)) {
Dcanvaskit_bindings.cpp423 bool ApplyTrim(SkPath& path, SkScalar startT, SkScalar stopT, bool isComplement) { in ApplyTrim() argument
425 auto pe = SkTrimPathEffect::Make(startT, stopT, mode); in ApplyTrim()
/external/skia/modules/canvaskit/
Dinterface.js364 CanvasKit.Path.prototype.trim = function(startT, stopT, isComplement) { argument
365 if (this._trim(startT, stopT, !!isComplement)) {
Dcanvaskit_bindings.cpp559 bool ApplyTrim(SkPath& path, SkScalar startT, SkScalar stopT, bool isComplement) { in ApplyTrim() argument
561 auto pe = SkTrimPathEffect::Make(startT, stopT, mode); in ApplyTrim()
/external/skqp/site/user/modules/
Dpathkit.md694 #### `trim(startT, stopT, isComplement=false)` ####
695 **startT, stopT** - `Number`, values in [0, 1] that indicate the start and stop
698 be drawn instead of the areas between **startT** and **stopT**.
/external/skia/site/docs/user/modules/
Dpathkit.md749 #### `trim(startT, stopT, isComplement=false)`
751 **startT, stopT** - `Number`, values in [0, 1] that indicate the start and stop
754 **startT** and **stopT**.
/external/skia/modules/canvaskit/npm_build/types/
Dindex.d.ts2485 trim(startT: number, stopT: number, isComplement: boolean): Path | null;