88 SkPoint clipped[4], shouldbe[4];
91 const float tol = 1e-4f;
94 clipRect.setLTRB(-2, -2, 6, 14);
96 success = clipper.
clipCubic(crv, clipped);
99 0, 0, 2, 3, 1, 10, 4, 12, shouldbe), tol));
102 clipRect.setLTRB(-2, 0, 6, 14);
104 success = clipper.
clipCubic(crv, clipped);
107 0, 0, 2, 3, 1, 10, 4, 12, shouldbe), tol));
110 clipRect.setLTRB(-2, -2, 6, 12);
112 success = clipper.
clipCubic(crv, clipped);
115 0, 0, 2, 3, 1, 10, 4, 12, shouldbe), tol));
118 clipRect.setLTRB(-2, 14, 6, 20);
120 success = clipper.
clipCubic(crv, clipped);
124 clipRect.setLTRB(-2, 1, 6, 14);
126 success = clipper.
clipCubic(crv, clipped);
130 1.841195941f, 4.337081432f,
131 1.297019958f, 10.19801331f,
136 clipRect.setLTRB(-2, 2, 6, 14);
138 success = clipper.
clipCubic(crv, clipped);
142 1.767683744f, 5.400758266f,
143 1.55052948f, 10.36701965f,
148 clipRect.setLTRB(-2, -2, 6, 11);
150 success = clipper.
clipCubic(crv, clipped);
154 1.742904663f, 2.614356995f,
155 1.207521796f, 8.266430855f,
160 clipRect.setLTRB(-2, -2, 6, 10);
162 success = clipper.
clipCubic(crv, clipped);
166 1.551193237f, 2.326789856f,
167 1.297736168f, 7.059780121f,
218 path.moveTo(-30/64.0, -31/64.0);
219 path.cubicTo(-31/64.0, -31/64,-31/64.0, -31/64,-31/64.0, 100);
220 path.lineTo(100, 100);
225 path.moveTo(-30/64.0f, -31/64.0f + 1/256.0f);
226 path.cubicTo(-31/64.0f + 1/256.0f, -31/64.0f + 1/256.0f,
227 -31/64.0f + 1/256.0f, -31/64.0f + 1/256.0f,
228 -31/64.0f + 1/256.0f, 100);
229 path.lineTo(100, 100);
static SkPoint * SetCurve(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3, SkPoint crv[4])
static SkPath Polygon(const SkPoint pts[], int count, bool isClosed, SkPathFillType=SkPathFillType::kWinding, bool isVolatile=false)