Lines Matching refs:one
172 static void scaleMatrix(const SkPath& one, const SkPath& two, SkMatrix& scale) {
173 SkRect larger = one.getBounds();
231 static int pathsDrawTheSame(const SkPath& one, const SkPath& two, SkBitmap& bits, SkPath& scaledOne,
234 scaleMatrix(one, two, scale);
235 one.transform(scale, &scaledOne);
240 bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths) {
244 const SkRect& bounds1 = one.getBounds();
265 canvas.drawPath(one, paint);
288 static void showSimplifiedPath(const SkPath& one, const SkPath& two,
290 showPath(one, "original:");
295 int comparePaths(const SkPath& one, const SkPath& two, SkBitmap& bitmap) {
298 int errors = pathsDrawTheSame(one, two, bitmap, scaledOne, scaledTwo, errors2x2);
304 showSimplifiedPath(one, two, scaledOne, scaledTwo);
308 showSimplifiedPath(one, two, scaledOne, scaledTwo);
314 static void showShapeOpPath(const SkPath& one, const SkPath& two, const SkPath& a, const SkPath& b,
327 static int comparePaths(const SkPath& one, const SkPath& scaledOne, const SkPath& two,
338 showShapeOpPath(one, two, a, b, scaledOne, scaledTwo, shapeOp, scale);
342 showShapeOpPath(one, two, a, b, scaledOne, scaledTwo, shapeOp, scale);
349 void comparePathsTiny(const SkPath& one, const SkPath& two) {
350 const SkRect& bounds1 = one.getBounds();
364 canvas.drawPath(one, paint);