Lines Matching refs:insetPoly

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()
51 REPORTER_ASSERT(reporter, insetPoly[3].equals(-95, -45)); in DEF_TEST()
56 result = SkInsetConvexPolygon(rrectPoly.begin(), rrectPoly.count(), 55, &insetPoly); in DEF_TEST()
58 REPORTER_ASSERT(reporter, !SkIsConvexPolygon(insetPoly.begin(), insetPoly.count())); in DEF_TEST()
59 REPORTER_ASSERT(reporter, insetPoly.count() == 2); in DEF_TEST()
60 if (insetPoly.count() == 2) { in DEF_TEST()
61 REPORTER_ASSERT(reporter, insetPoly[0].equals(-50, 0)); in DEF_TEST()
62 REPORTER_ASSERT(reporter, insetPoly[1].equals(50, 0)); in DEF_TEST()
66 result = SkInsetConvexPolygon(rrectPoly.begin(), rrectPoly.count(), 75, &insetPoly); in DEF_TEST()
68 REPORTER_ASSERT(reporter, insetPoly.count() == 1); in DEF_TEST()
103 &insetPoly); in DEF_TEST()
105 REPORTER_ASSERT(reporter, SkIsConvexPolygon(insetPoly.begin(), insetPoly.count())); in DEF_TEST()