Home
last modified time | relevance | path

Searched refs:fPoint (Results 1 – 25 of 31) sorted by relevance

12

/external/skia/src/gpu/
DGrTriangulator.cpp85 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 …]
DGrAATriangulator.cpp95 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 …]
DGrTriangulator.h265 : 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()
DGrAATriangulator.h32 : fEdge(edge), fPoint(point), fAlpha(alpha) {} in Event()
34 SkPoint fPoint; member
/external/skqp/src/gpu/
DGrTessellator.cpp150 : 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/
DGrMiddleOutPolygonTriangulator.h62 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/
DGradientTest.cpp46 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/
DGradientTest.cpp48 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/
DSkPDFGradientShader.h42 && u.fPoint[0] == v.fPoint[0]
43 && u.fPoint[1] == v.fPoint[1]
DSkPDFGradientShader.cpp24 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/
DSkPDFGradientShader.h42 && u.fPoint[0] == v.fPoint[0]
43 && u.fPoint[1] == v.fPoint[1]
DSkPDFGradientShader.cpp24 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/
DGrShape.cpp19 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()
DGrShape.h130 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/
DSkLinearGradient.cpp87 info->fPoint[0] = fStart; in asAGradient()
88 info->fPoint[1] = fEnd; in asAGradient()
DSkRadialGradient.cpp37 info->fPoint[0] = fCenter; in asAGradient()
DSkTwoPointConicalGradient.cpp121 info->fPoint[0] = fCenter1; in asAGradient()
122 info->fPoint[1] = fCenter2; in asAGradient()
/external/skqp/src/shaders/gradients/
DSkLinearGradient.cpp92 info->fPoint[0] = fStart; in asAGradient()
93 info->fPoint[1] = fEnd; in asAGradient()
DSkTwoPointConicalGradient.cpp121 info->fPoint[0] = fCenter1; in asAGradient()
122 info->fPoint[1] = fCenter2; in asAGradient()
DSkRadialGradient.cpp38 info->fPoint[0] = fCenter; in asAGradient()
DSkSweepGradient.cpp28 info->fPoint[0] = fCenter; in asAGradient()
/external/skia/include/core/
DSkShader.h104 SkPoint fPoint[2]; //!< Type specific, see above. member
/external/skia/src/xps/
DSkXPSDevice.cpp834 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/
DSkShader.h142 SkPoint fPoint[2]; //!< Type specific, see above. member
/external/skqp/src/xps/
DSkXPSDevice.cpp837 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()

12