• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "Test.h"
2 #include "SkGeometry.h"
3 
TestGeometry(skiatest::Reporter * reporter)4 static void TestGeometry(skiatest::Reporter* reporter) {
5     SkPoint pts[3], dst[5];
6 
7     pts[0].set(0, 0);
8     pts[1].set(100, 50);
9     pts[2].set(0, 100);
10 
11     int count = SkChopQuadAtMaxCurvature(pts, dst);
12     REPORTER_ASSERT(reporter, count == 1 || count == 2);
13 }
14 
15 #include "TestClassDef.h"
16 DEFINE_TESTCLASS("Geometry", GeometryTestClass, TestGeometry)
17