| 17 | } |
| 18 | |
| 19 | Point2 pointFromSkiaPoint(const SkPoint p) { |
| 20 | return Point2((double) p.x(), (double) p.y()); |
| 21 | } |
| 22 | |
| 23 | void shapeToSkiaPath(SkPath &skPath, const Shape &shape) { |
| 24 | for (std::vector<Contour>::const_iterator contour = shape.contours.begin(); contour != shape.contours.end(); ++contour) { |