/external/skia/src/gpu/ |
D | GrTriangulator.cpp | 85 verts.write(v->fPoint); in emit_vertex() 95 TESS_LOG("emit_triangle %g (%g, %g) %d\n", v0->fID, v0->fPoint.fX, v0->fPoint.fY, v0->fAlpha); in emit_triangle() 96 TESS_LOG(" %g (%g, %g) %d\n", v1->fID, v1->fPoint.fX, v1->fPoint.fY, v1->fAlpha); in emit_triangle() 97 TESS_LOG(" %g (%g, %g) %d\n", v2->fID, v2->fPoint.fX, v2->fPoint.fY, v2->fAlpha); in emit_triangle() 162 double dx = static_cast<double>(other.fTop->fPoint.fX) - fTop->fPoint.fX; in intersect() 163 double dy = static_cast<double>(other.fTop->fPoint.fY) - fTop->fPoint.fY; in intersect() 174 p->fX = double_to_clamped_scalar(fTop->fPoint.fX - s * fLine.fB); in intersect() 175 p->fY = double_to_clamped_scalar(fTop->fPoint.fY + s * fLine.fA); in intersect() 247 double ax = static_cast<double>(curr->fPoint.fX) - prev->fPoint.fX; in emitMonotonePoly() 248 double ay = static_cast<double>(curr->fPoint.fY) - prev->fPoint.fY; in emitMonotonePoly() [all …]
|
D | GrAATriangulator.cpp | 95 line.fC = -(dest->fPoint.fX * line.fA + dest->fPoint.fY * line.fB); in makeEvent() 99 if (line.intersect(bisector.fLine, &p) && !c.sweep_lt(p, top->fPoint) && in makeEvent() 100 c.sweep_lt(p, bottom->fPoint)) { in makeEvent() 191 double distPrev = e->dist(prev->fPoint); in simplifyBoundary() 192 double distNext = prevEdge->dist(next->fPoint); in simplifyBoundary() 207 if (prev->fPoint != next->fPoint) { in simplifyBoundary() 257 Vertex* dest = triangulator->makeSortedVertex(fPoint, fAlpha, mesh, prev, c); in apply() 262 fPoint.fX, fPoint.fY, fAlpha); in apply() 402 int winding = c.sweep_lt(prev->fPoint, next->fPoint) ? 1 : -1; in inversion() 439 TESS_LOG("stroking vertex %g (%g, %g)\n", v->fID, v->fPoint.fX, v->fPoint.fY); in strokeBoundary() [all …]
|
D | GrTriangulator.h | 265 : fPoint(point), fPrev(nullptr), fNext(nullptr) in Vertex() 276 SkPoint fPoint; // Vertex position member 329 Line(Vertex* p, Vertex* q) : Line(p->fPoint, q->fPoint) {} in Line() 417 bool isRightOf(Vertex* v) const { return fLine.dist(v->fPoint) < 0.0; } in isRightOf() 418 bool isLeftOf(Vertex* v) const { return fLine.dist(v->fPoint) > 0.0; } in isLeftOf()
|
D | GrAATriangulator.h | 32 : fEdge(edge), fPoint(point), fAlpha(alpha) {} in Event() 34 SkPoint fPoint; member
|
/external/skqp/src/gpu/ |
D | GrTessellator.cpp | 150 : fPoint(point), fPrev(nullptr), fNext(nullptr) in Vertex() 160 SkPoint fPoint; // Vertex position member 199 verts.write(v->fPoint); in emit_vertex() 209 LOG("emit_triangle %g (%g, %g) %d\n", v0->fID, v0->fPoint.fX, v0->fPoint.fY, v0->fAlpha); in emit_triangle() 210 LOG(" %g (%g, %g) %d\n", v1->fID, v1->fPoint.fX, v1->fPoint.fY, v1->fAlpha); in emit_triangle() 211 LOG(" %g (%g, %g) %d\n", v2->fID, v2->fPoint.fX, v2->fPoint.fY, v2->fAlpha); in emit_triangle() 278 Line(Vertex* p, Vertex* q) : Line(p->fPoint, q->fPoint) {} in Line() 390 return fLine.dist(v->fPoint) < 0.0; in isRightOf() 393 return fLine.dist(v->fPoint) > 0.0; in isLeftOf() 409 double dx = static_cast<double>(other.fTop->fPoint.fX) - fTop->fPoint.fX; in intersect() [all …]
|
/external/skia/src/gpu/tessellate/ |
D | GrMiddleOutPolygonTriangulator.h | 62 if (pt == fVertexStack[0].fPoint) { in pushVertex() 97 const SkPoint& p0 = fVertexStack[0].fPoint; in close() 98 SkASSERT(fTop->fPoint != p0); // We should have detected and handled this case earlier. in close() 116 fTop->fPoint = startPt; // Modify the starting point. in closeAndMove() 152 SkPoint fPoint; member 160 fTop->fPoint = point; in pushVertex() 166 fVertexData[0] = fTop[0].fPoint; in popTopTriangle() 167 fVertexData[1] = fTop[1].fPoint; in popTopTriangle()
|
/external/skqp/tests/ |
D | GradientTest.cpp | 46 const SkPoint* fPoint; // 2 member 89 sk_sp<SkShader> s(SkGradientShader::MakeLinear(buildRec.fPoint, buildRec.fColors, buildRec.fPos, in linear_gradproc() 94 REPORTER_ASSERT(reporter, !memcmp(info.fPoint, checkRec.fPoint, 2 * sizeof(SkPoint))); in linear_gradproc() 99 sk_sp<SkShader> s(SkGradientShader::MakeRadial(buildRec.fPoint[0], buildRec.fRadius[0], in radial_gradproc() 105 REPORTER_ASSERT(reporter, info.fPoint[0] == checkRec.fPoint[0]); in radial_gradproc() 111 sk_sp<SkShader> s(SkGradientShader::MakeSweep(buildRec.fPoint[0].fX, buildRec.fPoint[0].fY, in sweep_gradproc() 117 REPORTER_ASSERT(reporter, info.fPoint[0] == checkRec.fPoint[0]); in sweep_gradproc() 122 sk_sp<SkShader> s(SkGradientShader::MakeTwoPointConical(buildRec.fPoint[0], in conical_gradproc() 124 buildRec.fPoint[1], in conical_gradproc() 133 REPORTER_ASSERT(reporter, !memcmp(info.fPoint, checkRec.fPoint, 2 * sizeof(SkPoint))); in conical_gradproc() [all …]
|
/external/skia/tests/ |
D | GradientTest.cpp | 48 const SkPoint* fPoint; // 2 member 91 sk_sp<SkShader> s(SkGradientShader::MakeLinear(buildRec.fPoint, buildRec.fColors, buildRec.fPos, in linear_gradproc() 96 REPORTER_ASSERT(reporter, !memcmp(info.fPoint, checkRec.fPoint, 2 * sizeof(SkPoint))); in linear_gradproc() 101 sk_sp<SkShader> s(SkGradientShader::MakeRadial(buildRec.fPoint[0], buildRec.fRadius[0], in radial_gradproc() 107 REPORTER_ASSERT(reporter, info.fPoint[0] == checkRec.fPoint[0]); in radial_gradproc() 113 sk_sp<SkShader> s(SkGradientShader::MakeSweep(buildRec.fPoint[0].fX, buildRec.fPoint[0].fY, in sweep_gradproc() 119 REPORTER_ASSERT(reporter, info.fPoint[0] == checkRec.fPoint[0]); in sweep_gradproc() 124 sk_sp<SkShader> s(SkGradientShader::MakeTwoPointConical(buildRec.fPoint[0], in conical_gradproc() 126 buildRec.fPoint[1], in conical_gradproc() 135 REPORTER_ASSERT(reporter, !memcmp(info.fPoint, checkRec.fPoint, 2 * sizeof(SkPoint))); in conical_gradproc() [all …]
|
/external/skqp/src/pdf/ |
D | SkPDFGradientShader.h | 42 && u.fPoint[0] == v.fPoint[0] 43 && u.fPoint[1] == v.fPoint[1]
|
D | SkPDFGradientShader.cpp | 24 SkOpts::hash(v.fPoint, 2 * sizeof(SkPoint)), in hash() 406 SkScalar dx = info.fPoint[1].fX - info.fPoint[0].fX; in twoPointConicalCode() 407 SkScalar dy = info.fPoint[1].fY - info.fPoint[0].fY; in twoPointConicalCode() 621 SkPoint pt1 = info.fPoint[0]; in make_function_shader() 622 SkPoint pt2 = info.fPoint[1]; in make_function_shader() 632 const SkPoint& pt1 = info.fPoint[0]; in make_function_shader() 640 const SkPoint& pt1 = info.fPoint[0]; in make_function_shader() 641 const SkPoint& pt2 = info.fPoint[1]; in make_function_shader() 652 transformPoints[0] = info.fPoint[0]; in make_function_shader() 653 transformPoints[1] = info.fPoint[1]; in make_function_shader() [all …]
|
/external/skia/src/pdf/ |
D | SkPDFGradientShader.h | 42 && u.fPoint[0] == v.fPoint[0] 43 && u.fPoint[1] == v.fPoint[1]
|
D | SkPDFGradientShader.cpp | 24 SkOpts::hash(v.fPoint, 2 * sizeof(SkPoint)), in hash() 405 SkScalar dx = info.fPoint[1].fX - info.fPoint[0].fX; in twoPointConicalCode() 406 SkScalar dy = info.fPoint[1].fY - info.fPoint[0].fY; in twoPointConicalCode() 620 SkPoint pt1 = info.fPoint[0]; in make_function_shader() 621 SkPoint pt2 = info.fPoint[1]; in make_function_shader() 631 const SkPoint& pt1 = info.fPoint[0]; in make_function_shader() 639 const SkPoint& pt1 = info.fPoint[0]; in make_function_shader() 640 const SkPoint& pt2 = info.fPoint[1]; in make_function_shader() 651 transformPoints[0] = info.fPoint[0]; in make_function_shader() 652 transformPoints[1] = info.fPoint[1]; in make_function_shader() [all …]
|
/external/skia/src/gpu/geometry/ |
D | GrShape.cpp | 19 this->setPoint(shape.fPoint); in operator =() 232 fPoint = point; in simplifyPoint() 235 SkASSERT(point == fPoint); in simplifyPoint() 252 this->simplifyPoint(fPoint, flags); in simplify() 370 return {fPoint.fX, fPoint.fY, fPoint.fX, fPoint.fY}; in bounds() 436 out->moveTo(fPoint); in asPath() 437 out->lineTo(fPoint); in asPath()
|
D | GrShape.h | 130 SkPoint& point() { SkASSERT(this->isPoint()); return fPoint; } in point() 131 const SkPoint& point() const { SkASSERT(this->isPoint()); return fPoint; } in point() 156 fPoint = point; in setPoint() 267 SkPoint fPoint; member
|
/external/skia/src/shaders/gradients/ |
D | SkLinearGradient.cpp | 87 info->fPoint[0] = fStart; in asAGradient() 88 info->fPoint[1] = fEnd; in asAGradient()
|
D | SkRadialGradient.cpp | 37 info->fPoint[0] = fCenter; in asAGradient()
|
D | SkTwoPointConicalGradient.cpp | 121 info->fPoint[0] = fCenter1; in asAGradient() 122 info->fPoint[1] = fCenter2; in asAGradient()
|
/external/skqp/src/shaders/gradients/ |
D | SkLinearGradient.cpp | 92 info->fPoint[0] = fStart; in asAGradient() 93 info->fPoint[1] = fEnd; in asAGradient()
|
D | SkTwoPointConicalGradient.cpp | 121 info->fPoint[0] = fCenter1; in asAGradient() 122 info->fPoint[1] = fCenter2; in asAGradient()
|
D | SkRadialGradient.cpp | 38 info->fPoint[0] = fCenter; in asAGradient()
|
D | SkSweepGradient.cpp | 28 info->fPoint[0] = fCenter; in asAGradient()
|
/external/skia/include/core/ |
D | SkShader.h | 104 SkPoint fPoint[2]; //!< Type specific, see above. member
|
/external/skia/src/xps/ |
D | SkXPSDevice.cpp | 834 startPoint = xps_point(info.fPoint[0]); in createXpsLinearGradient() 835 endPoint = xps_point(info.fPoint[1]); in createXpsLinearGradient() 838 info.fPoint[0], info.fPoint[1], in createXpsLinearGradient() 840 startPoint = xps_point(info.fPoint[0], localMatrix); in createXpsLinearGradient() 841 endPoint = xps_point(info.fPoint[1], localMatrix); in createXpsLinearGradient() 908 centerPoint = xps_point(info.fPoint[0]); in createXpsRadialGradient() 909 gradientOrigin = xps_point(info.fPoint[0]); in createXpsRadialGradient() 913 centerPoint = xps_point(info.fPoint[0], localMatrix); in createXpsRadialGradient() 914 gradientOrigin = xps_point(info.fPoint[0], localMatrix); in createXpsRadialGradient()
|
/external/skqp/include/core/ |
D | SkShader.h | 142 SkPoint fPoint[2]; //!< Type specific, see above. member
|
/external/skqp/src/xps/ |
D | SkXPSDevice.cpp | 837 startPoint = xps_point(info.fPoint[0]); in createXpsLinearGradient() 838 endPoint = xps_point(info.fPoint[1]); in createXpsLinearGradient() 841 info.fPoint[0], info.fPoint[1], in createXpsLinearGradient() 843 startPoint = xps_point(info.fPoint[0], localMatrix); in createXpsLinearGradient() 844 endPoint = xps_point(info.fPoint[1], localMatrix); in createXpsLinearGradient() 911 centerPoint = xps_point(info.fPoint[0]); in createXpsRadialGradient() 912 gradientOrigin = xps_point(info.fPoint[0]); in createXpsRadialGradient() 916 centerPoint = xps_point(info.fPoint[0], localMatrix); in createXpsRadialGradient() 917 gradientOrigin = xps_point(info.fPoint[0], localMatrix); in createXpsRadialGradient()
|