Home
last modified time | relevance | path

Searched refs:startD (Results 1 – 7 of 7) sorted by relevance

/external/skia/src/core/
DSkContourMeasure.cpp538 SkScalar startT = 0, startD = 0; in distanceToSegment() local
541 startD = seg[-1].fDistance; in distanceToSegment()
549 SkASSERT(distance >= startD); in distanceToSegment()
550 SkASSERT(seg->fDistance > startD); in distanceToSegment()
552 *t = startT + (seg->getScalarT() - startT) * (distance - startD) / (seg->fDistance - startD); in distanceToSegment()
602 bool SkContourMeasure::getSegment(SkScalar startD, SkScalar stopD, SkPath* dst, in getSegment() argument
608 if (startD < 0) { in getSegment()
609 startD = 0; in getSegment()
614 if (!(startD <= stopD)) { // catch NaN values as well in getSegment()
623 const Segment* seg = this->distanceToSegment(startD, &startT); in getSegment()
DSkPathMeasure.cpp38 bool SkPathMeasure::getSegment(SkScalar startD, SkScalar stopD, SkPath* dst, bool startWithMoveTo) { in getSegment() argument
39 return fContour && fContour->getSegment(startD, stopD, dst, startWithMoveTo); in getSegment()
/external/skqp/src/core/
DSkPathMeasure.cpp589 SkScalar startT = 0, startD = 0; in distanceToSegment() local
592 startD = seg[-1].fDistance; in distanceToSegment()
600 SkASSERT(distance >= startD); in distanceToSegment()
601 SkASSERT(seg->fDistance > startD); in distanceToSegment()
603 *t = startT + (seg->getScalarT() - startT) * (distance - startD) / (seg->fDistance - startD); in distanceToSegment()
653 bool SkPathMeasure::getSegment(SkScalar startD, SkScalar stopD, SkPath* dst, in getSegment() argument
659 if (startD < 0) { in getSegment()
660 startD = 0; in getSegment()
665 if (!(startD <= stopD)) { // catch NaN values as well in getSegment()
674 const Segment* seg = this->distanceToSegment(startD, &startT); in getSegment()
/external/skia/include/core/
DSkPathMeasure.h65 bool getSegment(SkScalar startD, SkScalar stopD, SkPath* dst, bool startWithMoveTo);
DSkContourMeasure.h49 bool SK_WARN_UNUSED_RESULT getSegment(SkScalar startD, SkScalar stopD, SkPath* dst,
/external/skqp/include/core/
DSkPathMeasure.h71 bool getSegment(SkScalar startD, SkScalar stopD, SkPath* dst, bool startWithMoveTo);
/external/skia/modules/canvaskit/
Dcanvaskit_bindings.cpp1056 .function("getSegment", optional_override([](SkContourMeasure& self, SkScalar startD, in EMSCRIPTEN_BINDINGS()
1059 bool ok = self.getSegment(startD, stopD, &p, startWithMoveTo); in EMSCRIPTEN_BINDINGS()
1335 .function("getSegment", optional_override([](SkPathMeasure& self, SkScalar startD, in EMSCRIPTEN_BINDINGS()
1338 bool ok = self.getSegment(startD, stopD, &p, startWithMoveTo); in EMSCRIPTEN_BINDINGS()