Searched refs:insetPoly (Results 1 – 2 of 2) sorted by relevance
/external/skqp/tests/ |
D | InsetConvexPolyTest.cpp | 37 SkTDArray<SkPoint> insetPoly; in DEF_TEST() local 38 bool result = SkInsetConvexPolygon(rrectPoly.begin(), rrectPoly.count(), 3, &insetPoly); in DEF_TEST() 40 REPORTER_ASSERT(reporter, SkIsConvexPolygon(insetPoly.begin(), insetPoly.count())); in DEF_TEST() 43 result = SkInsetConvexPolygon(rrectPoly.begin(), rrectPoly.count(), 10, &insetPoly); in DEF_TEST() 45 REPORTER_ASSERT(reporter, SkIsConvexPolygon(insetPoly.begin(), insetPoly.count())); in DEF_TEST() 46 REPORTER_ASSERT(reporter, insetPoly.count() == 4); in DEF_TEST() 47 if (insetPoly.count() == 4) { in DEF_TEST() 48 REPORTER_ASSERT(reporter, insetPoly[0].equals(-95, 45)); in DEF_TEST() 49 REPORTER_ASSERT(reporter, insetPoly[1].equals(95, 45)); in DEF_TEST() 50 REPORTER_ASSERT(reporter, insetPoly[2].equals(95, -45)); in DEF_TEST() [all …]
|
/external/skia/tests/ |
D | InsetConvexPolyTest.cpp | 37 SkTDArray<SkPoint> insetPoly; in DEF_TEST() local 38 bool result = SkInsetConvexPolygon(rrectPoly.begin(), rrectPoly.count(), 3, &insetPoly); in DEF_TEST() 40 REPORTER_ASSERT(reporter, SkIsConvexPolygon(insetPoly.begin(), insetPoly.count())); in DEF_TEST() 43 result = SkInsetConvexPolygon(rrectPoly.begin(), rrectPoly.count(), 10, &insetPoly); in DEF_TEST() 45 REPORTER_ASSERT(reporter, SkIsConvexPolygon(insetPoly.begin(), insetPoly.count())); in DEF_TEST() 46 REPORTER_ASSERT(reporter, insetPoly.count() == 4); in DEF_TEST() 47 if (insetPoly.count() == 4) { in DEF_TEST() 48 REPORTER_ASSERT(reporter, insetPoly[0].equals(-95, 45)); in DEF_TEST() 49 REPORTER_ASSERT(reporter, insetPoly[1].equals(95, 45)); in DEF_TEST() 50 REPORTER_ASSERT(reporter, insetPoly[2].equals(95, -45)); in DEF_TEST() [all …]
|