Home
last modified time | relevance | path

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

/external/skia/src/pathops/
DSkPathOpsTSect.cpp19 int SkIntersections::intersect(const SkDConic& conic, const SkDQuad& quad) { in intersect()
20 SkTSect<SkDConic, SkDQuad> sect1(conic in intersect()
22 SkTSect<SkDQuad, SkDConic> sect2(quad in intersect()
24 SkTSect<SkDConic, SkDQuad>::BinarySearch(&sect1, &sect2, this); in intersect()
28 int SkIntersections::intersect(const SkDConic& conic1, const SkDConic& conic2) { in intersect()
29 SkTSect<SkDConic, SkDConic> sect1(conic1 in intersect()
31 SkTSect<SkDConic, SkDConic> sect2(conic2 in intersect()
33 SkTSect<SkDConic, SkDConic>::BinarySearch(&sect1, &sect2, this); in intersect()
46 int SkIntersections::intersect(const SkDCubic& cubic, const SkDConic& conic) { in intersect()
47 SkTSect<SkDCubic, SkDConic> sect1(cubic in intersect()
[all …]
DSkPathOpsConic.h14 struct SkDConic { struct
36 SkDConic flip() const { in flip() argument
37 SkDConic result = {{{fPts[2], fPts[1], fPts[0]} in flip()
48 const SkDConic& set(const SkPoint pts[kPointCount], SkScalar weight in set() argument
73 bool hullIntersects(const SkDConic& conic, bool* isLinear) const { in hullIntersects() argument
105 SkDConic subDivide(double t1, double t2) const; argument
107 static SkDConic SubDivide(const SkPoint a[kPointCount], SkScalar weight, double t1, double t2) { in SubDivide() argument
108 SkDConic conic; in SubDivide()
119 SkDConic conic; in SubDivide() argument
DSkDConicLineIntersection.cpp19 LineConicIntersections(const SkDConic& c, const SkDLine& l, SkIntersections* i) in LineConicIntersections()
27 LineConicIntersections(const SkDConic& c) in LineConicIntersections()
179 for (int cIndex = 0; cIndex < SkDConic::kPointCount; cIndex += SkDConic::kPointLast) { in addExactEndPoints()
190 for (int cIndex = 0; cIndex < SkDConic::kPointCount; cIndex += SkDConic::kPointLast) { in addNearEndPoints()
220 for (int cIndex = 0; cIndex < SkDConic::kPointCount; cIndex += SkDConic::kPointLast) { in addExactHorizontalEndPoints()
231 for (int cIndex = 0; cIndex < SkDConic::kPointCount; cIndex += SkDConic::kPointLast) { in addNearHorizontalEndPoints()
246 for (int cIndex = 0; cIndex < SkDConic::kPointCount; cIndex += SkDConic::kPointLast) { in addExactVerticalEndPoints()
257 for (int cIndex = 0; cIndex < SkDConic::kPointCount; cIndex += SkDConic::kPointLast) { in addNearVerticalEndPoints()
341 const SkDConic& fConic;
347 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()
49 SkDVector SkDConic::dxdyAtT(double t) const { in dxdyAtT()
83 bool SkDConic::hullIntersects(const SkDCubic& cubic, bool* isLinear) const { in hullIntersects()
87 SkDPoint SkDConic::ptAtT(double t) const { in ptAtT()
123 SkDConic SkDConic::subDivide(double t1, double t2) const { in subDivide()
159 SkDConic dst = {{{{ax / az, ay / az}, {bx / bz, by / bz}, {cx / cz, cy / cz}} in subDivide()
165 SkDPoint SkDConic::subDivide(const SkDPoint& a, const SkDPoint& c, double t1, double t2, in subDivide()
167 SkDConic chopped = this->subDivide(t1, t2); in subDivide()
DSkIntersections.h59 SkDConic conic; in conicHorizontal()
67 SkDConic conic; in conicVertical()
74 SkDConic conic; in conicLine()
247 int horizontal(const SkDConic&, double left, double right, double y, bool flipped);
252 static int HorizontalIntercept(const SkDConic& conic, SkScalar y, double* roots);
261 int intersect(const SkDConic&, const SkDLine&);
262 int intersect(const SkDConic&, const SkDQuad&);
263 int intersect(const SkDConic&, const SkDConic&);
266 int intersect(const SkDCubic&, const SkDConic&);
270 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()
DSkPathOpsRect.h50 void setBounds(const SkDConic& curve) { in setBounds()
54 void setBounds(const SkDConic& curve, const SkDConic& sub, double tStart, double tEnd);
DSkPathOpsCurve.h52 SkDConic fConic;
115 SkDConic conic; in dconic_xy_at_t()
195 SkDConic conic; in dconic_dxdy_at_t()
277 SkDConic conic; in conic_is_vertical()
279 SkDConic dst = conic.subDivide(startT, endT); in conic_is_vertical()
315 SkDConic conic; in conic_intersect_ray()
383 SkDConic conic; in conic_intercept_h()
388 SkDConic conic; in conic_intercept_v()
DSkPathOpsQuad.h81 bool hullIntersects(const SkDConic& , bool* isLinear) const;
DSkPathOpsCubic.h79 bool hullIntersects(const SkDConic& c, bool* isLinear) const;
DSkPathOpsCurve.cpp64 SkDConic dCurve; in setConicBounds()
DSkPathOpsQuad.cpp81 bool SkDQuad::hullIntersects(const SkDConic& conic, bool* isLinear) const { in hullIntersects()
DSkPathOpsTypes.h564 struct SkDConic;
DSkAddIntersections.cpp285 SkDConic conic1, conic2; in AddIntersectTs()
DSkPathOpsCubic.cpp206 bool SkDCubic::hullIntersects(const SkDConic& conic, bool* isLinear) const { in hullIntersects()
DSkOpSegment.cpp1589 edge->fConic[1] = SkDConic::SubDivide(fPts, fWeight, edge->fQuad[0], edge->fQuad[2], in subDivide()
DSkPathOpsDebug.cpp733 void SkDConic::debugSet(const SkDPoint* pts, SkScalar weight) { in debugSet()
/external/skia/tests/
DPathOpsDebug.cpp59 void SkDConic::dump() const { in dump()
64 void SkDConic::dumpID(int id) const { in dumpID()
69 void SkDConic::dumpInner() const { in dumpInner()
415 SkDConic conic; in DontCallDebugSpan()
418 SkTSect<SkDQuad, SkDConic> q1k2(quad SkDEBUGPARAMS(nullptr) PATH_OPS_DEBUG_T_SECT_PARAMS(1)); in DontCallDebugSpan()
420 SkTSect<SkDConic, SkDQuad> k1q2(conic SkDEBUGPARAMS(nullptr) PATH_OPS_DEBUG_T_SECT_PARAMS(1)); in DontCallDebugSpan()
421 … SkTSect<SkDConic, SkDConic> k1k2(conic SkDEBUGPARAMS(nullptr) PATH_OPS_DEBUG_T_SECT_PARAMS(1)); in DontCallDebugSpan()
422 … SkTSect<SkDConic, SkDCubic> k1c2(conic SkDEBUGPARAMS(nullptr) PATH_OPS_DEBUG_T_SECT_PARAMS(1)); in DontCallDebugSpan()
424 … SkTSect<SkDCubic, SkDConic> c1k2(cubic SkDEBUGPARAMS(nullptr) PATH_OPS_DEBUG_T_SECT_PARAMS(1)); in DontCallDebugSpan()
445 SkDConic conic; in DontCallDebugT()
[all …]
DPathOpsConicIntersectionTest.cpp47 static void chopCompare(const SkConic chopped[2], const SkDConic dChopped[2]) { in chopCompare()
117 static void writeDPng(const SkDConic& dC, const char* name) { in writeDPng()
119 SkDConic dConic = {{{ {dC.fPts[0].fX * scale, dC.fPts[0].fY * scale }, in writeDPng()
146 SkDConic chopped = dConic.subDivide(tIndex / (double) chops, in writeDPng()
160 static void chopBothWays(const SkDConic& dConic, double t, const char* name) { in chopBothWays()
167 SkDConic dChopped[2]; in chopBothWays()
183 const SkDConic frame0[] = {
188 const SkDConic frame1[] = {
195 const SkDConic frame2[] = {
202 const SkDConic frame3[] = {
[all …]
DPathOpsConicLineIntersectionTest.cpp32 static int doIntersect(SkIntersections& intersections, const SkDConic& conic, const SkDLine& line, in doIntersect()
73 SkDConic conic; in testOneOffs()
102 SkDConic conic; in DEF_TEST()
DPathOpsTestCommon.h34 bool ValidConic(const SkDConic& cubic);
DPathOpsConicQuadIntersectionTest.cpp29 SkDConic conic; in conicQuadIntersection()
DPathOpsCubicConicIntersectionTest.cpp37 SkDConic conic; in cubicConicIntersection()
DPathOpsTestCommon.cpp268 bool ValidConic(const SkDConic& conic) { in ValidConic()
269 for (int index = 0; index < SkDConic::kPointCount; ++index) { in ValidConic()
/external/skia/samplecode/
DSampleAAGeometry.cpp1274 SkDConic conic; in hittest_verb()