Searched refs:pts (Results 1 - 25 of 314) sorted by relevance

1234567891011>>

/external/skia/samplecode/
H A DSampleHairCurves.cpp42 SkScalar pts[] = { local
48 curves.moveTo(pts[0], pts[1]);
49 curves.cubicTo(pts[2], pts[3],
50 pts[4], pts[5],
51 pts[6], pts[7]);
53 hulls.moveTo(pts[
64 SkScalar pts[] = { local
82 SkScalar pts[] = { local
103 SkScalar pts[] = { local
[all...]
H A DSampleGradients.cpp14 SkPoint pts[] = { { r.fLeft, r.fTop }, { r.fRight, r.fTop } }; local
15 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode);
65 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { argument
66 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm);
69 static sk_sp<SkShader> MakeRadial(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { argument
71 center.set(SkScalarAve(pts[0].fX, pts[1].fX),
72 SkScalarAve(pts[0].fY, pts[1].fY));
77 static sk_sp<SkShader> MakeSweep(const SkPoint pts[ argument
84 Make2Conical(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) argument
96 Make2ConicalConcentric(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) argument
131 SkPoint pts[2] = { variable
[all...]
H A DSamplePoints.cpp38 static void fill_pts(SkPoint pts[], size_t n, SkRandom* rand) { argument
40 pts[i].set(rand->nextUScalar1() * 640, rand->nextUScalar1() * 480);
59 SkPoint* pts = new SkPoint[n]; local
60 fill_pts(pts, n, &rand);
62 canvas->drawPoints(SkCanvas::kPolygon_PointMode, n, pts, p0);
63 canvas->drawPoints(SkCanvas::kLines_PointMode, n, pts, p1);
64 canvas->drawPoints(SkCanvas::kPoints_PointMode, n, pts, p2);
65 canvas->drawPoints(SkCanvas::kPoints_PointMode, n, pts, p3);
67 delete[] pts;
H A DSampleHairline.cpp29 static void generate_pts(SkPoint pts[], int count, int w, int h) { argument
31 pts[i].set(gRand.nextUScalar1() * 3 * w - SkIntToScalar(w),
76 SkPoint pts[N]; local
78 generate_pts(pts, N, WIDTH, HEIGHT);
80 canvas->drawLine(pts[0].fX, pts[0].fY, pts[1].fX, pts[1].fY, paint);
83 pts[0].fX, pts[
92 SkPoint pts[N]; local
115 SkPoint pts[N]; local
139 SkPoint pts[N]; local
[all...]
H A DSampleShaderText.cpp20 SkPoint pts[] = { { 0, 0 }, { s, s } }; local
26 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos,
57 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { argument
58 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm);
61 static sk_sp<SkShader> MakeRadial(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { argument
63 center.set(SkScalarAve(pts[0].fX, pts[1].fX),
64 SkScalarAve(pts[0].fY, pts[1].fY));
69 static sk_sp<SkShader> MakeSweep(const SkPoint pts[ argument
76 Make2Conical(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) argument
120 SkPoint pts[2] = { local
[all...]
H A DSampleShaders.cpp24 SkPoint pts[2]; local
27 pts[0].set(0, 0);
28 pts[1].set(0, SkIntToScalar(bm.height()));
31 auto shaderA = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode);
47 SkPoint pts[2]; local
50 pts[0].set(0, 0);
51 pts[1].set(SkIntToScalar(100), 0);
54 auto shaderA = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode);
56 pts[0].set(0, 0);
57 pts[
[all...]
/external/skia/src/pathops/
H A DSkLineParameters.h31 bool cubicEndPoints(const SkDCubic& pts) { argument
33 cubicEndPoints(pts, 0, endIndex);
38 cubicEndPoints(pts, 0, ++endIndex);
44 cubicEndPoints(pts, 0, ++endIndex); // line
55 if (NotAlmostEqualUlps(pts[0].fY, pts[++endIndex].fY)) {
56 if (pts[0].fY > pts[endIndex].fY) {
65 if (pts[0].fY > pts[
71 cubicEndPoints(const SkDCubic& pts, int s, int e) argument
85 lineEndPoints(const SkDLine& pts) argument
91 quadEndPoints(const SkDQuad& pts) argument
110 quadEndPoints(const SkDQuad& pts, int s, int e) argument
138 cubicDistanceY(const SkDCubic& pts, SkDCubic& distance) const argument
146 quadDistanceY(const SkDQuad& pts, SkDQuad& distance) const argument
154 controlPtDistance(const SkDCubic& pts, int index) const argument
[all...]
H A DSkPathOpsTightBounds.cpp16 SkPoint pts[4]; local
17 verb = iter.next(pts);
20 moveBounds.fLeft = SkTMin(moveBounds.fLeft, pts[0].fX);
21 moveBounds.fTop = SkTMin(moveBounds.fTop, pts[0].fY);
22 moveBounds.fRight = SkTMax(moveBounds.fRight, pts[0].fX);
23 moveBounds.fBottom = SkTMax(moveBounds.fBottom, pts[0].fY);
30 wellBehaved &= between(pts[0].fX, pts[1].fX, pts[2].fX);
31 wellBehaved &= between(pts[
[all...]
H A DSkAddIntersections.cpp13 static void debugShowLineIntersection(int pts, const SkIntersectionHelper& wt, argument
15 SkASSERT(i.used() == pts);
16 if (!pts) {
18 __FUNCTION__, LINE_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts()));
22 i[0][0], LINE_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0));
23 if (pts == 2) {
26 SkDebugf(" wnTs[0]=%g " LINE_DEBUG_STR, i[1][0], LINE_DEBUG_DATA(wn.pts()));
27 if (pts == 2) {
33 static void debugShowQuadLineIntersection(int pts, cons argument
54 debugShowQuadIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
74 debugShowConicLineIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
94 debugShowConicQuadIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
114 debugShowConicIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
135 debugShowCubicLineIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
155 debugShowCubicQuadIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
175 debugShowCubicConicIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
195 debugShowCubicIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
281 int pts = 0; local
[all...]
H A DSkOpContour.cpp50 void SkOpContourBuilder::addConic(SkPoint pts[3], SkScalar weight) { argument
52 fContour->addConic(pts, weight);
55 void SkOpContourBuilder::addCubic(SkPoint pts[4]) { argument
57 fContour->addCubic(pts);
60 void SkOpContourBuilder::addCurve(SkPath::Verb verb, const SkPoint pts[4], SkScalar weight) { argument
62 this->addLine(pts);
69 memcpy(ptStorage, pts, sizeof(SkPoint) * 3);
74 memcpy(ptStorage, pts, sizeof(SkPoint) * 3);
79 memcpy(ptStorage, pts, sizeof(SkPoint) * 4);
87 void SkOpContourBuilder::addLine(const SkPoint pts[ argument
101 addQuad(SkPoint pts[3]) argument
[all...]
/external/skia/gm/
H A Dgradients_2pt_conical.cpp41 static sk_sp<SkShader> Make2ConicalOutside(const SkPoint pts[2], const GradData& data, argument
44 SkScalar radius0 = (pts[1].fX - pts[0].fX) / 10;
45 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3;
46 center0.set(pts[0].fX + radius0, pts[0].fY + radius0);
47 center1.set(pts[1].fX - radius1, pts[1].fY - radius1);
52 static sk_sp<SkShader> Make2ConicalOutsideFlip(const SkPoint pts[ argument
63 Make2ConicalInside(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
76 Make2ConicalInsideFlip(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
89 Make2ConicalInsideCenter(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
102 Make2ConicalZeroRad(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
115 Make2ConicalZeroRadFlip(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
128 Make2ConicalZeroRadCenter(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
140 Make2ConicalZeroRadOutside(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
153 Make2ConicalZeroRadFlipOutside(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
165 Make2ConicalEdgeX(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
177 Make2ConicalEdgeY(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
189 Make2ConicalZeroRadEdgeX(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
202 Make2ConicalZeroRadEdgeY(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
214 Make2ConicalTouchX(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
226 Make2ConicalTouchY(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
238 Make2ConicalInsideSmallRad(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
309 SkPoint pts[2] = { local
[all...]
H A Dpoints.cpp26 static void fill_pts(SkPoint pts[], size_t n, SkRandom* rand) { argument
33 pts[i].set(x, y);
53 SkPoint* pts = new SkPoint[n]; variable
54 fill_pts(pts, n, &rand);
56 canvas->drawPoints(SkCanvas::kPolygon_PointMode, n, pts, p0);
57 canvas->drawPoints(SkCanvas::kLines_PointMode, n, pts, p1);
58 canvas->drawPoints(SkCanvas::kPoints_PointMode, n, pts, p2);
59 canvas->drawPoints(SkCanvas::kPoints_PointMode, n, pts, p3);
61 delete[] pts;
H A Dshadertext.cpp22 SkPoint pts[] = { { 0, 0 }, { s, s } }; local
28 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, SK_ARRAY_COUNT(colors),
50 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { argument
51 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm);
54 static sk_sp<SkShader> MakeRadial(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { argument
56 center.set(SkScalarAve(pts[0].fX, pts[1].fX),
57 SkScalarAve(pts[0].fY, pts[1].fY));
62 static sk_sp<SkShader> MakeSweep(const SkPoint pts[ argument
69 Make2Conical(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) argument
111 SkPoint pts[2] = { variable
[all...]
/external/skia/bench/
H A DPathIterBench.cpp17 static int rand_pts(SkRandom& rand, SkPoint pts[4]) { argument
22 pts[i].fX = rand.nextSScalar1();
23 pts[i].fY = rand.nextSScalar1();
40 SkPoint pts[4]; local
41 int n = rand_pts(rand, pts);
44 fPath.moveTo(pts[0]);
47 fPath.lineTo(pts[1]);
50 fPath.quadTo(pts[1], pts[2]);
53 fPath.cubicTo(pts[
73 SkPoint pts[4]; variable
81 SkPoint pts[4]; variable
[all...]
/external/skia/src/effects/
H A DSkArcToPathEffect.cpp20 SkPoint pts[4]; local
26 switch (verb = iter.next(pts, false)) {
31 dst->moveTo(pts[0]);
35 dst->arcTo(pts[0], pts[1], fRadius);
37 lastCorner = pts[1];
40 dst->quadTo(pts[1], pts[2]);
41 lastCorner = pts[2];
44 dst->conicTo(pts[
[all...]
H A DSkCornerPathEffect.cpp40 SkPoint pts[4]; local
54 switch (verb = iter.next(pts, false)) {
62 moveTo = pts[0];
65 dst->moveTo(pts[0]);
70 bool drawSegment = ComputeStep(pts[0], pts[1], fRadius, &step);
76 dst->quadTo(pts[0].fX, pts[0].fY, pts[0].fX + step.fX,
77 pts[
[all...]
/external/skia/src/core/
H A DSkEdgeClipper.cpp51 const SkPoint pts[] = { p0, p1 }; local
52 int lineCount = SkLineClipper::ClipLine(pts, clip, lines, fCanCullToTheRight);
84 static bool chopMonoQuadAtY(SkPoint pts[3], SkScalar y, SkScalar* t) { argument
85 return chopMonoQuadAt(pts[0].fY, pts[1].fY, pts[2].fY, y, t);
88 static bool chopMonoQuadAtX(SkPoint pts[3], SkScalar x, SkScalar* t) { argument
89 return chopMonoQuadAt(pts[0].fX, pts[1].fX, pts[
93 chop_quad_in_Y(SkPoint pts[3], const SkRect& clip) argument
143 SkPoint pts[3]; local
278 chop_cubic_in_Y(SkPoint pts[4], const SkRect& clip) argument
333 SkPoint pts[4]; local
394 compute_cubic_bounds(const SkPoint pts[4]) argument
468 appendQuad(const SkPoint pts[3], bool reverse) argument
482 appendCubic(const SkPoint pts[4], bool reverse) argument
495 next(SkPoint pts[]) argument
542 sk_assert_monotonic_y(const SkPoint pts[], int count) argument
548 sk_assert_monotonic_x(const SkPoint pts[], int count) argument
[all...]
H A DSkEdgeClipper.h22 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[]);
45 void appendQuad(const SkPoint pts[3], bool reverse);
46 void appendCubic(const SkPoint pts[4], bool reverse);
50 void sk_assert_monotonic_x(const SkPoint pts[], int count);
51 void sk_assert_monotonic_y(const SkPoint pts[], int count);
53 #define sk_assert_monotonic_x(pts, count)
54 #define sk_assert_monotonic_y(pts, count)
H A DSkQuadClipper.h38 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[]);
57 void appendQuad(const SkPoint pts[3], bool reverse);
58 void appendCubic(const SkPoint pts[4], bool reverse);
62 void sk_assert_monotonic_x(const SkPoint pts[], int count);
63 void sk_assert_monotonic_y(const SkPoint pts[], int count);
65 #define sk_assert_monotonic_x(pts, count)
66 #define sk_assert_monotonic_y(pts, count)
H A DSkPathMeasurePriv.h26 void SkPathMeasure_segTo(const SkPoint pts[], unsigned segType,
/external/skia/experimental/svg/model/
H A DSkSVGPoly.cpp16 void SkSVGPoly::setPoints(const SkSVGPointsType& pts) { argument
18 fPath.addPoly(pts.value().begin(),
19 pts.value().count(),
26 if (const auto* pts = v.as<SkSVGPointsValue>()) {
27 this->setPoints(*pts);
/external/skia/tests/
H A DGeometryTest.cpp50 SkPoint pts[3]; local
52 pts[j].set(rand.nextSScalar1() * 100, rand.nextSScalar1() * 100);
58 SkEvalQuadAt(pts, t, &r0);
59 SkPoint r1 = SkEvalQuadAt(pts, t);
63 SkEvalQuadAt(pts, t, nullptr, &v0);
64 SkVector v1 = SkEvalQuadTangentAt(pts, t);
89 SkPoint pts[3]; local
91 pts[j].set(rand.nextSScalar1() * 100, rand.nextSScalar1() * 100);
95 SkConic conic(pts, w);
109 SkPoint pts[] local
129 SkPoint pts[] = { local
148 test_this_conic_to_quad(skiatest::Reporter* r, const SkPoint pts[3], SkScalar w) argument
173 const SkPoint* pts = &triples[i]; local
188 SkPoint pts[] = { local
209 SkPoint pts[3], dst[5]; local
[all...]
H A DSubsetPath.cpp66 SkPoint pts[4]; local
69 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) {
103 SkPoint pts[4]; local
107 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) {
109 result.moveTo(pts[0]);
117 result.lineTo(pts[1]);
122 result.quadTo(pts[1], pts[2]);
127 result.conicTo(pts[1], pts[
157 SkPoint pts[4]; local
190 SkPoint pts[4]; local
[all...]
/external/skia/src/utils/
H A DSkCurveMeasure.cpp17 static inline SkPoint evaluate(const SkPoint pts[4], SkSegType segType, argument
22 pos = SkEvalQuadAt(pts, t);
25 pos = SkPoint::Make(SkScalarInterp(pts[0].x(), pts[1].x(), t),
26 SkScalarInterp(pts[0].y(), pts[1].y(), t));
29 SkEvalCubicAt(pts, t, &pos, nullptr, nullptr);
32 SkConic conic(pts, pts[3].x());
44 static inline SkVector evaluateDerivative(const SkPoint pts[ argument
106 ArcLengthIntegrator(const SkPoint* pts, SkSegType segType) argument
172 SkCurveMeasure(const SkPoint* pts, SkSegType segType) argument
[all...]
/external/libcap/kdebug/
H A Dtest-init.sh8 mount -t devpts pts /dev/pts

Completed in 416 milliseconds

1234567891011>>