Home
last modified time | relevance | path

Searched refs:SkCubicType (Results 1 – 11 of 11) sorted by relevance

/external/skia/bench/
DCubicKLMBench.cpp26 case SkCubicType::kSerpentine: in CubicKLMBench()
29 case SkCubicType::kLoop: in CubicKLMBench()
/external/skia/tests/
DGeometryTest.cpp210 const std::array<SkPoint, 4>& bezierPoints, SkCubicType expectedType) { in check_cubic_type()
211 SkCubicType actualType = SkClassifyCubic(bezierPoints.data()); in check_cubic_type()
218 SkCubicType::kQuadratic); in test_classify_cubic()
221 SkCubicType::kQuadratic); in test_classify_cubic()
224 SkCubicType::kSerpentine); in test_classify_cubic()
DPathOpsCubicIntersectionTest.cpp649 SkCubicType cubicType = SkClassifyCubic(c); in selfOneOff()
652 if (breaks && cubicType == SkCubicType::kLoop) { in selfOneOff()
/external/skia/samplecode/
DSampleCCPRGeometry.cpp165 SkCubicType type = SkClassifyCubic(fPoints, t, s); in updateGpuData()
182 if (3 == instanceCount && SkCubicType::kLoop == type) { in updateGpuData()
193 if (fMode < Mode::kLoopInsets && SkCubicType::kLoop == type) { in updateGpuData()
196 if (fMode >= Mode::kLoopInsets && SkCubicType::kLoop != type) { in updateGpuData()
/external/skia/src/gpu/
DGrPathUtils.cpp800 SkCubicType GrPathUtils::getCubicKLM(const SkPoint src[4], SkMatrix* klm, double t[2], in getCubicKLM()
803 SkCubicType type = SkClassifyCubic(src, t, s, d); in getCubicKLM()
809 case SkCubicType::kSerpentine: in getCubicKLM()
812 case SkCubicType::kLoop: in getCubicKLM()
815 case SkCubicType::kLocalCusp: in getCubicKLM()
818 case SkCubicType::kCuspAtInfinity: in getCubicKLM()
821 case SkCubicType::kQuadratic: in getCubicKLM()
824 case SkCubicType::kLineOrPoint: in getCubicKLM()
838 if (SkCubicType::kLoop == GrPathUtils::getCubicKLM(src, klm, t, s)) { in chopCubicAtLoopIntersection()
DGrPathUtils.h149 SkCubicType getCubicKLM(const SkPoint src[4], SkMatrix* klm, double t[2], double s[2]);
/external/skia/src/gpu/ccpr/
DGrCCPRCoverageOpsBuilder.h23 enum class SkCubicType; variable
123 void emitCubicSegment(AccumulatingViewMatrix&, SkCubicType, const SkDCubic&,
DGrCCPRCoverageOpsBuilder.cpp268 SkCubicType type = SkClassifyCubic(P, t, s); in cubicTo()
270 if (SkCubicType::kLineOrPoint == type) { in cubicTo()
275 if (SkCubicType::kQuadratic == type) { in cubicTo()
308 if (SkCubicType::kLoop == type && 0 == t[0]) { in cubicTo()
329 SkCubicType type, const SkDCubic& C, in emitCubicSegment()
342 fInstanceData[SkCubicType::kLoop != type ? in emitCubicSegment()
/external/skia/src/core/
DSkGeometry.cpp603 static SkCubicType classify_cubic(const double d[4], double t[2], double s[2]) { in classify_cubic()
612 return 0 == d[3] ? SkCubicType::kLineOrPoint : SkCubicType::kQuadratic; in classify_cubic()
624 return SkCubicType::kCuspAtInfinity; in classify_cubic()
638 return SkCubicType::kSerpentine; in classify_cubic()
649 return SkCubicType::kLoop; in classify_cubic()
660 return SkCubicType::kLocalCusp; in classify_cubic()
664 SkCubicType SkClassifyCubic(const SkPoint src[4], double t[2], double s[2], double d[4]) { in SkClassifyCubic()
DSkGeometry.h161 enum class SkCubicType { enum
185 SkCubicType SkClassifyCubic(const SkPoint p[4], double t[2] = nullptr, double s[2] = nullptr,
/external/skia/src/pathops/
DSkPathOpsCubic.cpp252 SkCubicType cubicType = SkClassifyCubic(pointsPtr, tt, ss); in ComplexBreak()
254 case SkCubicType::kLoop: { in ComplexBreak()
264 case SkCubicType::kSerpentine: in ComplexBreak()
265 case SkCubicType::kLocalCusp: in ComplexBreak()
266 case SkCubicType::kCuspAtInfinity: { in ComplexBreak()