pathmeasure fuzzer
R=kjlubick@google.com, reed@google.com
Bug: skia:
Change-Id: I16a8b09312e5d1d1783bd6a4b791636ad8f63889
Reviewed-on: https://skia-review.googlesource.com/113165
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Cary Clark <caryclark@skia.org>
diff --git a/fuzz/FuzzCanvas.cpp b/fuzz/FuzzCanvas.cpp
index 42e31b6..783306b 100644
--- a/fuzz/FuzzCanvas.cpp
+++ b/fuzz/FuzzCanvas.cpp
@@ -447,7 +447,7 @@
}
case 3: {
SkPath path;
- fuzz_path(fuzz, &path, 20);
+ FuzzPath(fuzz, &path, 20);
SkScalar advance, phase;
fuzz->next(&advance, &phase);
SkPath1DPathEffect::Style style;
@@ -462,7 +462,7 @@
}
case 5: {
SkPath path;
- fuzz_path(fuzz, &path, 20);
+ FuzzPath(fuzz, &path, 20);
SkMatrix matrix;
fuzz->next(&matrix);
return SkPath2DPathEffect::Make(matrix, path);
@@ -1244,7 +1244,7 @@
}
case 21: {
SkPath path;
- fuzz_path(fuzz, &path, 30);
+ FuzzPath(fuzz, &path, 30);
int op;
bool doAntiAlias;
fuzz->next(&doAntiAlias);
@@ -1327,7 +1327,7 @@
}
case 32: {
SkPath path;
- fuzz_path(fuzz, &path, 60);
+ FuzzPath(fuzz, &path, 60);
canvas->drawPath(path, paint);
break;
}
@@ -1583,7 +1583,7 @@
fuzz_paint_text_encoding(fuzz, &paint);
SkTDArray<uint8_t> text = make_fuzz_text(fuzz, paint);
SkPath path;
- fuzz_path(fuzz, &path, 20);
+ FuzzPath(fuzz, &path, 20);
SkScalar hOffset, vOffset;
fuzz->next(&hOffset, &vOffset);
canvas->drawTextOnPathHV(text.begin(), SkToSizeT(text.count()), path, hOffset,
@@ -1601,7 +1601,7 @@
fuzz_paint_text_encoding(fuzz, &paint);
SkTDArray<uint8_t> text = make_fuzz_text(fuzz, paint);
SkPath path;
- fuzz_path(fuzz, &path, 20);
+ FuzzPath(fuzz, &path, 20);
canvas->drawTextOnPath(text.begin(), SkToSizeT(text.count()), path,
useMatrix ? &matrix : nullptr, paint);
break;