Home
last modified time | relevance | path

Searched refs:cusp (Results 1 – 8 of 8) sorted by relevance

/third_party/skia/tests/
DGrPathUtilsTest.cpp95 SkPoint cusp[4] = {{0,0}, {1,1}, {1,0}, {0,1}}; in DEF_TEST() local
96 REPORTER_ASSERT(r, GrPathUtils::findCubicConvex180Chops(cusp, T, &areCusps) == 1); in DEF_TEST()
105 cusp[1].fY = (float)(1 - dy); in DEF_TEST()
106 cusp[2].fY = (float)(0 + dy); in DEF_TEST()
107 REPORTER_ASSERT(r, SkFindCubicInflections(cusp, T) == 2); in DEF_TEST()
111 cusp[1].fY = (float)(1 - 1.1 * dy); in DEF_TEST()
112 cusp[2].fY = (float)(0 + 1.1 * dy); in DEF_TEST()
113 REPORTER_ASSERT(r, GrPathUtils::findCubicConvex180Chops(cusp, T, &areCusps) == 2); in DEF_TEST()
117 cusp[1].fY = (float)(1 - .9 * dy); in DEF_TEST()
118 cusp[2].fY = (float)(0 + .9 * dy); in DEF_TEST()
[all …]
DGeometryTest.cpp446 for (auto cusp : kCusps) { in test_cubic_cusps() local
447 REPORTER_ASSERT(reporter, SkFindCubicCusp(cusp.data()) > 0); in test_cubic_cusps()
593 for (const auto& cusp : kCusps) { in test_chop_at_midtangent() local
594 REPORTER_ASSERT(reporter, SkClassifyCubic(cusp.data()) == SkCubicType::kLocalCusp); in test_chop_at_midtangent()
595 test_chop_cubic_at_midtangent(reporter, cusp.data(), SkCubicType::kLocalCusp); in test_chop_at_midtangent()
/third_party/skia/src/gpu/tessellate/
DStrokeFixedCountTessellator.cpp314 SkPoint cusp = SkEvalQuadAt(p, SkFindQuadMidTangent(p)); in prepare() local
315 instanceWriter.writeCircle(cusp); in prepare()
317 instanceWriter.lineTo(p[0], cusp); in prepare()
318 instanceWriter.lineTo(cusp, p[2]); in prepare()
327 SkPoint cusp = conic.evalAt(conic.findMidTangent()); in prepare() local
328 instanceWriter.writeCircle(cusp); in prepare()
330 instanceWriter.lineTo(p[0], cusp); in prepare()
331 instanceWriter.lineTo(cusp, p[2]); in prepare()
DStrokeHardwareTessellator.cpp790 SkPoint cusp = SkEvalQuadAt(p, SkFindQuadMidTangent(p)); in prepare() local
791 patchWriter.writeLineTo(p[0], cusp); in prepare()
792 patchWriter.writeLineTo(JoinType::kBowtie, cusp, p[2]); in prepare()
826 SkPoint cusp = conic.evalAt(conic.findMidTangent()); in prepare() local
827 patchWriter.writeLineTo(p[0], cusp); in prepare()
828 patchWriter.writeLineTo(JoinType::kBowtie, cusp, p[2]); in prepare()
/third_party/skia/samplecode/
DSampleCusp.cpp33 static SkPath cusp(const SkPoint P[4], SkPoint PP[7], bool& split, int speed, SkScalar phase) { in cusp() function
145 path = cusp(pts, pp, split, 8000, .125); in onDrawContent()
/third_party/skia/src/core/
DSkStroke.cpp1326 SkScalar cusp = SkFindCubicCusp(cubic); in cubicTo() local
1327 if (cusp > 0) { in cubicTo()
1329 SkEvalCubicAt(cubic, cusp, &cuspLoc, nullptr, nullptr); in cubicTo()
/third_party/openGLES/extensions/NV/
DNV_path_rendering.txt5738 queried lies exactly at a discontinuity or cusp, the incoming point
7865 retain their topology (serpentine, cusp, or loop).
/third_party/skia/third_party/externals/opengl-registry/extensions/NV/
DNV_path_rendering.txt5738 queried lies exactly at a discontinuity or cusp, the incoming point
7865 retain their topology (serpentine, cusp, or loop).