Home
last modified time | relevance | path

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

12345678910>>...74

/third_party/skia/gm/
Ddegeneratesegments.cpp37 typedef SkPoint (*AddSegmentFunc)(SkPathBuilder&, SkPoint&);
42 static SkPoint AddMove(SkPathBuilder& path, SkPoint& startPt) { in AddMove()
43 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMove()
48 static SkPoint AddMoveClose(SkPathBuilder& path, SkPoint& startPt) { in AddMoveClose()
49 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveClose()
55 static SkPoint AddDegenLine(SkPathBuilder& path, SkPoint& startPt) { in AddDegenLine()
60 static SkPoint AddMoveDegenLine(SkPathBuilder& path, SkPoint& startPt) { in AddMoveDegenLine()
61 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenLine()
67 static SkPoint AddMoveDegenLineClose(SkPathBuilder& path, SkPoint& startPt) { in AddMoveDegenLineClose()
68 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenLineClose()
[all …]
Dpolygonoffset.cpp26 static void create_ngon(int n, SkPoint* pts, SkScalar w, SkScalar h, SkPathDirection dir) { in create_ngon()
45 const SkPoint gPoints0[] = {
52 const SkPoint gPoints1[] = {
59 const SkPoint gPoints2[] = {
66 const SkPoint gPoints3[] = {
73 const SkPoint gPoints4[] = {
83 const SkPoint gPoints5[] = {
90 const SkPoint gPoints6[] = {
97 const SkPoint gPoints7[] = {
107 const SkPoint gPoints8[] = {
[all …]
/third_party/flutter/skia/gm/
Ddegeneratesegments.cpp37 typedef SkPoint (*AddSegmentFunc)(SkPath&, SkPoint&);
42 static SkPoint AddMove(SkPath& path, SkPoint& startPt) { in AddMove()
43 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMove()
48 static SkPoint AddMoveClose(SkPath& path, SkPoint& startPt) { in AddMoveClose()
49 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveClose()
55 static SkPoint AddDegenLine(SkPath& path, SkPoint& startPt) { in AddDegenLine()
60 static SkPoint AddMoveDegenLine(SkPath& path, SkPoint& startPt) { in AddMoveDegenLine()
61 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenLine()
67 static SkPoint AddMoveDegenLineClose(SkPath& path, SkPoint& startPt) { in AddMoveDegenLineClose()
68 SkPoint moveToPt = startPt + SkPoint::Make(0, 10*SK_Scalar1); in AddMoveDegenLineClose()
[all …]
Dpolygonoffset.cpp26 static void create_ngon(int n, SkPoint* pts, SkScalar w, SkScalar h, SkPath::Direction dir) { in create_ngon()
45 const SkPoint gPoints0[] = {
52 const SkPoint gPoints1[] = {
59 const SkPoint gPoints2[] = {
66 const SkPoint gPoints3[] = {
73 const SkPoint gPoints4[] = {
83 const SkPoint gPoints5[] = {
90 const SkPoint gPoints6[] = {
97 const SkPoint gPoints7[] = {
107 const SkPoint gPoints8[] = {
[all …]
/third_party/skia/tests/
DInsetConvexPolyTest.cpp11 SkTDArray<SkPoint> rrectPoly; in DEF_TEST()
14 *rrectPoly.push() = SkPoint::Make(-100, 55); in DEF_TEST()
15 *rrectPoly.push() = SkPoint::Make(100, 55); in DEF_TEST()
16 *rrectPoly.push() = SkPoint::Make(100 + 2.5f, 50 + 4.330127f); in DEF_TEST()
17 *rrectPoly.push() = SkPoint::Make(100 + 3.535534f, 50 + 3.535534f); in DEF_TEST()
18 *rrectPoly.push() = SkPoint::Make(100 + 4.330127f, 50 + 2.5f); in DEF_TEST()
19 *rrectPoly.push() = SkPoint::Make(105, 50); in DEF_TEST()
20 *rrectPoly.push() = SkPoint::Make(105, -50); in DEF_TEST()
21 *rrectPoly.push() = SkPoint::Make(100 + 4.330127f, -50 - 2.5f); in DEF_TEST()
22 *rrectPoly.push() = SkPoint::Make(100 + 3.535534f, -50 - 3.535534f); in DEF_TEST()
[all …]
DOffsetSimplePolyTest.cpp11 SkTDArray<SkPoint> rrectPoly; in DEF_TEST()
17 *rrectPoly.push() = SkPoint::Make(-100, 55); in DEF_TEST()
18 *rrectPoly.push() = SkPoint::Make(100, 55); in DEF_TEST()
19 *rrectPoly.push() = SkPoint::Make(100 + 2.5f, 50 + 4.330127f); in DEF_TEST()
20 *rrectPoly.push() = SkPoint::Make(100 + 3.535534f, 50 + 3.535534f); in DEF_TEST()
21 *rrectPoly.push() = SkPoint::Make(100 + 4.330127f, 50 + 2.5f); in DEF_TEST()
22 *rrectPoly.push() = SkPoint::Make(105, 50); in DEF_TEST()
23 *rrectPoly.push() = SkPoint::Make(105, -50); in DEF_TEST()
24 *rrectPoly.push() = SkPoint::Make(100 + 4.330127f, -50 - 2.5f); in DEF_TEST()
25 *rrectPoly.push() = SkPoint::Make(100 + 3.535534f, -50 - 3.535534f); in DEF_TEST()
[all …]
DPolyUtilsTest.cpp12 SkTDArray<SkPoint> poly; in DEF_TEST()
21 *poly.push() = SkPoint::Make(-100, 55); in DEF_TEST()
22 *poly.push() = SkPoint::Make(100, 55); in DEF_TEST()
23 *poly.push() = SkPoint::Make(102.5f, 54.330127f); in DEF_TEST()
86 *poly.push() = SkPoint::Make(-100, 55); in DEF_TEST()
87 *poly.push() = SkPoint::Make(100, 55); in DEF_TEST()
88 *poly.push() = SkPoint::Make(100 + 2.5f, 50 + 4.330127f); in DEF_TEST()
89 *poly.push() = SkPoint::Make(100 + 3.535534f, 50 + 3.535534f); in DEF_TEST()
90 *poly.push() = SkPoint::Make(100 + 4.330127f, 50 + 2.5f); in DEF_TEST()
91 *poly.push() = SkPoint::Make(105, 50); in DEF_TEST()
[all …]
/third_party/flutter/skia/tests/
DInsetConvexPolyTest.cpp11 SkTDArray<SkPoint> rrectPoly; in DEF_TEST()
14 *rrectPoly.push() = SkPoint::Make(-100, 55); in DEF_TEST()
15 *rrectPoly.push() = SkPoint::Make(100, 55); in DEF_TEST()
16 *rrectPoly.push() = SkPoint::Make(100 + 2.5f, 50 + 4.330127f); in DEF_TEST()
17 *rrectPoly.push() = SkPoint::Make(100 + 3.535534f, 50 + 3.535534f); in DEF_TEST()
18 *rrectPoly.push() = SkPoint::Make(100 + 4.330127f, 50 + 2.5f); in DEF_TEST()
19 *rrectPoly.push() = SkPoint::Make(105, 50); in DEF_TEST()
20 *rrectPoly.push() = SkPoint::Make(105, -50); in DEF_TEST()
21 *rrectPoly.push() = SkPoint::Make(100 + 4.330127f, -50 - 2.5f); in DEF_TEST()
22 *rrectPoly.push() = SkPoint::Make(100 + 3.535534f, -50 - 3.535534f); in DEF_TEST()
[all …]
DOffsetSimplePolyTest.cpp11 SkTDArray<SkPoint> rrectPoly; in DEF_TEST()
17 *rrectPoly.push() = SkPoint::Make(-100, 55); in DEF_TEST()
18 *rrectPoly.push() = SkPoint::Make(100, 55); in DEF_TEST()
19 *rrectPoly.push() = SkPoint::Make(100 + 2.5f, 50 + 4.330127f); in DEF_TEST()
20 *rrectPoly.push() = SkPoint::Make(100 + 3.535534f, 50 + 3.535534f); in DEF_TEST()
21 *rrectPoly.push() = SkPoint::Make(100 + 4.330127f, 50 + 2.5f); in DEF_TEST()
22 *rrectPoly.push() = SkPoint::Make(105, 50); in DEF_TEST()
23 *rrectPoly.push() = SkPoint::Make(105, -50); in DEF_TEST()
24 *rrectPoly.push() = SkPoint::Make(100 + 4.330127f, -50 - 2.5f); in DEF_TEST()
25 *rrectPoly.push() = SkPoint::Make(100 + 3.535534f, -50 - 3.535534f); in DEF_TEST()
[all …]
DPolyUtilsTest.cpp12 SkTDArray<SkPoint> poly; in DEF_TEST()
21 *poly.push() = SkPoint::Make(-100, 55); in DEF_TEST()
22 *poly.push() = SkPoint::Make(100, 55); in DEF_TEST()
23 *poly.push() = SkPoint::Make(102.5f, 54.330127f); in DEF_TEST()
86 *poly.push() = SkPoint::Make(-100, 55); in DEF_TEST()
87 *poly.push() = SkPoint::Make(100, 55); in DEF_TEST()
88 *poly.push() = SkPoint::Make(100 + 2.5f, 50 + 4.330127f); in DEF_TEST()
89 *poly.push() = SkPoint::Make(100 + 3.535534f, 50 + 3.535534f); in DEF_TEST()
90 *poly.push() = SkPoint::Make(100 + 4.330127f, 50 + 2.5f); in DEF_TEST()
91 *poly.push() = SkPoint::Make(105, 50); in DEF_TEST()
[all …]
/third_party/skia/src/core/
DSkGeometry.h14 static inline Sk2s from_point(const SkPoint& point) { in from_point()
18 static inline SkPoint to_point(const Sk2s& x) { in to_point()
19 SkPoint point; in to_point()
44 SkPoint SkEvalQuadAt(const SkPoint src[3], SkScalar t);
45 SkPoint SkEvalQuadTangentAt(const SkPoint src[3], SkScalar t);
50 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent = nullptr);
56 void SkChopQuadAt(const SkPoint src[3], SkPoint dst[5], SkScalar t);
61 void SkChopQuadAtHalf(const SkPoint src[3], SkPoint dst[5]);
71 inline float SkMeasureQuadRotation(const SkPoint pts[3]) { in SkMeasureQuadRotation()
78 float SkFindQuadMidTangent(const SkPoint src[4]);
[all …]
DSkPointPriv.h22 static bool AreFinite(const SkPoint array[], int count) { in AreFinite()
26 static const SkScalar* AsScalars(const SkPoint& pt) { return &pt.fX; } in AsScalars()
32 static SkScalar DistanceToLineBetweenSqd(const SkPoint& pt, const SkPoint& a,
33 const SkPoint& b, Side* side = nullptr);
35 static SkScalar DistanceToLineBetween(const SkPoint& pt, const SkPoint& a,
36 const SkPoint& b, Side* side = nullptr) {
40 static SkScalar DistanceToLineSegmentBetweenSqd(const SkPoint& pt, const SkPoint& a,
41 const SkPoint& b);
43 static SkScalar DistanceToLineSegmentBetween(const SkPoint& pt, const SkPoint& a, in DistanceToLineSegmentBetween()
44 const SkPoint& b) { in DistanceToLineSegmentBetween()
[all …]
DSkEdgeClipper.h21 bool clipLine(SkPoint p0, SkPoint p1, const SkRect& clip);
22 bool clipQuad(const SkPoint pts[3], const SkRect& clip);
23 bool clipCubic(const SkPoint pts[4], const SkRect& clip);
25 SkPath::Verb next(SkPoint pts[]);
37 SkPoint* fCurrPoint;
45 SkPoint fPoints[kMaxPoints];
48 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
49 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
50 void appendLine(SkPoint p0, SkPoint p1);
52 void appendQuad(const SkPoint pts[3], bool reverse);
[all …]
DSkStroke.cpp93 static bool set_normal_unitnormal(const SkPoint& before, const SkPoint& after, SkScalar scale, in set_normal_unitnormal()
119 SkPoint fQuad[3]; // the stroked quad parallel to the original curve
120 SkPoint fTangentStart; // a point tangent to fQuad[0]
121 SkPoint fTangentEnd; // a point tangent to fQuad[2]
167 SkPoint moveToPt() const { return fFirstPt; } in moveToPt()
169 void moveTo(const SkPoint&);
170 void lineTo(const SkPoint&, const SkPath::Iter* iter = nullptr);
171 void quadTo(const SkPoint&, const SkPoint&);
172 void conicTo(const SkPoint&, const SkPoint&, SkScalar weight);
173 void cubicTo(const SkPoint&, const SkPoint&, const SkPoint&);
[all …]
DSkPathMakers.h21 const SkPoint& current() const { in current()
26 const SkPoint& next() { in next()
32 SkPoint fPts[N];
44 fPts[0] = SkPoint::Make(rect.fLeft, rect.fTop); in SkPath_RectPointIterator()
45 fPts[1] = SkPoint::Make(rect.fRight, rect.fTop); in SkPath_RectPointIterator()
46 fPts[2] = SkPoint::Make(rect.fRight, rect.fBottom); in SkPath_RectPointIterator()
47 fPts[3] = SkPoint::Make(rect.fLeft, rect.fBottom); in SkPath_RectPointIterator()
59 fPts[0] = SkPoint::Make(cx, oval.fTop); in SkPath_OvalPointIterator()
60 fPts[1] = SkPoint::Make(oval.fRight, cy); in SkPath_OvalPointIterator()
61 fPts[2] = SkPoint::Make(cx, oval.fBottom); in SkPath_OvalPointIterator()
[all …]
/third_party/flutter/skia/src/core/
DSkPointPriv.h22 static bool AreFinite(const SkPoint array[], int count) { in AreFinite()
26 static const SkScalar* AsScalars(const SkPoint& pt) { return &pt.fX; } in AsScalars()
32 static SkScalar DistanceToLineBetweenSqd(const SkPoint& pt, const SkPoint& a,
33 const SkPoint& b, Side* side = nullptr);
35 static SkScalar DistanceToLineBetween(const SkPoint& pt, const SkPoint& a,
36 const SkPoint& b, Side* side = nullptr) {
40 static SkScalar DistanceToLineSegmentBetweenSqd(const SkPoint& pt, const SkPoint& a,
41 const SkPoint& b);
43 static SkScalar DistanceToLineSegmentBetween(const SkPoint& pt, const SkPoint& a, in DistanceToLineSegmentBetween()
44 const SkPoint& b) { in DistanceToLineSegmentBetween()
[all …]
DSkGeometry.h14 static inline Sk2s from_point(const SkPoint& point) { in from_point()
18 static inline SkPoint to_point(const Sk2s& x) { in to_point()
19 SkPoint point; in to_point()
35 SkPoint SkEvalQuadAt(const SkPoint src[3], SkScalar t);
36 SkPoint SkEvalQuadTangentAt(const SkPoint src[3], SkScalar t);
41 void SkEvalQuadAt(const SkPoint src[3], SkScalar t, SkPoint* pt, SkVector* tangent = nullptr);
47 void SkChopQuadAt(const SkPoint src[3], SkPoint dst[5], SkScalar t);
52 void SkChopQuadAtHalf(const SkPoint src[3], SkPoint dst[5]);
70 int SkChopQuadAtYExtrema(const SkPoint src[3], SkPoint dst[5]);
71 int SkChopQuadAtXExtrema(const SkPoint src[3], SkPoint dst[5]);
[all …]
DSkEdgeClipper.h21 bool clipLine(SkPoint p0, SkPoint p1, const SkRect& clip);
22 bool clipQuad(const SkPoint pts[3], const SkRect& clip);
23 bool clipCubic(const SkPoint pts[4], const SkRect& clip);
25 SkPath::Verb next(SkPoint pts[]);
30 SkPoint* fCurrPoint;
38 SkPoint fPoints[kMaxPoints];
41 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
42 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
43 void appendLine(SkPoint p0, SkPoint p1);
45 void appendQuad(const SkPoint pts[3], bool reverse);
[all …]
DSkStroke.cpp60 static bool set_normal_unitnormal(const SkPoint& before, const SkPoint& after, SkScalar scale, in set_normal_unitnormal()
86 SkPoint fQuad[3]; // the stroked quad parallel to the original curve
87 SkPoint fTangentStart; // a point tangent to fQuad[0]
88 SkPoint fTangentEnd; // a point tangent to fQuad[2]
134 SkPoint moveToPt() const { return fFirstPt; } in moveToPt()
136 void moveTo(const SkPoint&);
137 void lineTo(const SkPoint&, const SkPath::Iter* iter = nullptr);
138 void quadTo(const SkPoint&, const SkPoint&);
139 void conicTo(const SkPoint&, const SkPoint&, SkScalar weight);
140 void cubicTo(const SkPoint&, const SkPoint&, const SkPoint&);
[all …]
DSkQuadClipper.h26 bool clipQuad(const SkPoint src[3], SkPoint dst[3]);
38 bool clipQuad(const SkPoint pts[3], const SkRect& clip);
39 bool clipCubic(const SkPoint pts[4], const SkRect& clip);
41 SkPath::Verb next(SkPoint pts[]);
44 SkPoint* fCurrPoint;
51 SkPoint fPoints[kMaxPoints];
54 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip);
55 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
57 void appendQuad(const SkPoint pts[3], bool reverse);
58 void appendCubic(const SkPoint pts[4], bool reverse);
[all …]
/third_party/flutter/skia/src/gpu/geometry/
DGrPathUtils.h32 uint32_t quadraticPointCount(const SkPoint points[], SkScalar tol);
34 uint32_t generateQuadraticPoints(const SkPoint& p0,
35 const SkPoint& p1,
36 const SkPoint& p2,
38 SkPoint** points,
41 uint32_t cubicPointCount(const SkPoint points[], SkScalar tol);
43 uint32_t generateCubicPoints(const SkPoint& p0,
44 const SkPoint& p1,
45 const SkPoint& p2,
46 const SkPoint& p3,
[all …]
/third_party/skia/src/gpu/geometry/
DGrPathUtils.h44 uint32_t quadraticPointCount(const SkPoint points[], SkScalar tol);
47 uint32_t generateQuadraticPoints(const SkPoint& p0,
48 const SkPoint& p1,
49 const SkPoint& p2,
51 SkPoint** points,
57 uint32_t cubicPointCount(const SkPoint points[], SkScalar tol);
60 uint32_t generateCubicPoints(const SkPoint& p0,
61 const SkPoint& p1,
62 const SkPoint& p2,
63 const SkPoint& p3,
[all …]
/third_party/skia/include/core/
DSkPathBuilder.h38 SkPathBuilder& moveTo(SkPoint pt);
39 SkPathBuilder& moveTo(SkScalar x, SkScalar y) { return this->moveTo(SkPoint::Make(x, y)); } in moveTo()
41 SkPathBuilder& lineTo(SkPoint pt);
42 SkPathBuilder& lineTo(SkScalar x, SkScalar y) { return this->lineTo(SkPoint::Make(x, y)); } in lineTo()
44 SkPathBuilder& quadTo(SkPoint pt1, SkPoint pt2);
46 return this->quadTo(SkPoint::Make(x1, y1), SkPoint::Make(x2, y2)); in quadTo()
48 SkPathBuilder& quadTo(const SkPoint pts[2]) { return this->quadTo(pts[0], pts[1]); } in quadTo()
50 SkPathBuilder& conicTo(SkPoint pt1, SkPoint pt2, SkScalar w);
52 return this->conicTo(SkPoint::Make(x1, y1), SkPoint::Make(x2, y2), w); in conicTo()
54 SkPathBuilder& conicTo(const SkPoint pts[2], SkScalar w) { in conicTo()
[all …]
/third_party/flutter/skia/src/pathops/
DSkPathOpsCurve.h19 SkPoint fPts[4];
23 const SkPoint& operator[](int n) const {
67 SkDPoint conicTop(const SkPoint curve[3], SkScalar curveWeight,
69 SkDPoint cubicTop(const SkPoint curve[4], SkScalar , double s, double e, double* topT);
72 SkDPoint lineTop(const SkPoint[2], SkScalar , double , double , double* topT);
75 SkDPoint quadTop(const SkPoint curve[3], SkScalar , double s, double e, double* topT);
77 void setConicBounds(const SkPoint curve[3], SkScalar curveWeight,
79 void setCubicBounds(const SkPoint curve[4], SkScalar ,
81 void setQuadBounds(const SkPoint curve[3], SkScalar ,
99 extern SkDPoint (SkDCurve::* const Top[])(const SkPoint curve[], SkScalar cWeight,
[all …]
/third_party/skia/src/pathops/
DSkPathOpsCurve.h19 SkPoint fPts[4];
23 const SkPoint& operator[](int n) const {
67 SkDPoint conicTop(const SkPoint curve[3], SkScalar curveWeight,
69 SkDPoint cubicTop(const SkPoint curve[4], SkScalar , double s, double e, double* topT);
72 SkDPoint lineTop(const SkPoint[2], SkScalar , double , double , double* topT);
75 SkDPoint quadTop(const SkPoint curve[3], SkScalar , double s, double e, double* topT);
77 void setConicBounds(const SkPoint curve[3], SkScalar curveWeight,
79 void setCubicBounds(const SkPoint curve[4], SkScalar ,
81 void setQuadBounds(const SkPoint curve[3], SkScalar ,
99 extern SkDPoint (SkDCurve::* const Top[])(const SkPoint curve[], SkScalar cWeight,
[all …]

12345678910>>...74