Home
last modified time | relevance | path

Searched refs:conic (Results 1 – 18 of 18) sorted by relevance

/external/skia/tests/
DPathOpsConicLineIntersectionTest.cpp16 SkDConic conic; member
31 static int doIntersect(SkIntersections& intersections, const SkDConic& conic, const SkDLine& line, in doIntersect() argument
42 result = intersections.vertical(conic, top, bottom, line[0].fX, flipped); in doIntersect()
50 result = intersections.horizontal(conic, left, right, line[0].fY, flipped); in doIntersect()
52 intersections.intersect(conic, line); in doIntersect()
59 SkDConic conic; member
71 const SkDConic& conic = oneOffs[index].conic; in testOneOffs() local
72 SkASSERT(ValidConic(conic)); in testOneOffs()
76 int result = doIntersect(intersections, conic, line, flipped); in testOneOffs()
79 SkDPoint conicXY = conic.ptAtT(conicT); in testOneOffs()
[all …]
DGeometryTest.cpp72 static void test_conic_eval_pos(skiatest::Reporter* reporter, const SkConic& conic, SkScalar t) { in test_conic_eval_pos() argument
74 conic.evalAt(t, &p0, NULL); in test_conic_eval_pos()
75 p1 = conic.evalAt(t); in test_conic_eval_pos()
79 static void test_conic_eval_tan(skiatest::Reporter* reporter, const SkConic& conic, SkScalar t) { in test_conic_eval_tan() argument
81 conic.evalAt(t, NULL, &v0); in test_conic_eval_tan()
82 v1 = conic.evalTangentAt(t); in test_conic_eval_tan()
95 SkConic conic(pts, w); in test_conic() local
100 test_conic_eval_pos(reporter, conic, t); in test_conic()
101 test_conic_eval_tan(reporter, conic, t); in test_conic()
DPathOpsDebug.cpp365 SkDConic conic; in DontCallDebugSpan() local
370 SkTSect<SkDConic, SkDQuad> k1q2(conic PATH_OPS_DEBUG_T_SECT_PARAMS(1)); in DontCallDebugSpan()
371 SkTSect<SkDConic, SkDConic> k1k2(conic PATH_OPS_DEBUG_T_SECT_PARAMS(1)); in DontCallDebugSpan()
372 SkTSect<SkDConic, SkDCubic> k1c2(conic PATH_OPS_DEBUG_T_SECT_PARAMS(1)); in DontCallDebugSpan()
395 SkDConic conic; in DontCallDebugT() local
400 SkTSect<SkDConic, SkDQuad> k1q2(conic PATH_OPS_DEBUG_T_SECT_PARAMS(1)); in DontCallDebugT()
401 SkTSect<SkDConic, SkDConic> k1k2(conic PATH_OPS_DEBUG_T_SECT_PARAMS(1)); in DontCallDebugT()
402 SkTSect<SkDConic, SkDCubic> k1c2(conic PATH_OPS_DEBUG_T_SECT_PARAMS(1)); in DontCallDebugT()
425 SkDConic conic; in DontCallDumpTSect() local
430 SkTSect<SkDConic, SkDQuad> k1q2(conic PATH_OPS_DEBUG_T_SECT_PARAMS(1)); in DontCallDumpTSect()
[all …]
DPathOpsTestCommon.cpp268 bool ValidConic(const SkDConic& conic) { in ValidConic() argument
270 if (!ValidPoint(conic[index])) { in ValidConic()
274 if (SkDoubleIsNaN(conic.fWeight)) { in ValidConic()
/external/skia/src/pathops/
DSkPathOpsConic.h65 bool hullIntersects(const SkDConic& conic, bool* isLinear) const { in hullIntersects()
66 return fPts.hullIntersects(conic.fPts, isLinear); in hullIntersects()
100 SkDConic conic; in SubDivide() local
101 conic.set(a, weight); in SubDivide()
102 return conic.subDivide(t1, t2); in SubDivide()
111 SkDConic conic; in SubDivide() local
112 conic.set(pts, weight); in SubDivide()
113 return conic.subDivide(a, c, t1, t2, newWeight); in SubDivide()
DSkPathOpsCurve.h99 SkDConic conic; in dconic_xy_at_t() local
100 conic.set(a, weight); in dconic_xy_at_t()
101 return conic.ptAtT(t); in dconic_xy_at_t()
155 SkDConic conic; in dconic_dxdy_at_t() local
156 conic.set(a, weight); in dconic_dxdy_at_t()
157 return conic.dxdyAtT(t); in dconic_dxdy_at_t()
213 SkDConic conic; in conic_is_vertical() local
214 conic.set(a, weight); in conic_is_vertical()
215 SkDConic dst = conic.subDivide(startT, endT); in conic_is_vertical()
251 SkDConic conic; in conic_intersect_ray() local
[all …]
DSkIntersections.h55 SkDConic conic; in conicHorizontal() local
56 conic.set(a, weight); in conicHorizontal()
58 return horizontal(conic, left, right, y, flipped); in conicHorizontal()
63 SkDConic conic; in conicVertical() local
64 conic.set(a, weight); in conicVertical()
66 return vertical(conic, top, bottom, x, flipped); in conicVertical()
70 SkDConic conic; in conicLine() local
71 conic.set(a, weight); in conicLine()
75 return intersect(conic, line); in conicLine()
239 static int HorizontalIntercept(const SkDConic& conic, SkScalar y, double* roots);
[all …]
DSkDConicLineIntersection.cpp326 int SkIntersections::horizontal(const SkDConic& conic, double left, double right, double y, in horizontal() argument
329 LineConicIntersections c(conic, line, this); in horizontal()
333 int SkIntersections::vertical(const SkDConic& conic, double top, double bottom, double x, in vertical() argument
336 LineConicIntersections c(conic, line, this); in vertical()
340 int SkIntersections::intersect(const SkDConic& conic, const SkDLine& line) { in intersect() argument
341 LineConicIntersections c(conic, line, this); in intersect()
346 int SkIntersections::intersectRay(const SkDConic& conic, const SkDLine& line) { in intersectRay() argument
347 LineConicIntersections c(conic, line, this); in intersectRay()
350 fPt[index] = conic.ptAtT(fT[0][index]); in intersectRay()
355 int SkIntersections::HorizontalIntercept(const SkDConic& conic, SkScalar y, double* roots) { in HorizontalIntercept() argument
[all …]
DSkConicLineIntersection.cpp30 int SkIntersections::intersectRay(const SkDConic& conic, const SkDLine& line) { in intersectRay() argument
31 LineConicIntersections c(conic, line, this); in intersectRay()
34 fPt[index] = conic.ptAtT(fT[0][index]); in intersectRay()
DSkPathOpsTSect.cpp17 int SkIntersections::intersect(const SkDConic& conic, const SkDQuad& quad) { in intersect() argument
18 SkTSect<SkDConic, SkDQuad> sect1(conic PATH_OPS_DEBUG_T_SECT_PARAMS(1)); in intersect()
38 int SkIntersections::intersect(const SkDCubic& cubic, const SkDConic& conic) { in intersect() argument
40 SkTSect<SkDConic, SkDCubic> sect2(conic PATH_OPS_DEBUG_T_SECT_PARAMS(2)); in intersect()
DSkPathOpsQuad.cpp51 bool SkDQuad::hullIntersects(const SkDConic& conic, bool* isLinear) const { in hullIntersects() argument
52 return conic.hullIntersects(*this, isLinear); in hullIntersects()
DSkPathOpsCubic.cpp209 bool SkDCubic::hullIntersects(const SkDConic& conic, bool* isLinear) const { in hullIntersects() argument
211 return hullIntersects(conic.fPts, isLinear); in hullIntersects()
/external/skia/src/core/
DSkPathMeasure.cpp108 SkScalar SkPathMeasure::compute_conic_segs(const SkConic& conic, in compute_conic_segs() argument
110 if (tspan_big_enough(maxt - mint) && quad_too_curvy(conic.fPts)) { in compute_conic_segs()
112 conic.chop(tmp); in compute_conic_segs()
118 SkScalar d = SkPoint::Distance(conic.fPts[0], conic.fPts[2]); in compute_conic_segs()
211 const SkConic conic(pts, fIter.conicWeight()); in buildSegments() local
213 distance = this->compute_conic_segs(conic, distance, 0, kMaxTValue, ptIndex); in buildSegments()
218 fPts.append()->set(conic.fW, 0); in buildSegments()
350 SkConic conic(pts[0], pts[2], pts[3], pts[1].fX); in seg_to() local
354 dst->conicTo(conic.fPts[1], conic.fPts[2], conic.fW); in seg_to()
357 conic.chopAt(stopT, tmp); in seg_to()
[all …]
DSkGeometry.h311 const SkPoint* computeQuads(const SkConic& conic, SkScalar tol) { in computeQuads() argument
312 int pow2 = conic.computeQuadPOW2(tol); in computeQuads()
315 conic.chopIntoQuadsPOW2(pts, pow2); in computeQuads()
321 SkConic conic; in computeQuads() local
322 conic.set(pts, weight); in computeQuads()
323 return computeQuads(conic, tol); in computeQuads()
DSkStroke.cpp476 void SkPathStroker::setConicEndNormal(const SkConic& conic, const SkVector& normalAB, in setConicEndNormal() argument
478 setQuadEndNormal(conic.fPts, normalAB, unitNormalAB, normalBC, unitNormalBC); in setConicEndNormal()
616 static bool conic_in_line(const SkConic& conic) { in conic_in_line() argument
617 return quad_in_line(conic.fPts); in conic_in_line()
651 SkPathStroker::ReductionType SkPathStroker::CheckConicLinear(const SkConic& conic, in CheckConicLinear() argument
653 bool degenerateAB = degenerate_vector(conic.fPts[1] - conic.fPts[0]); in CheckConicLinear()
654 bool degenerateBC = degenerate_vector(conic.fPts[2] - conic.fPts[1]); in CheckConicLinear()
661 if (!conic_in_line(conic)) { in CheckConicLinear()
665 if (!conic.findMaxCurvature(&t) || 0 == t) { in CheckConicLinear()
668 conic.evalAt(t, reduction, NULL); in CheckConicLinear()
[all …]
/external/skia/gm/
Dbeziereffects.cpp403 SkConic conic; in split_conic() local
404 conic.set(src, weight); in split_conic()
405 conic.chopAt(t, dst); in split_conic()
/external/skia/bench/
DPathBench.cpp889 static void rand_conic(SkConic* conic, SkRandom& rand) {
891 conic->fPts[i].set(rand.nextUScalar1() * 100, rand.nextUScalar1() * 100);
894 conic->fW = rand.nextUScalar1();
896 conic->fW = 1 + rand.nextUScalar1() * 4;
/external/skia/src/gpu/
DGrAAHairLinePathRenderer.cpp146 SkConic conic; in split_conic() local
147 conic.set(src, weight); in split_conic()
148 conic.chopAt(t, dst); in split_conic()