Home
last modified time | relevance | path

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

12

/third_party/skia/src/gpu/geometry/
DGrTriangulator.cpp85 verts << 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()
262 fLine, fTop->fPoint, fBottom->fPoint, in intersect()
263 other.fLine, other.fTop->fPoint, other.fBottom->fPoint, in intersect()
339 double ax = static_cast<double>(curr->fPoint.fX) - prev->fPoint.fX; in emitMonotonePoly()
340 double ay = static_cast<double>(curr->fPoint.fY) - prev->fPoint.fY; in emitMonotonePoly()
341 double bx = static_cast<double>(next->fPoint.fX) - curr->fPoint.fX; in emitMonotonePoly()
342 double by = static_cast<double>(next->fPoint.fY) - curr->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 …]
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()
DGrTriangulator.h268 : fPoint(point), fPrev(nullptr), fNext(nullptr) in Vertex()
279 SkPoint fPoint; // Vertex position member
332 Line(Vertex* p, Vertex* q) : Line(p->fPoint, q->fPoint) {} in Line()
424 return (p == fTop->fPoint || p == fBottom->fPoint) ? 0.0 : fLine.dist(p); in dist()
426 bool isRightOf(Vertex* v) const { return this->dist(v->fPoint) < 0.0; } in isRightOf()
427 bool isLeftOf(Vertex* v) const { return this->dist(v->fPoint) > 0.0; } in isLeftOf()
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
DGrAATriangulator.h32 : fEdge(edge), fPoint(point), fAlpha(alpha) {} in Event()
34 SkPoint fPoint; member
/third_party/flutter/skia/src/gpu/
DGrTessellator.cpp150 : fPoint(point), fPrev(nullptr), fNext(nullptr) in Vertex()
161 SkPoint fPoint; // Vertex position member
201 verts.write(v->fPoint); in emit_vertex()
211 LOG("emit_triangle %g (%g, %g) %d\n", v0->fID, v0->fPoint.fX, v0->fPoint.fY, v0->fAlpha); in emit_triangle()
212 LOG(" %g (%g, %g) %d\n", v1->fID, v1->fPoint.fX, v1->fPoint.fY, v1->fAlpha); in emit_triangle()
213 LOG(" %g (%g, %g) %d\n", v2->fID, v2->fPoint.fX, v2->fPoint.fY, v2->fAlpha); in emit_triangle()
280 Line(Vertex* p, Vertex* q) : Line(p->fPoint, q->fPoint) {} in Line()
387 return fLine.dist(v->fPoint) < 0.0; in isRightOf()
390 return fLine.dist(v->fPoint) > 0.0; in isLeftOf()
406 double dx = static_cast<double>(other.fTop->fPoint.fX) - fTop->fPoint.fX; in intersect()
[all …]
/third_party/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 …]
/third_party/flutter/skia/tests/
DGradientTest.cpp45 const SkPoint* fPoint; // 2 member
88 sk_sp<SkShader> s(SkGradientShader::MakeLinear(buildRec.fPoint, buildRec.fColors, buildRec.fPos, in linear_gradproc()
93 REPORTER_ASSERT(reporter, !memcmp(info.fPoint, checkRec.fPoint, 2 * sizeof(SkPoint))); in linear_gradproc()
98 sk_sp<SkShader> s(SkGradientShader::MakeRadial(buildRec.fPoint[0], buildRec.fRadius[0], in radial_gradproc()
104 REPORTER_ASSERT(reporter, info.fPoint[0] == checkRec.fPoint[0]); in radial_gradproc()
110 sk_sp<SkShader> s(SkGradientShader::MakeSweep(buildRec.fPoint[0].fX, buildRec.fPoint[0].fY, in sweep_gradproc()
116 REPORTER_ASSERT(reporter, info.fPoint[0] == checkRec.fPoint[0]); in sweep_gradproc()
121 sk_sp<SkShader> s(SkGradientShader::MakeTwoPointConical(buildRec.fPoint[0], in conical_gradproc()
123 buildRec.fPoint[1], in conical_gradproc()
132 REPORTER_ASSERT(reporter, !memcmp(info.fPoint, checkRec.fPoint, 2 * sizeof(SkPoint))); in conical_gradproc()
[all …]
/third_party/skia/src/gpu/tessellate/
DMiddleOutPolygonTriangulator.h50 SkPoint fPoint; member
102 return {fVertex[-1].fPoint, fVertex[0].fPoint, fLastPoint};
166 SkPoint startPt = fVertexStack[0].fPoint; in closeAndMove()
182 return this->closeAndMove(fVertexStack[0].fPoint); in close()
/third_party/flutter/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 …]
/third_party/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 …]
/third_party/skia/experimental/graphite/src/
DContextUtils.cpp208 uniforms = make_linear_gradient_uniform_data(gradInfo.fPoint[0], in ExtractCombo()
209 gradInfo.fPoint[1], in ExtractCombo()
220 uniforms = make_radial_gradient_uniform_data(gradInfo.fPoint[0], in ExtractCombo()
232 uniforms = make_sweep_gradient_uniform_data(gradInfo.fPoint[0], in ExtractCombo()
243 uniforms = make_conical_gradient_uniform_data(gradInfo.fPoint[0], in ExtractCombo()
244 gradInfo.fPoint[1], in ExtractCombo()
/third_party/flutter/skia/src/shaders/gradients/
DSkLinearGradient.cpp81 info->fPoint[0] = fStart; in asAGradient()
82 info->fPoint[1] = fEnd; in asAGradient()
DSkTwoPointConicalGradient.cpp121 info->fPoint[0] = fCenter1; in asAGradient()
122 info->fPoint[1] = fCenter2; in asAGradient()
DSkRadialGradient.cpp37 info->fPoint[0] = fCenter; in asAGradient()
DSkSweepGradient.cpp27 info->fPoint[0] = fCenter; in asAGradient()
/third_party/skia/src/shaders/gradients/
DSkLinearGradient.cpp87 info->fPoint[0] = fStart; in asAGradient()
88 info->fPoint[1] = fEnd; in asAGradient()
DSkTwoPointConicalGradient.cpp121 info->fPoint[0] = fCenter1; in asAGradient()
122 info->fPoint[1] = fCenter2; in asAGradient()
/third_party/flutter/skia/src/xps/
DSkXPSDevice.cpp841 startPoint = xps_point(info.fPoint[0]); in createXpsLinearGradient()
842 endPoint = xps_point(info.fPoint[1]); in createXpsLinearGradient()
845 info.fPoint[0], info.fPoint[1], in createXpsLinearGradient()
847 startPoint = xps_point(info.fPoint[0], localMatrix); in createXpsLinearGradient()
848 endPoint = xps_point(info.fPoint[1], localMatrix); in createXpsLinearGradient()
915 centerPoint = xps_point(info.fPoint[0]); in createXpsRadialGradient()
916 gradientOrigin = xps_point(info.fPoint[0]); in createXpsRadialGradient()
920 centerPoint = xps_point(info.fPoint[0], localMatrix); in createXpsRadialGradient()
921 gradientOrigin = xps_point(info.fPoint[0], localMatrix); in createXpsRadialGradient()
/third_party/skia/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()
/third_party/skia/include/core/
DSkShader.h105 SkPoint fPoint[2]; //!< Type specific, see above. member
/third_party/flutter/skia/include/core/
DSkShader.h106 SkPoint fPoint[2]; //!< Type specific, see above. member

12