/external/chromium_org/third_party/skia/src/pathops/ |
SkLineParameters.h | 26 void cubicEndPoints(const SkDCubic& pts) { 27 cubicEndPoints(pts, 0, 1); 29 cubicEndPoints(pts, 0, 2); 31 cubicEndPoints(pts, 0, 3); 36 void cubicEndPoints(const SkDCubic& pts, int s, int e) { 37 a = pts[s].fY - pts[e].fY; 38 b = pts[e].fX - pts[s].fX; 39 c = pts[s].fX * pts[e].fY - pts[e].fX * pts[s].fY [all...] |
SkAddIntersections.cpp | 12 static void debugShowLineIntersection(int pts, const SkIntersectionHelper& wt, 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, const SkIntersectionHelper& wt 199 int pts = 0; local 398 int pts = ts.cubic(wt.pts()); local [all...] |
SkPathOpsCubic.h | 16 const SkDCubic& first() const { return (const SkDCubic&) pts[0]; } 17 const SkDCubic& second() const { return (const SkDCubic&) pts[3]; } 18 SkDPoint pts[7]; member in struct:SkDCubicPair 24 void set(const SkPoint pts[4]) { 25 fPts[0] = pts[0]; 26 fPts[1] = pts[1]; 27 fPts[2] = pts[2]; 28 fPts[3] = pts[3]; 70 static void SubDivide(const SkPoint pts[4], const SkDPoint& a, const SkDPoint& d, double t1, 73 cubic.set(pts); [all...] |
/external/skia/src/pathops/ |
SkLineParameters.h | 26 void cubicEndPoints(const SkDCubic& pts) { 27 cubicEndPoints(pts, 0, 1); 29 cubicEndPoints(pts, 0, 2); 31 cubicEndPoints(pts, 0, 3); 36 void cubicEndPoints(const SkDCubic& pts, int s, int e) { 37 a = pts[s].fY - pts[e].fY; 38 b = pts[e].fX - pts[s].fX; 39 c = pts[s].fX * pts[e].fY - pts[e].fX * pts[s].fY [all...] |
SkAddIntersections.cpp | 12 static void debugShowLineIntersection(int pts, const SkIntersectionHelper& wt, 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, const SkIntersectionHelper& wt 199 int pts = 0; local 398 int pts = ts.cubic(wt.pts()); local [all...] |
SkPathOpsCubic.h | 16 const SkDCubic& first() const { return (const SkDCubic&) pts[0]; } 17 const SkDCubic& second() const { return (const SkDCubic&) pts[3]; } 18 SkDPoint pts[7]; member in struct:SkDCubicPair 24 void set(const SkPoint pts[4]) { 25 fPts[0] = pts[0]; 26 fPts[1] = pts[1]; 27 fPts[2] = pts[2]; 28 fPts[3] = pts[3]; 70 static void SubDivide(const SkPoint pts[4], const SkDPoint& a, const SkDPoint& d, double t1, 73 cubic.set(pts); [all...] |
/external/chromium_org/third_party/skia/include/utils/ |
SkCubicInterval.h | 17 static inline SkScalar SkEvalCubicInterval(const SkPoint pts[2], SkScalar x) { 18 return SkEvalCubicInterval(pts[0].fX, pts[0].fY, 19 pts[1].fX, pts[1].fY, x);
|
/external/skia/include/utils/ |
SkCubicInterval.h | 17 static inline SkScalar SkEvalCubicInterval(const SkPoint pts[2], SkScalar x) { 18 return SkEvalCubicInterval(pts[0].fX, pts[0].fY, 19 pts[1].fX, pts[1].fY, x);
|
/external/chromium_org/third_party/skia/src/core/ |
SkEdgeClipper.h | 20 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)
|
SkEdgeClipper.cpp | 67 static bool chopMonoQuadAtY(SkPoint pts[3], SkScalar y, SkScalar* t) { 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) { 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[3], const SkRect& clip) 126 SkPoint pts[3]; local [all...] |
SkEdgeBuilder.h | 44 void addLine(const SkPoint pts[]); 45 void addQuad(const SkPoint pts[]); 46 void addCubic(const SkPoint pts[]);
|
SkQuadClipper.h | 39 bool clipQuad(const SkPoint pts[3], const SkRect& clip); 40 bool clipCubic(const SkPoint pts[4], const SkRect& clip); 42 SkPath::Verb next(SkPoint pts[]); 58 void appendQuad(const SkPoint pts[3], bool reverse); 59 void appendCubic(const SkPoint pts[4], bool reverse); 63 void sk_assert_monotonic_x(const SkPoint pts[], int count); 64 void sk_assert_monotonic_y(const SkPoint pts[], int count); 66 #define sk_assert_monotonic_x(pts, count) 67 #define sk_assert_monotonic_y(pts, count)
|
SkEdgeBuilder.cpp | 25 void SkEdgeBuilder::addLine(const SkPoint pts[]) { 27 if (edge->setLine(pts[0], pts[1], fShiftUp)) { 34 void SkEdgeBuilder::addQuad(const SkPoint pts[]) { 36 if (edge->setQuadratic(pts, fShiftUp)) { 43 void SkEdgeBuilder::addCubic(const SkPoint pts[]) { 45 if (edge->setCubic(pts, NULL, fShiftUp)) { 53 SkPoint pts[4]; local 56 while ((verb = clipper->next(pts)) != SkPath::kDone_Verb) { 59 this->addLine(pts); 85 SkPoint pts[4]; local 177 SkPoint pts[4]; local [all...] |
/external/skia/src/core/ |
SkEdgeClipper.h | 20 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)
|
SkEdgeClipper.cpp | 67 static bool chopMonoQuadAtY(SkPoint pts[3], SkScalar y, SkScalar* t) { 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) { 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[3], const SkRect& clip) 126 SkPoint pts[3]; local [all...] |
SkEdgeBuilder.h | 44 void addLine(const SkPoint pts[]); 45 void addQuad(const SkPoint pts[]); 46 void addCubic(const SkPoint pts[]);
|
SkQuadClipper.h | 39 bool clipQuad(const SkPoint pts[3], const SkRect& clip); 40 bool clipCubic(const SkPoint pts[4], const SkRect& clip); 42 SkPath::Verb next(SkPoint pts[]); 58 void appendQuad(const SkPoint pts[3], bool reverse); 59 void appendCubic(const SkPoint pts[4], bool reverse); 63 void sk_assert_monotonic_x(const SkPoint pts[], int count); 64 void sk_assert_monotonic_y(const SkPoint pts[], int count); 66 #define sk_assert_monotonic_x(pts, count) 67 #define sk_assert_monotonic_y(pts, count)
|
SkEdgeBuilder.cpp | 25 void SkEdgeBuilder::addLine(const SkPoint pts[]) { 27 if (edge->setLine(pts[0], pts[1], fShiftUp)) { 34 void SkEdgeBuilder::addQuad(const SkPoint pts[]) { 36 if (edge->setQuadratic(pts, fShiftUp)) { 43 void SkEdgeBuilder::addCubic(const SkPoint pts[]) { 45 if (edge->setCubic(pts, NULL, fShiftUp)) { 53 SkPoint pts[4]; local 56 while ((verb = clipper->next(pts)) != SkPath::kDone_Verb) { 59 this->addLine(pts); 85 SkPoint pts[4]; local 177 SkPoint pts[4]; local [all...] |
/external/chromium_org/third_party/skia/src/effects/ |
SkCornerPathEffect.cpp | 41 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[0].fY + step.fY) [all...] |
/external/skia/src/effects/ |
SkCornerPathEffect.cpp | 41 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[0].fY + step.fY) [all...] |
/external/skia/bench/ |
PathIterBench.cpp | 17 static int rand_pts(SkRandom& rand, SkPoint pts[4]) { 22 pts[i].fX = rand.nextSScalar1(); 23 pts[i].fY = rand.nextSScalar1(); 42 SkPoint pts[4]; local 43 int n = rand_pts(rand, pts); 46 fPath.moveTo(pts[0]); 49 fPath.lineTo(pts[1]); 52 fPath.quadTo(pts[1], pts[2]); 55 fPath.cubicTo(pts[1], pts[2], pts[3]) 73 SkPoint pts[4]; variable 81 SkPoint pts[4]; variable [all...] |
GradientBench.cpp | 44 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, 47 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos, 51 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, 55 center.set(SkScalarAve(pts[0].fX, pts[1].fX), 56 SkScalarAve(pts[0].fY, pts[1].fY)); 63 static SkShader* MakeSweep(const SkPoint pts[2], const GradData& data, 67 center.set(SkScalarAve(pts[0].fX, pts[1].fX) 185 const SkPoint pts[2] = { local 249 const SkPoint pts[] = { local [all...] |
/frameworks/base/core/java/android/gesture/ |
Instance.java | 73 float[] pts; local 76 pts = temporalSampler(orientationType, gesture); 77 instance = new Instance(gesture.getID(), pts, label); 80 pts = spatialSampler(gesture); 81 instance = new Instance(gesture.getID(), pts, label); 91 float[] pts = GestureUtils.temporalSampling(gesture.getStrokes().get(0), local 93 float[] center = GestureUtils.computeCentroid(pts); 94 float orientation = (float)Math.atan2(pts[1] - center[1], pts[0] - center[0]); 107 GestureUtils.translate(pts, -center[0], -center[1]) [all...] |
/external/skia/gm/ |
points.cpp | 26 static void fill_pts(SkPoint pts[], size_t n, SkRandom* rand) { 33 pts[i].set(x, y); 53 SkPoint* pts = new SkPoint[n]; local 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;
|
/external/skia/tests/ |
GeometryTest.cpp | 38 SkPoint pts[3], dst[5]; local 40 pts[0].set(0, 0); 41 pts[1].set(100, 50); 42 pts[2].set(0, 100); 44 int count = SkChopQuadAtMaxCurvature(pts, dst); 47 pts[0].set(0, 0); 48 pts[1].set(SkIntToScalar(3), 0); 49 pts[2].set(SkIntToScalar(3), SkIntToScalar(3)); 50 SkConvertQuadToCubic(pts, dst);
|