Home
last modified time | relevance | path

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

12

/third_party/flutter/skia/src/pathops/
DSkDQuadLineIntersection.cpp98 : fQuad(q) in LineQuadraticIntersections()
106 : fQuad(q) in LineQuadraticIntersections()
120 SkDPoint quadMidPt = fQuad.ptAtT(quadMidT); in checkCoincident()
159 r[n] = (fQuad[n].fY - (*fLine)[0].fY) * adj - (fQuad[n].fX - (*fLine)[0].fX) * opp; in intersectRay()
189 double D = fQuad[2].fY; // f in horizontalIntersect()
190 double E = fQuad[1].fY; // e in horizontalIntersect()
191 double F = fQuad[0].fY; // d in horizontalIntersect()
207 SkDPoint pt = fQuad.ptAtT(quadT); in horizontalIntersect()
231 SkDPoint quadMidPt = fQuad.ptAtT(quadMidT); in uniqueAnswer()
237 SkDPoint qPt = fQuad.ptAtT(quadT); in uniqueAnswer()
[all …]
DSkPathOpsQuad.h129 SkDQuad fQuad;
134 : fQuad(q) { in SkTQuad()
139 const SkDPoint& operator[](int n) const override { return fQuad[n]; }
140 SkDPoint& operator[](int n) override { return fQuad[n]; }
142 bool collapsed() const override { return fQuad.collapsed(); } in collapsed()
143 bool controlsInside() const override { return fQuad.controlsInside(); } in controlsInside()
144 void debugInit() override { return fQuad.debugInit(); } in debugInit()
146 void dumpID(int id) const override { return fQuad.dumpID(id); } in dumpID()
148 SkDVector dxdyAtT(double t) const override { return fQuad.dxdyAtT(t); } in dxdyAtT()
150 SkOpGlobalState* globalState() const override { return fQuad.globalState(); } in globalState()
[all …]
DSkReduceOrder.cpp85 return coincident_line(quad, fQuad); in reduce()
88 return vertical_line(quad, fQuad); in reduce()
91 return horizontal_line(quad, fQuad); in reduce()
93 int result = check_linear(quad, minX, maxX, minY, maxY, fQuad); in reduce()
97 fQuad = quad; in reduce()
279 *reducePts++ = reducer.fQuad[index].asSkPoint(); in Cubic()
DSkReduceOrder.h31 SkDQuad fQuad; member
DSkPathOpsQuad.cpp403 return i->intersectRay(fQuad, line); in intersectRay()
407 return conic.hullIntersects(fQuad, isLinear); in hullIntersects()
411 return cubic.hullIntersects(fQuad, isLinear); in hullIntersects()
415 rect->setBounds(fQuad); in setBounds()
DSkPathOpsCurve.h51 SkDQuad fQuad; member
139 return c.fQuad.ptAtT(t); in ddquad_xy_at_t()
219 return c.fQuad.dxdyAtT(t); in ddquad_dxdy_at_t()
341 i->intersectRay(c.fQuad, ray); in dquad_intersect_ray()
DSkPathOpsCurve.cpp87 dRect.setBounds(dCurve, fQuad, tStart, tEnd); in setQuadBounds()
DSkOpSegment.cpp181 path->quadTo(curvePart.fCurve.fQuad[1].asSkPoint(), end->ptT()); in addCurveTo()
1654 edge->fQuad[1] = SkDQuad::SubDivide(fPts, edge->fQuad[0], edge->fQuad[2], startT, endT); in subDivide()
1656 edge->fConic[1] = SkDConic::SubDivide(fPts, fWeight, edge->fQuad[0], edge->fQuad[2], in subDivide()
/third_party/skia/src/pathops/
DSkDQuadLineIntersection.cpp98 : fQuad(q) in LineQuadraticIntersections()
106 : fQuad(q) in LineQuadraticIntersections()
120 SkDPoint quadMidPt = fQuad.ptAtT(quadMidT); in checkCoincident()
159 r[n] = (fQuad[n].fY - (*fLine)[0].fY) * adj - (fQuad[n].fX - (*fLine)[0].fX) * opp; in intersectRay()
189 double D = fQuad[2].fY; // f in horizontalIntersect()
190 double E = fQuad[1].fY; // e in horizontalIntersect()
191 double F = fQuad[0].fY; // d in horizontalIntersect()
207 SkDPoint pt = fQuad.ptAtT(quadT); in horizontalIntersect()
231 SkDPoint quadMidPt = fQuad.ptAtT(quadMidT); in uniqueAnswer()
237 SkDPoint qPt = fQuad.ptAtT(quadT); in uniqueAnswer()
[all …]
DSkPathOpsQuad.h129 SkDQuad fQuad;
134 : fQuad(q) { in SkTQuad()
139 const SkDPoint& operator[](int n) const override { return fQuad[n]; }
140 SkDPoint& operator[](int n) override { return fQuad[n]; }
142 bool collapsed() const override { return fQuad.collapsed(); } in collapsed()
143 bool controlsInside() const override { return fQuad.controlsInside(); } in controlsInside()
144 void debugInit() override { return fQuad.debugInit(); } in debugInit()
146 void dumpID(int id) const override { return fQuad.dumpID(id); } in dumpID()
148 SkDVector dxdyAtT(double t) const override { return fQuad.dxdyAtT(t); } in dxdyAtT()
150 SkOpGlobalState* globalState() const override { return fQuad.globalState(); } in globalState()
[all …]
DSkReduceOrder.cpp85 return coincident_line(quad, fQuad); in reduce()
88 return vertical_line(quad, fQuad); in reduce()
91 return horizontal_line(quad, fQuad); in reduce()
93 int result = check_linear(quad, minX, maxX, minY, maxY, fQuad); in reduce()
97 fQuad = quad; in reduce()
279 *reducePts++ = reducer.fQuad[index].asSkPoint(); in Cubic()
DSkReduceOrder.h31 SkDQuad fQuad; member
DSkPathOpsQuad.cpp403 return i->intersectRay(fQuad, line); in intersectRay()
407 return conic.hullIntersects(fQuad, isLinear); in hullIntersects()
411 return cubic.hullIntersects(fQuad, isLinear); in hullIntersects()
415 rect->setBounds(fQuad); in setBounds()
DSkPathOpsCurve.h51 SkDQuad fQuad; member
139 return c.fQuad.ptAtT(t); in ddquad_xy_at_t()
219 return c.fQuad.dxdyAtT(t); in ddquad_dxdy_at_t()
341 i->intersectRay(c.fQuad, ray); in dquad_intersect_ray()
DSkPathOpsCurve.cpp87 dRect.setBounds(dCurve, fQuad, tStart, tEnd); in setQuadBounds()
DSkOpSegment.cpp181 path->quadTo(curvePart.fCurve.fQuad[1].asSkPoint(), end->ptT()); in addCurveTo()
1654 edge->fQuad[1] = SkDQuad::SubDivide(fPts, edge->fQuad[0], edge->fQuad[2], startT, endT); in subDivide()
1656 edge->fConic[1] = SkDConic::SubDivide(fPts, fWeight, edge->fQuad[0], edge->fQuad[2], in subDivide()
DSkOpSegment.h90 curve.fQuad.set(pts); in addQuad()
/third_party/skia/bench/
DBezierBench.cpp17 SkPath fQuad; member
27 const SkPath& path = rec->fQuad; in draw_quad()
69 fRec.fQuad.moveTo(20, 20); in BezierBench()
70 fRec.fQuad.quadTo(60, 20, 60, 60); in BezierBench()
71 fRec.fQuad.quadTo(20, 60, 20, 100); in BezierBench()
/third_party/flutter/skia/bench/
DBezierBench.cpp17 SkPath fQuad; member
27 const SkPath& path = rec->fQuad; in draw_quad()
69 fRec.fQuad.moveTo(20, 20); in BezierBench()
70 fRec.fQuad.quadTo(60, 20, 60, 60); in BezierBench()
71 fRec.fQuad.quadTo(20, 60, 20, 100); in BezierBench()
/third_party/flutter/skia/src/core/
DSkStroke.cpp86 SkPoint fQuad[3]; // the stroked quad parallel to the original curve member
109 fQuad[0] = parent->fQuad[0]; in initWithStart()
119 fQuad[2] = parent->fQuad[2]; in initWithEnd()
796 this->conicPerpRay(conic, quadPts->fStartT, &conicStartPt, &quadPts->fQuad[0], in conicQuadEnds()
802 this->conicPerpRay(conic, quadPts->fEndT, &conicEndPt, &quadPts->fQuad[2], in conicQuadEnds()
842 this->cubicPerpRay(cubic, quadPts->fStartT, &cubicStartPt, &quadPts->fQuad[0], in cubicQuadEnds()
848 this->cubicPerpRay(cubic, quadPts->fEndT, &cubicEndPt, &quadPts->fQuad[2], in cubicQuadEnds()
876 const SkPoint& start = quadPts->fQuad[0]; in intersectRay()
877 const SkPoint& end = quadPts->fQuad[2]; in intersectRay()
913 SkPoint* ctrlPt = &quadPts->fQuad[1]; in intersectRay()
[all …]
/third_party/skia/src/core/
DSkStroke.cpp119 SkPoint fQuad[3]; // the stroked quad parallel to the original curve member
142 fQuad[0] = parent->fQuad[0]; in initWithStart()
152 fQuad[2] = parent->fQuad[2]; in initWithEnd()
829 this->conicPerpRay(conic, quadPts->fStartT, &conicStartPt, &quadPts->fQuad[0], in conicQuadEnds()
835 this->conicPerpRay(conic, quadPts->fEndT, &conicEndPt, &quadPts->fQuad[2], in conicQuadEnds()
875 this->cubicPerpRay(cubic, quadPts->fStartT, &cubicStartPt, &quadPts->fQuad[0], in cubicQuadEnds()
881 this->cubicPerpRay(cubic, quadPts->fEndT, &cubicEndPt, &quadPts->fQuad[2], in cubicQuadEnds()
909 const SkPoint& start = quadPts->fQuad[0]; in intersectRay()
910 const SkPoint& end = quadPts->fQuad[2]; in intersectRay()
946 SkPoint* ctrlPt = &quadPts->fQuad[1]; in intersectRay()
[all …]
/third_party/skia/samplecode/
DSamplePath.cpp561 SkPoint* fQuad = fPts + 4; member in CubicCurve2
574 fQuad[0] = fPts[0] + SkVector{ 300, 0}; in CubicCurve2()
575 fQuad[1] = fPts[1] + SkVector{ 300, 0}; in CubicCurve2()
576 fQuad[2] = fPts[2] + SkVector{ 300, 0}; in CubicCurve2()
634 canvas->drawLine(fQuad[0], fQuad[2], paint); in showFlattness()
638 pts[0] = (fQuad[0] + fQuad[1] + fQuad[1] + fQuad[2])*0.25; in showFlattness()
639 pts[1] = (fQuad[0] + fQuad[2]) * 0.5; in showFlattness()
700 path.moveTo(fQuad[0]); in onDrawContent()
701 path.quadTo(fQuad[1], fQuad[2]); in onDrawContent()
709 this->showFrame(canvas, fQuad, 2, paint); in onDrawContent()
[all …]
/third_party/flutter/skia/samplecode/
DSamplePath.cpp580 SkPoint* fQuad = fPts + 4; member in CubicCurve2
592 fQuad[0] = fPts[0] + SkVector{ 300, 0}; in CubicCurve2()
593 fQuad[1] = fPts[1] + SkVector{ 300, 0}; in CubicCurve2()
594 fQuad[2] = fPts[2] + SkVector{ 300, 0}; in CubicCurve2()
645 canvas->drawLine(fQuad[0], fQuad[2], paint); in showFlattness()
649 pts[0] = (fQuad[0] + fQuad[1] + fQuad[1] + fQuad[2])*0.25; in showFlattness()
650 pts[1] = (fQuad[0] + fQuad[2]) * 0.5; in showFlattness()
684 path.moveTo(fQuad[0]); in onDrawContent()
685 path.quadTo(fQuad[1], fQuad[2]); in onDrawContent()
693 this->showFrame(canvas, fQuad, 2, paint); in onDrawContent()
/third_party/skia/tests/
DPathOpsBoundsTest.cpp66 curve.fQuad.set(curvePts); in DEF_TEST()
/third_party/flutter/skia/tests/
DPathOpsBoundsTest.cpp66 curve.fQuad.set(curvePts); in DEF_TEST()

12