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

1234567891011>>

/external/chromium_org/third_party/skia/samplecode/
H A DSampleHairCurves.cpp43 SkScalar pts[] = { local
49 curves.moveTo(pts[0], pts[1]);
50 curves.cubicTo(pts[2], pts[3],
51 pts[4], pts[5],
52 pts[6], pts[7]);
54 hulls.moveTo(pts[
65 SkScalar pts[] = { local
83 SkScalar pts[] = { local
104 SkScalar pts[] = { local
[all...]
H A DSampleGradients.cpp15 SkPoint pts[] = { { r.fLeft, r.fTop }, { r.fRight, r.fTop } }; local
16 return SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp_TileMode);
66 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { argument
67 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos, data.fCount, tm);
70 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { argument
72 center.set(SkScalarAve(pts[0].fX, pts[1].fX),
73 SkScalarAve(pts[0].fY, pts[1].fY));
78 static SkShader* MakeSweep(const SkPoint pts[ argument
85 Make2Radial(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) argument
97 Make2RadialConcentric(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) argument
133 SkPoint pts[2] = { local
[all...]
/external/skia/samplecode/
H A DSampleHairCurves.cpp43 SkScalar pts[] = { local
49 curves.moveTo(pts[0], pts[1]);
50 curves.cubicTo(pts[2], pts[3],
51 pts[4], pts[5],
52 pts[6], pts[7]);
54 hulls.moveTo(pts[
65 SkScalar pts[] = { local
83 SkScalar pts[] = { local
104 SkScalar pts[] = { local
[all...]
H A DSampleGradients.cpp15 SkPoint pts[] = { { r.fLeft, r.fTop }, { r.fRight, r.fTop } }; local
16 return SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp_TileMode);
66 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { argument
67 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos, data.fCount, tm);
70 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { argument
72 center.set(SkScalarAve(pts[0].fX, pts[1].fX),
73 SkScalarAve(pts[0].fY, pts[1].fY));
78 static SkShader* MakeSweep(const SkPoint pts[ argument
85 Make2Radial(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) argument
97 Make2RadialConcentric(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) argument
133 SkPoint pts[2] = { local
[all...]
/external/chromium_org/third_party/skia/experimental/Intersection/
H A DLineParameters.h24 void cubicEndPoints(const Cubic& pts) { argument
25 cubicEndPoints(pts, 0, 3);
28 void cubicEndPoints(const Cubic& pts, int s, int e) { argument
29 a = approximately_pin(pts[s].y - pts[e].y);
30 b = approximately_pin(pts[e].x - pts[s].x);
31 c = pts[s].x * pts[e].y - pts[
34 lineEndPoints(const _Line& pts) argument
40 quadEndPoints(const Quadratic& pts) argument
44 quadEndPoints(const Quadratic& pts, int s, int e) argument
67 cubicDistanceY(const Cubic& pts, Cubic& distance) const argument
75 quadDistanceY(const Quadratic& pts, Quadratic& distance) const argument
83 controlPtDistance(const Cubic& pts, int index) const argument
[all...]
H A DMiniSimplify_Test.cpp9 SkPoint pts[4]; member in struct:curve
43 path.moveTo(test->pts[0].fX, test->pts[0].fY);
46 path.lineTo(test->pts[0].fX, test->pts[0].fY);
53 path.lineTo(test->pts[1].fX, test->pts[1].fY);
56 path.quadTo(test->pts[1].fX, test->pts[1].fY, test->pts[
[all...]
/external/skia/experimental/Intersection/
H A DLineParameters.h24 void cubicEndPoints(const Cubic& pts) { argument
25 cubicEndPoints(pts, 0, 3);
28 void cubicEndPoints(const Cubic& pts, int s, int e) { argument
29 a = approximately_pin(pts[s].y - pts[e].y);
30 b = approximately_pin(pts[e].x - pts[s].x);
31 c = pts[s].x * pts[e].y - pts[
34 lineEndPoints(const _Line& pts) argument
40 quadEndPoints(const Quadratic& pts) argument
44 quadEndPoints(const Quadratic& pts, int s, int e) argument
67 cubicDistanceY(const Cubic& pts, Cubic& distance) const argument
75 quadDistanceY(const Quadratic& pts, Quadratic& distance) const argument
83 controlPtDistance(const Cubic& pts, int index) const argument
[all...]
H A DMiniSimplify_Test.cpp9 SkPoint pts[4]; member in struct:curve
43 path.moveTo(test->pts[0].fX, test->pts[0].fY);
46 path.lineTo(test->pts[0].fX, test->pts[0].fY);
53 path.lineTo(test->pts[1].fX, test->pts[1].fY);
56 path.quadTo(test->pts[1].fX, test->pts[1].fY, test->pts[
[all...]
/external/chromium_org/third_party/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 DSkAddIntersections.cpp12 static void debugShowLineIntersection(int pts, const SkIntersectionHelper& wt, argument
14 SkASSERT(i.used() == pts);
15 if (!pts) {
17 __FUNCTION__, LINE_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts()));
21 i[0][0], LINE_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0));
22 if (pts == 2) {
25 SkDebugf(" wnTs[0]=%g " LINE_DEBUG_STR, i[1][0], LINE_DEBUG_DATA(wn.pts()));
26 if (pts == 2) {
32 static void debugShowQuadLineIntersection(int pts, cons argument
53 debugShowQuadIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
73 debugShowCubicLineIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
93 debugShowCubicQuadIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
113 debugShowCubicIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
133 debugShowCubicIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersections& i) argument
200 int pts = 0; local
419 int pts = ts.cubic(wt.pts()); local
[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 DSkAddIntersections.cpp12 static void debugShowLineIntersection(int pts, const SkIntersectionHelper& wt, argument
14 SkASSERT(i.used() == pts);
15 if (!pts) {
17 __FUNCTION__, LINE_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts()));
21 i[0][0], LINE_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0));
22 if (pts == 2) {
25 SkDebugf(" wnTs[0]=%g " LINE_DEBUG_STR, i[1][0], LINE_DEBUG_DATA(wn.pts()));
26 if (pts == 2) {
32 static void debugShowQuadLineIntersection(int pts, cons argument
53 debugShowQuadIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
73 debugShowCubicLineIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
93 debugShowCubicQuadIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
113 debugShowCubicIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
133 debugShowCubicIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersections& i) argument
200 int pts = 0; local
419 int pts = ts.cubic(wt.pts()); local
[all...]
/external/chromium_org/third_party/skia/include/utils/
H A DSkCubicInterval.h17 static inline SkScalar SkEvalCubicInterval(const SkPoint pts[2], SkScalar x) { argument
18 return SkEvalCubicInterval(pts[0].fX, pts[0].fY,
19 pts[1].fX, pts[1].fY, x);
/external/skia/include/utils/
H A DSkCubicInterval.h17 static inline SkScalar SkEvalCubicInterval(const SkPoint pts[2], SkScalar x) { argument
18 return SkEvalCubicInterval(pts[0].fX, pts[0].fY,
19 pts[1].fX, pts[1].fY, x);
/external/chromium_org/third_party/skia/gm/
H A Dgradients_2pt_conical.cpp40 static SkShader* Make2ConicalOutside(const SkPoint pts[2], const GradData& data, argument
43 SkScalar radius0 = SkScalarDiv(pts[1].fX - pts[0].fX, 10);
44 SkScalar radius1 = SkScalarDiv(pts[1].fX - pts[0].fX, 3);
45 center0.set(pts[0].fX + radius0, pts[0].fY + radius0);
46 center1.set(pts[1].fX - radius1, pts[1].fY - radius1);
53 static SkShader* Make2ConicalOutsideFlip(const SkPoint pts[ argument
66 Make2ConicalInside(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
79 Make2ConicalInsideFlip(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
92 Make2ConicalInsideCenter(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
105 Make2ConicalZeroRad(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
118 Make2ConicalZeroRadFlip(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
131 Make2ConicalZeroRadCenter(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
144 Make2ConicalZeroRadOutside(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
157 Make2ConicalZeroRadFlipOutside(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
170 Make2ConicalEdgeX(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
184 Make2ConicalEdgeY(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
198 Make2ConicalZeroRadEdgeX(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
212 Make2ConicalZeroRadEdgeY(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
226 Make2ConicalTouchX(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
240 Make2ConicalTouchY(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
254 Make2ConicalInsideSmallRad(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
323 SkPoint pts[2] = { local
[all...]
/external/skia/gm/
H A Dgradients_2pt_conical.cpp40 static SkShader* Make2ConicalOutside(const SkPoint pts[2], const GradData& data, argument
43 SkScalar radius0 = SkScalarDiv(pts[1].fX - pts[0].fX, 10);
44 SkScalar radius1 = SkScalarDiv(pts[1].fX - pts[0].fX, 3);
45 center0.set(pts[0].fX + radius0, pts[0].fY + radius0);
46 center1.set(pts[1].fX - radius1, pts[1].fY - radius1);
53 static SkShader* Make2ConicalOutsideFlip(const SkPoint pts[ argument
66 Make2ConicalInside(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
79 Make2ConicalInsideFlip(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
92 Make2ConicalInsideCenter(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
105 Make2ConicalZeroRad(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
118 Make2ConicalZeroRadFlip(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
131 Make2ConicalZeroRadCenter(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
144 Make2ConicalZeroRadOutside(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
157 Make2ConicalZeroRadFlipOutside(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
170 Make2ConicalEdgeX(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
184 Make2ConicalEdgeY(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
198 Make2ConicalZeroRadEdgeX(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
212 Make2ConicalZeroRadEdgeY(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
226 Make2ConicalTouchX(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
240 Make2ConicalTouchY(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
254 Make2ConicalInsideSmallRad(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
330 SkPoint pts[2] = { local
[all...]
/external/chromium_org/third_party/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...]
H A DGradientBench.cpp49 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, argument
51 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos, data.fCount, tm);
54 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, argument
57 center.set(SkScalarAve(pts[0].fX, pts[1].fX),
58 SkScalarAve(pts[0].fY, pts[1].fY));
65 static SkShader* MakeSweep(const SkPoint pts[2], const GradData& data, argument
68 center.set(SkScalarAve(pts[0].fX, pts[
75 Make2Radial(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, float scale) argument
89 MakeConical(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, float scale) argument
102 MakeConicalZeroRad(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, float scale) argument
115 MakeConicalOutside(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, float scale) argument
129 MakeConicalOutsideZeroRad(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, float scale) argument
213 const SkPoint pts[2] = { local
364 const SkPoint pts[] = { local
[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...]
H A DGradientBench.cpp49 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, argument
51 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos, data.fCount, tm);
54 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, argument
57 center.set(SkScalarAve(pts[0].fX, pts[1].fX),
58 SkScalarAve(pts[0].fY, pts[1].fY));
65 static SkShader* MakeSweep(const SkPoint pts[2], const GradData& data, argument
68 center.set(SkScalarAve(pts[0].fX, pts[
75 Make2Radial(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, float scale) argument
89 MakeConical(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, float scale) argument
102 MakeConicalZeroRad(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, float scale) argument
115 MakeConicalOutside(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, float scale) argument
129 MakeConicalOutsideZeroRad(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, float scale) argument
214 const SkPoint pts[2] = { local
365 const SkPoint pts[] = { local
[all...]
/external/chromium_org/third_party/skia/src/core/
H A DSkEdgeClipper.h20 bool clipQuad(const SkPoint pts[3], const SkRect& clip);
21 bool clipCubic(const SkPoint pts[4], const SkRect& clip);
23 SkPath::Verb next(SkPoint pts[]);
39 void appendQuad(const SkPoint pts[3], bool reverse);
40 void appendCubic(const SkPoint pts[4], bool reverse);
44 void sk_assert_monotonic_x(const SkPoint pts[], int count);
45 void sk_assert_monotonic_y(const SkPoint pts[], int count);
47 #define sk_assert_monotonic_x(pts, count)
48 #define sk_assert_monotonic_y(pts, count)
H A DSkEdgeClipper.cpp67 static bool chopMonoQuadAtY(SkPoint pts[3], SkScalar y, SkScalar* t) { argument
68 return chopMonoQuadAt(pts[0].fY, pts[1].fY, pts[2].fY, y, t);
71 static bool chopMonoQuadAtX(SkPoint pts[3], SkScalar x, SkScalar* t) { argument
72 return chopMonoQuadAt(pts[0].fX, pts[1].fX, pts[2].fX, x, t);
75 // Modify pts[] in place so that it is clipped in Y to the clip rect
76 static void chop_quad_in_Y(SkPoint pts[ argument
126 SkPoint pts[3]; local
[all...]
/external/skia/src/core/
H A DSkEdgeClipper.h20 bool clipQuad(const SkPoint pts[3], const SkRect& clip);
21 bool clipCubic(const SkPoint pts[4], const SkRect& clip);
23 SkPath::Verb next(SkPoint pts[]);
39 void appendQuad(const SkPoint pts[3], bool reverse);
40 void appendCubic(const SkPoint pts[4], bool reverse);
44 void sk_assert_monotonic_x(const SkPoint pts[], int count);
45 void sk_assert_monotonic_y(const SkPoint pts[], int count);
47 #define sk_assert_monotonic_x(pts, count)
48 #define sk_assert_monotonic_y(pts, count)
H A DSkEdgeClipper.cpp67 static bool chopMonoQuadAtY(SkPoint pts[3], SkScalar y, SkScalar* t) { argument
68 return chopMonoQuadAt(pts[0].fY, pts[1].fY, pts[2].fY, y, t);
71 static bool chopMonoQuadAtX(SkPoint pts[3], SkScalar x, SkScalar* t) { argument
72 return chopMonoQuadAt(pts[0].fX, pts[1].fX, pts[2].fX, x, t);
75 // Modify pts[] in place so that it is clipped in Y to the clip rect
76 static void chop_quad_in_Y(SkPoint pts[ argument
126 SkPoint pts[3]; local
[all...]
/external/skia/src/effects/
H A DSkCornerPathEffect.cpp42 SkPoint pts[4]; local
55 switch (verb = iter.next(pts, false)) {
63 moveTo = pts[0];
66 dst->moveTo(pts[0]);
71 bool drawSegment = ComputeStep(pts[0], pts[1], fRadius, &step);
77 dst->quadTo(pts[0].fX, pts[0].fY, pts[0].fX + step.fX,
78 pts[
[all...]

Completed in 416 milliseconds

1234567891011>>