/external/skia/src/gpu/ops/ |
H A D | GrAAConvexPathRenderer.cpp | 43 // line uses one pt, quad uses 2 pts 237 static inline void add_quad_segment(const SkPoint pts[3], argument 239 if (SkPointPriv::DistanceToSqd(pts[0], pts[1]) < kCloseSqd || 240 SkPointPriv::DistanceToSqd(pts[1], pts[2]) < kCloseSqd) { 241 if (pts[0] != pts[2]) { 242 add_line_to_segment(pts[2], segments); 247 segments->back().fPts[0] = pts[ 252 add_cubic_segments(const SkPoint pts[4], SkPathPriv::FirstDirection dir, SegmentArray* segments) argument 285 SkPoint pts[4]; local [all...] |
/external/skqp/src/gpu/ops/ |
H A D | GrAAConvexPathRenderer.cpp | 43 // line uses one pt, quad uses 2 pts 237 static inline void add_quad_segment(const SkPoint pts[3], argument 239 if (SkPointPriv::DistanceToSqd(pts[0], pts[1]) < kCloseSqd || 240 SkPointPriv::DistanceToSqd(pts[1], pts[2]) < kCloseSqd) { 241 if (pts[0] != pts[2]) { 242 add_line_to_segment(pts[2], segments); 247 segments->back().fPts[0] = pts[ 252 add_cubic_segments(const SkPoint pts[4], SkPathPriv::FirstDirection dir, SegmentArray* segments) argument 285 SkPoint pts[4]; local [all...] |
/external/skia/src/pathops/ |
H A D | SkOpSegment.h | 44 SkOpSegment* addConic(SkPoint pts[3], SkScalar weight, SkOpContour* parent) { argument 45 init(pts, weight, parent, SkPath::kConic_Verb); 47 curve.fConic.set(pts, weight); 48 curve.setConicBounds(pts, weight, 0, 1, &fBounds); 52 SkOpSegment* addCubic(SkPoint pts[4], SkOpContour* parent) { argument 53 init(pts, 1, parent, SkPath::kCubic_Verb); 55 curve.fCubic.set(pts); 56 curve.setCubicBounds(pts, 1, 0, 1, &fBounds); 71 SkOpSegment* addLine(SkPoint pts[2], SkOpContour* parent) { argument 72 SkASSERT(pts[ 87 addQuad(SkPoint pts[3], SkOpContour* parent) argument 316 const SkPoint* pts() const { function in class:SkOpSegment [all...] |
/external/skqp/src/pathops/ |
H A D | SkOpSegment.h | 44 SkOpSegment* addConic(SkPoint pts[3], SkScalar weight, SkOpContour* parent) { argument 45 init(pts, weight, parent, SkPath::kConic_Verb); 47 curve.fConic.set(pts, weight); 48 curve.setConicBounds(pts, weight, 0, 1, &fBounds); 52 SkOpSegment* addCubic(SkPoint pts[4], SkOpContour* parent) { argument 53 init(pts, 1, parent, SkPath::kCubic_Verb); 55 curve.fCubic.set(pts); 56 curve.setCubicBounds(pts, 1, 0, 1, &fBounds); 71 SkOpSegment* addLine(SkPoint pts[2], SkOpContour* parent) { argument 72 SkASSERT(pts[ 87 addQuad(SkPoint pts[3], SkOpContour* parent) argument 316 const SkPoint* pts() const { function in class:SkOpSegment [all...] |
/external/eigen/unsupported/Eigen/src/Splines/ |
H A D | SplineFitting.h | 183 * \param[in] pts The data points to which a spline should be fit. 189 void ChordLengths(const PointArrayType& pts, KnotVectorType& chord_lengths) argument 193 const DenseIndex n = pts.cols(); 196 chord_lengths.resize(pts.cols()); 198 chord_lengths.rightCols(n-1) = (pts.array().leftCols(n-1) - pts.array().rightCols(n-1)).matrix().colwise().norm(); 221 * \param pts The points for which an interpolating spline will be computed. 227 static SplineType Interpolate(const PointArrayType& pts, DenseIndex degree); 232 * \param pts The points for which an interpolating spline will be computed. 239 static SplineType Interpolate(const PointArrayType& pts, DenseInde 290 Interpolate(const PointArrayType& pts, DenseIndex degree, const KnotVectorType& knot_parameters) argument 322 Interpolate(const PointArrayType& pts, DenseIndex degree) argument [all...] |
/external/skia/src/utils/ |
H A D | SkParsePath.cpp | 236 SkPoint pts[4]; local 239 switch (iter.next(pts, false)) { 243 const SkPoint* quadPts = quadder.computeQuads(pts, iter.conicWeight(), tol); 249 append_scalars(&stream, 'M', &pts[0].fX, 2); 252 append_scalars(&stream, 'L', &pts[1].fX, 2); 255 append_scalars(&stream, 'Q', &pts[1].fX, 4); 258 append_scalars(&stream, 'C', &pts[1].fX, 6);
|
/external/skqp/src/utils/ |
H A D | SkParsePath.cpp | 236 SkPoint pts[4]; local 239 switch (iter.next(pts, false)) { 243 const SkPoint* quadPts = quadder.computeQuads(pts, iter.conicWeight(), tol); 249 append_scalars(&stream, 'M', &pts[0].fX, 2); 252 append_scalars(&stream, 'L', &pts[1].fX, 2); 255 append_scalars(&stream, 'Q', &pts[1].fX, 4); 258 append_scalars(&stream, 'C', &pts[1].fX, 6);
|
/external/skia/tests/ |
H A D | PathTest.cpp | 417 const SkPoint pts[] = { local 425 path.moveTo(pts[0]); 426 path.cubicTo(pts[1], pts[2], pts[3]); 745 const SkPoint pts[] = { local 753 path.moveTo(pts[0]); 754 path.cubicTo(pts[1], pts[2], pts[ 895 SkPoint pts[] = { local 972 SkPoint pts[4]; local 1013 SkPoint pts[32]; local 1182 stroke_cubic(const SkPoint pts[4]) argument 1222 SkPoint pts[4]; local 1664 SkPoint pts[2]; local 2534 static const SkPoint pts[] = { local 2585 static const SkPoint pts[] = { local 2790 SkPoint pts[4]; local 2970 SkPoint pts[4]; local 3684 SkPoint pts[4]; local 3693 SkPoint pts[4]; local 3702 SkPoint pts[4]; local 3712 SkPoint pts[4]; local 4059 SkPoint pts[] = {{5, 4}, {6, 5}, {7, 6}, {6, 6}, {4, 6}, {5, 7}, {5, 5}, {5, 4}, {6, 5}, {7, 6}}; local 4561 SkPoint pts[4]; local 4797 SkPoint pts[4]; local [all...] |
H A D | PathOpsTestCommon.h | 38 bool ValidPoints(const SkPoint* pts, int count);
|
H A D | VerticesTest.cpp | 93 static void fill_triangle(SkCanvas* canvas, const SkPoint pts[], SkColor c) { argument 95 auto verts = SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, 3, pts, nullptr, colors); 105 SkPoint pts[] = { { -10, 1 }, { -10, 2 }, { 1e9f, 1.5f } }; local 106 fill_triangle(surf->getCanvas(), pts, SK_ColorBLACK);
|
/external/skqp/tests/ |
H A D | PathTest.cpp | 417 const SkPoint pts[] = { local 425 path.moveTo(pts[0]); 426 path.cubicTo(pts[1], pts[2], pts[3]); 745 const SkPoint pts[] = { local 753 path.moveTo(pts[0]); 754 path.cubicTo(pts[1], pts[2], pts[ 895 SkPoint pts[] = { local 972 SkPoint pts[4]; local 1013 SkPoint pts[32]; local 1182 stroke_cubic(const SkPoint pts[4]) argument 1222 SkPoint pts[4]; local 1664 SkPoint pts[2]; local 2626 static const SkPoint pts[] = { local 2679 static const SkPoint pts[] = { local 2884 SkPoint pts[4]; local 3064 SkPoint pts[4]; local 3778 SkPoint pts[4]; local 3787 SkPoint pts[4]; local 3796 SkPoint pts[4]; local 3806 SkPoint pts[4]; local 4153 SkPoint pts[] = {{5, 4}, {6, 5}, {7, 6}, {6, 6}, {4, 6}, {5, 7}, {5, 5}, {5, 4}, {6, 5}, {7, 6}}; local 4655 SkPoint pts[4]; local 4914 SkPoint pts[4]; local [all...] |
/external/skia/src/core/ |
H A D | SkStroke.cpp | 395 SkPoint pts[4]; local 396 while ((verb = copy.next(pts))) { 401 if (pts[0] == pts[1]) { 407 if (pts[0] == pts[1] && pts[0] == pts[2]) { 412 if (pts[0] == pts[ [all...] |
H A D | SkPathRef.cpp | 230 // Given the verb array, deduce the required number of pts and conics, 322 // Check that the verbs are valid, and imply the correct number of pts and conics 690 SkPoint pts[4]; 691 uint8_t verb = iter.next(pts); 693 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { 695 SkVector v1_0 = pts[1] - pts[0]; 696 SkVector v2_1 = pts[2] - pts[1]; 709 pts[ [all...] |
H A D | SkEdge.h | 71 bool setQuadraticWithoutUpdate(const SkPoint pts[3], int shiftUp); 72 int setQuadratic(const SkPoint pts[3], int shiftUp); 83 bool setCubicWithoutUpdate(const SkPoint pts[4], int shiftUp, bool sortY = true); 84 int setCubic(const SkPoint pts[4], int shiftUp);
|
/external/skqp/src/core/ |
H A D | SkStroke.cpp | 394 SkPoint pts[4]; local 395 while ((verb = copy.next(pts))) { 400 if (pts[0] == pts[1]) { 406 if (pts[0] == pts[1] && pts[0] == pts[2]) { 411 if (pts[0] == pts[ [all...] |
H A D | SkPathRef.cpp | 230 // Given the verb array, deduce the required number of pts and conics, 323 // Check that the verbs are valid, and imply the correct number of pts and conics 672 SkPoint pts[4]; 673 uint8_t verb = iter.next(pts); 675 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { 677 SkVector v1_0 = pts[1] - pts[0]; 678 SkVector v2_1 = pts[2] - pts[1]; 691 pts[ [all...] |
H A D | SkEdge.h | 71 bool setQuadraticWithoutUpdate(const SkPoint pts[3], int shiftUp); 72 int setQuadratic(const SkPoint pts[3], int shiftUp); 83 bool setCubicWithoutUpdate(const SkPoint pts[4], int shiftUp, bool sortY = true); 84 int setCubic(const SkPoint pts[4], int shiftUp);
|
/external/skqp/src/gpu/ccpr/ |
H A D | GrCCPathParser.cpp | 40 const SkPoint* pts = SkPathPriv::PointData(path); local 66 Sk4f devPt = SkNx_fma(Y, Sk4f(pts[0].y()), T); 67 devPt = SkNx_fma(X, Sk4f(pts[0].x()), devPt); 77 devPt = SkNx_fma(Y, Sk4f(pts[i].y()), T); 78 devPt = SkNx_fma(X, Sk4f(pts[i].x()), devPt); 208 static TriangleInstance* emit_recursive_fan(const SkTArray<SkPoint, true>& pts, argument 218 out++->set(pts[indices[firstIndex]], pts[indices[firstIndex + oneThirdCount]], 219 pts[indices[firstIndex + twoThirdsCount]], atlasOffset); 221 out = emit_recursive_fan(pts, indice 290 const SkTArray<SkPoint, true>& pts = fGeometry.points(); local [all...] |
H A D | GrCCTriangleShader.h | 33 void emitSetupCode(GrGLSLVertexGeoBuilder*, const char* pts, const char* repetitionID,
|
/external/skia/experimental/skottie/ |
H A D | SkottieParser.cpp | 96 bool ParsePointVec(const Json::Value& jv, std::vector<SkPoint>* pts) { argument 100 pts->clear(); 101 pts->reserve(jv.size()); 107 pts->push_back(SkPoint::Make(vec[0], vec[1]));
|
/external/skia/src/gpu/ccpr/ |
H A D | GrCCTriangleShader.cpp | 35 void GrCCTriangleCornerShader::emitSetupCode(GrGLSLVertexGeoBuilder* s, const char* pts, argument 38 s->codeAppendf("float2 corner = %s[%s];", pts, repetitionID); 43 pts, repetitionID, repetitionID, pts, repetitionID,
|
H A D | GrCCTriangleShader.h | 33 void emitSetupCode(GrGLSLVertexGeoBuilder*, const char* pts, const char* repetitionID,
|
/external/skia/src/shaders/gradients/ |
H A D | SkLinearGradient.h | 15 SkLinearGradient(const SkPoint pts[2], const Descriptor&);
|
/external/skqp/experimental/skottie/ |
H A D | SkottieParser.cpp | 96 bool ParsePointVec(const Json::Value& jv, std::vector<SkPoint>* pts) { argument 100 pts->clear(); 101 pts->reserve(jv.size()); 107 pts->push_back(SkPoint::Make(vec[0], vec[1]));
|
/external/skqp/src/shaders/gradients/ |
H A D | SkLinearGradient.h | 15 SkLinearGradient(const SkPoint pts[2], const Descriptor&);
|