32546db149
git-svn-id: http://skia.googlecode.com/svn/trunk@5376 2bbb7eff-a529-9590-31e7-b0007b416f81
64 lines
1.6 KiB
C++
64 lines
1.6 KiB
C++
/*
|
|
* Copyright 2012 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
#include "CubicIntersection_TestData.h"
|
|
#include "Intersection_Tests.h"
|
|
#include "SkTypes.h"
|
|
|
|
void cubecode_test(int test);
|
|
|
|
#define TEST_QUADS_FIRST 0
|
|
|
|
void Intersection_Tests() {
|
|
int testsRun = 0;
|
|
// QuadraticIntersection_Test();
|
|
SimplifyNew_Test();
|
|
Simplify4x4QuadraticsThreaded_Test(testsRun);
|
|
QuadLineIntersectThreaded_Test(testsRun);
|
|
LineQuadraticIntersection_Test();
|
|
Simplify4x4RectsThreaded_Test(testsRun);
|
|
SimplifyNondegenerate4x4TrianglesThreaded_Test(testsRun);
|
|
SimplifyDegenerate4x4TrianglesThreaded_Test(testsRun);
|
|
Simplify4x4QuadralateralsThreaded_Test(testsRun);
|
|
SkDebugf("%s total testsRun=%d\n", __FUNCTION__, testsRun);
|
|
SimplifyAngle_Test();
|
|
QuadraticBezierClip_Test();
|
|
SimplifyFindNext_Test();
|
|
SimplifyFindTop_Test();
|
|
QuadraticReduceOrder_Test();
|
|
QuadraticIntersection_Test();
|
|
SimplifyAddIntersectingTs_Test();
|
|
|
|
cubecode_test(1);
|
|
convert_testx();
|
|
// tests are in dependency / complexity order
|
|
Inline_Tests();
|
|
ConvexHull_Test();
|
|
ConvexHull_X_Test();
|
|
|
|
LineParameter_Test();
|
|
LineIntersection_Test();
|
|
LineCubicIntersection_Test();
|
|
|
|
SimplifyQuadraticPaths_Test();
|
|
|
|
SimplifyPolygonPaths_Test();
|
|
SimplifyRectangularPaths_Test();
|
|
SimplifyQuadralateralPaths_Test();
|
|
|
|
ActiveEdge_Test();
|
|
|
|
QuadraticCoincidence_Test();
|
|
QuadraticIntersection_Test();
|
|
|
|
CubicParameterization_Test();
|
|
CubicCoincidence_Test();
|
|
CubicReduceOrder_Test();
|
|
CubicBezierClip_Test();
|
|
CubicIntersection_Test();
|
|
|
|
}
|