Home
last modified time | relevance | path

Searched refs:SkDConic (Results 1 – 22 of 22) sorted by relevance

/external/skia/src/pathops/
DSkPathOpsTSect.cpp17 int SkIntersections::intersect(const SkDConic& conic, const SkDQuad& quad) { in intersect()
18 SkTSect<SkDConic, SkDQuad> sect1(conic PATH_OPS_DEBUG_T_SECT_PARAMS(1)); in intersect()
19 SkTSect<SkDQuad, SkDConic> sect2(quad PATH_OPS_DEBUG_T_SECT_PARAMS(2)); in intersect()
20 SkTSect<SkDConic, SkDQuad>::BinarySearch(&sect1, &sect2, this); in intersect()
24 int SkIntersections::intersect(const SkDConic& conic1, const SkDConic& conic2) { in intersect()
25 SkTSect<SkDConic, SkDConic> sect1(conic1 PATH_OPS_DEBUG_T_SECT_PARAMS(1)); in intersect()
26 SkTSect<SkDConic, SkDConic> sect2(conic2 PATH_OPS_DEBUG_T_SECT_PARAMS(2)); in intersect()
27 SkTSect<SkDConic, SkDConic>::BinarySearch(&sect1, &sect2, this); in intersect()
38 int SkIntersections::intersect(const SkDCubic& cubic, const SkDConic& conic) { in intersect()
39 SkTSect<SkDCubic, SkDConic> sect1(cubic PATH_OPS_DEBUG_T_SECT_PARAMS(1)); in intersect()
[all …]
DSkPathOpsConic.h14 struct SkDConic { struct
34 SkDConic flip() const { in flip() argument
35 SkDConic result = {{{fPts[2], fPts[1], fPts[0]}}, fWeight}; in flip()
41 const SkDConic& set(const SkPoint pts[kPointCount], SkScalar weight) { in set() argument
65 bool hullIntersects(const SkDConic& conic, bool* isLinear) const { in hullIntersects() argument
97 SkDConic subDivide(double t1, double t2) const; argument
99 static SkDConic SubDivide(const SkPoint a[kPointCount], SkScalar weight, double t1, double t2) { in SubDivide() argument
100 SkDConic conic; in SubDivide()
111 SkDConic conic; in SubDivide() argument
DSkDConicLineIntersection.cpp18 LineConicIntersections(const SkDConic& c, const SkDLine& l, SkIntersections* i) in LineConicIntersections()
26 LineConicIntersections(const SkDConic& c) in LineConicIntersections()
173 for (int cIndex = 0; cIndex < SkDConic::kPointCount; cIndex += SkDConic::kPointLast) { in addExactEndPoints()
184 for (int cIndex = 0; cIndex < SkDConic::kPointCount; cIndex += SkDConic::kPointLast) { in addNearEndPoints()
199 for (int cIndex = 0; cIndex < SkDConic::kPointCount; cIndex += SkDConic::kPointLast) { in addExactHorizontalEndPoints()
210 for (int cIndex = 0; cIndex < SkDConic::kPointCount; cIndex += SkDConic::kPointLast) { in addNearHorizontalEndPoints()
225 for (int cIndex = 0; cIndex < SkDConic::kPointCount; cIndex += SkDConic::kPointLast) { in addExactVerticalEndPoints()
236 for (int cIndex = 0; cIndex < SkDConic::kPointCount; cIndex += SkDConic::kPointLast) { in addNearVerticalEndPoints()
320 const SkDConic& fConic;
326 int SkIntersections::horizontal(const SkDConic& conic, double left, double right, double y, in horizontal()
[all …]
DSkPathOpsConic.cpp31 int SkDConic::FindExtrema(const double src[], SkScalar w, double t[1]) { in FindExtrema()
46 SkDVector SkDConic::dxdyAtT(double t) const { in dxdyAtT()
72 bool SkDConic::hullIntersects(const SkDCubic& cubic, bool* isLinear) const { in hullIntersects()
76 SkDPoint SkDConic::ptAtT(double t) const { in ptAtT()
86 SkDConic SkDConic::subDivide(double t1, double t2) const { in subDivide()
104 SkDConic dst = {{{{ax / az, ay / az}, {bx / bz, by / bz}, {cx / cz, cy / cz}}}, w }; in subDivide()
108 SkDPoint SkDConic::subDivide(const SkDPoint& a, const SkDPoint& c, double t1, double t2, in subDivide()
110 SkDConic chopped = this->subDivide(t1, t2); in subDivide()
DSkIntersections.h55 SkDConic conic; in conicHorizontal()
63 SkDConic conic; in conicVertical()
70 SkDConic conic; in conicLine()
234 int horizontal(const SkDConic&, double left, double right, double y, bool flipped);
239 static int HorizontalIntercept(const SkDConic& conic, SkScalar y, double* roots);
248 int intersect(const SkDConic&, const SkDLine&);
249 int intersect(const SkDConic&, const SkDQuad&);
250 int intersect(const SkDConic&, const SkDConic&);
253 int intersect(const SkDCubic&, const SkDConic&);
257 int intersectRay(const SkDConic&, const SkDLine&);
[all …]
DSkPathOpsRect.cpp30 void SkDRect::setBounds(const SkDConic& curve, const SkDConic& sub, double startT, double endT) { in setBounds()
36 roots = SkDConic::FindExtrema(&sub[0].fX, sub.fWeight, tValues); in setBounds()
39 roots += SkDConic::FindExtrema(&sub[0].fY, sub.fWeight, &tValues[roots]); in setBounds()
DSkPathOpsCurve.h52 SkDConic fConic;
99 SkDConic conic; in dconic_xy_at_t()
155 SkDConic conic; in dconic_dxdy_at_t()
213 SkDConic conic; in conic_is_vertical()
215 SkDConic dst = conic.subDivide(startT, endT); in conic_is_vertical()
251 SkDConic conic; in conic_intersect_ray()
295 SkDConic conic; in conic_intercept_h()
300 SkDConic conic; in conic_intercept_v()
DSkPathOpsRect.h51 void setBounds(const SkDConic& curve) { in setBounds()
55 void setBounds(const SkDConic& curve, const SkDConic& sub, double tStart, double tEnd);
DSkConicLineIntersection.cpp13 LineConicIntersections(const SkDConic& c, const SkDLine& l, SkIntersections* i) in LineConicIntersections()
30 int SkIntersections::intersectRay(const SkDConic& conic, const SkDLine& line) { in intersectRay()
DSkPathOpsCurve.cpp13 SkDConic dCurve; in setConicBounds()
DSkPathOpsQuad.h66 bool hullIntersects(const SkDConic& , bool* isLinear) const;
DSkPathOpsCubic.h83 bool hullIntersects(const SkDConic& c, bool* isLinear) const;
DSkPathOpsQuad.cpp51 bool SkDQuad::hullIntersects(const SkDConic& conic, bool* isLinear) const { in hullIntersects()
DSkPathOpsTypes.h454 struct SkDConic;
DSkAddIntersections.cpp286 SkDConic conic1, conic2; in AddIntersectTs()
DSkPathOpsCubic.cpp209 bool SkDCubic::hullIntersects(const SkDConic& conic, bool* isLinear) const { in hullIntersects()
DSkOpSegment.cpp1544 edge->fPts[1] = SkDConic::SubDivide(fPts, fWeight, sub[0], sub[1], in subDivide()
1594 edge->fConic[1] = SkDConic::SubDivide(fPts, fWeight, edge->fQuad[0], edge->fQuad[2], in subDivide()
/external/skia/tests/
DPathOpsDebug.cpp51 void SkDConic::dump() const { in dump()
56 void SkDConic::dumpID(int id) const { in dumpID()
61 void SkDConic::dumpInner() const { in dumpInner()
365 SkDConic conic; in DontCallDebugSpan()
368 SkTSect<SkDQuad, SkDConic> q1k2(quad PATH_OPS_DEBUG_T_SECT_PARAMS(1)); in DontCallDebugSpan()
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()
374 SkTSect<SkDCubic, SkDConic> c1k2(cubic PATH_OPS_DEBUG_T_SECT_PARAMS(1)); in DontCallDebugSpan()
395 SkDConic conic; in DontCallDebugT()
[all …]
DPathOpsConicIntersectionTest.cpp19 static const SkDConic testSet[] = {
29 static void oneOff(skiatest::Reporter* reporter, const SkDConic& c1, const SkDConic& c2, in oneOff()
55 const SkDConic& c1 = testSet[outer]; in oneOff()
56 const SkDConic& c2 = testSet[inner]; in oneOff()
DPathOpsConicLineIntersectionTest.cpp16 SkDConic conic;
31 static int doIntersect(SkIntersections& intersections, const SkDConic& conic, const SkDLine& line, in doIntersect()
59 SkDConic conic;
71 const SkDConic& conic = oneOffs[index].conic; in testOneOffs()
98 const SkDConic& conic = lineConicTests[index].conic; in DEF_TEST()
DPathOpsTestCommon.h19 bool ValidConic(const SkDConic& cubic);
DPathOpsTestCommon.cpp268 bool ValidConic(const SkDConic& conic) { in ValidConic()
269 for (int index = 0; index < SkDConic::kPointCount; ++index) { in ValidConic()