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); |