Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Unified Diff: tests/PathOpsTestCommon.h

Issue 2426173002: fix fuzzers (Closed)
Patch Set: fix dm Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/PathOpsQuadReduceOrderTest.cpp ('k') | tests/PathOpsThreeWayTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PathOpsTestCommon.h
diff --git a/tests/PathOpsTestCommon.h b/tests/PathOpsTestCommon.h
index c5ebbd1027de87f0a1420d844efaa8814fb5f754..ba64d931adcedc1cc1a0b987628d9ab8dc5bf656 100644
--- a/tests/PathOpsTestCommon.h
+++ b/tests/PathOpsTestCommon.h
@@ -12,6 +12,21 @@
struct SkPathOpsBounds;
+struct QuadPts {
+ static const int kPointCount = 3;
+ SkDPoint fPts[kPointCount];
+};
+
+struct ConicPts {
+ QuadPts fPts;
+ SkScalar fWeight;
+};
+
+struct CubicPts {
+ static const int kPointCount = 4;
+ SkDPoint fPts[kPointCount];
+};
+
void CubicPathToQuads(const SkPath& cubicPath, SkPath* quadPath);
void CubicPathToSimple(const SkPath& cubicPath, SkPath* simplePath);
void CubicToQuads(const SkDCubic& cubic, double precision, SkTArray<SkDQuad, true>& quads);
« no previous file with comments | « tests/PathOpsQuadReduceOrderTest.cpp ('k') | tests/PathOpsThreeWayTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698