blob: 67885b39ded5cf30c2dff586fed608a5318f1769 [file] [log] [blame]
caryclark@google.com27accef2012-01-25 18:57:23 +00001#include "CubicIntersection_TestData.h"
2#include "Intersection_Tests.h"
caryclark@google.com24bec792012-08-20 12:43:57 +00003#include "SkTypes.h"
caryclark@google.com27accef2012-01-25 18:57:23 +00004
5void cubecode_test(int test);
6
caryclark@google.comfa0588f2012-04-26 21:01:06 +00007#define TEST_QUADS_FIRST 0
caryclark@google.com78e17132012-04-17 11:40:34 +00008
caryclark@google.com27accef2012-01-25 18:57:23 +00009void Intersection_Tests() {
caryclark@google.com24bec792012-08-20 12:43:57 +000010 int testsRun = 0;
11 QuadLineIntersectThreaded_Test(testsRun);
caryclark@google.com1577e8f2012-05-22 17:01:14 +000012 SimplifyNew_Test();
caryclark@google.com24bec792012-08-20 12:43:57 +000013 Simplify4x4QuadraticsThreaded_Test(testsRun);
14 Simplify4x4RectsThreaded_Test(testsRun);
15 SimplifyNondegenerate4x4TrianglesThreaded_Test(testsRun);
16 SimplifyDegenerate4x4TrianglesThreaded_Test(testsRun);
17 Simplify4x4QuadralateralsThreaded_Test(testsRun);
18 SkDebugf("%s total testsRun=%d\n", __FUNCTION__, testsRun);
caryclark@google.com1577e8f2012-05-22 17:01:14 +000019 SimplifyFindNext_Test();
caryclark@google.comb45a1b42012-05-18 20:50:33 +000020 SimplifyFindTop_Test();
21 SimplifyAngle_Test();
22 QuadraticReduceOrder_Test();
23 QuadraticBezierClip_Test();
24 QuadraticIntersection_Test();
caryclark@google.comfa0588f2012-04-26 21:01:06 +000025 SimplifyAddIntersectingTs_Test();
caryclark@google.comb45a1b42012-05-18 20:50:33 +000026
caryclark@google.com27accef2012-01-25 18:57:23 +000027 cubecode_test(1);
28 convert_testx();
29 // tests are in dependency / complexity order
30 Inline_Tests();
31 ConvexHull_Test();
32 ConvexHull_X_Test();
33
34 LineParameter_Test();
35 LineIntersection_Test();
36 LineQuadraticIntersection_Test();
37 LineCubicIntersection_Test();
38
caryclark@google.coma5764232012-03-28 16:20:21 +000039 SimplifyQuadraticPaths_Test();
40
caryclark@google.com4917f172012-03-05 22:01:21 +000041 SimplifyPolygonPaths_Test();
caryclark@google.com2e7f4c82012-03-20 21:11:59 +000042 SimplifyRectangularPaths_Test();
caryclark@google.com4917f172012-03-05 22:01:21 +000043 SimplifyQuadralateralPaths_Test();
caryclark@google.com78e17132012-04-17 11:40:34 +000044
caryclark@google.com78e17132012-04-17 11:40:34 +000045 ActiveEdge_Test();
caryclark@google.comd88e0892012-03-27 13:23:51 +000046
caryclark@google.com27accef2012-01-25 18:57:23 +000047 QuadraticCoincidence_Test();
caryclark@google.com27accef2012-01-25 18:57:23 +000048 QuadraticIntersection_Test();
49
50 CubicParameterization_Test();
51 CubicCoincidence_Test();
52 CubicReduceOrder_Test();
53 CubicBezierClip_Test();
54 CubicIntersection_Test();
caryclark@google.comc6825902012-02-03 22:07:47 +000055
caryclark@google.com27accef2012-01-25 18:57:23 +000056}