Lines Matching refs:path
158 static void setRgnToPath(SkRegion* rgn, const SkPath& path) {
160 path.getBounds().round(&ir);
161 rgn->setPath(path, SkRegion(ir));
175 SkPath path;
176 path.addCircle(0, 0, SkIntToScalar(30));
177 setRgnToPath(&rgn, path);
180 path.reset();
181 path.moveTo(0, 0);
182 path.lineTo(SkIntToScalar(100), 0);
183 path.lineTo(SkIntToScalar(100 - 20), SkIntToScalar(20));
184 path.lineTo(SkIntToScalar(20), SkIntToScalar(20));
185 setRgnToPath(&rgn, path);
190 static void imoveTo(SkPath& path, int x, int y) {
191 path.moveTo(SkIntToScalar(x), SkIntToScalar(y));
194 static void icubicTo(SkPath& path, int x0, int y0, int x1, int y1, int x2, int y2) {
195 path.cubicTo(SkIntToScalar(x0), SkIntToScalar(y0),
201 SkPath path;
206 path.addOval(SkRect::MakeWH(sheight, sheight));
207 REPORTER_ASSERT(reporter, sheight == path.getBounds().height());
208 clip.setPath(path, path.getBounds().roundOut(), true);
213 // the bounds of the path's control-points.
218 path.reset();
219 imoveTo(path, 0, 20);
220 icubicTo(path, 40, 40, 40, 0, 0, 20);
221 REPORTER_ASSERT(reporter, sheight == path.getBounds().height());
222 clip.setPath(path, path.getBounds().roundOut(), true);
318 SkPath path;
319 path.addRect(SkRect::MakeXYWH(0, 0,
321 path.addRect(SkRect::MakeXYWH(0, SkIntToScalar(4),
326 clip.setPath(path, path.getBounds().roundOut(), 1 == i);
340 SkPath path;
341 path.addRRect(rrect);
344 clip.setPath(path, path.getBounds().roundOut(), true);
411 // Building aaclip meant aa-scan-convert a path into a huge clip.
420 SkPath path;
421 path.addCircle(50, 50, 50);
422 rc.op(path, SkMatrix::I(), SkClipOp::kIntersect, true);