Home
last modified time | relevance | path

Searched refs:offsetPoly (Results 1 – 4 of 4) sorted by relevance

/external/skqp/tests/
DOffsetSimplePolyTest.cpp40 SkTDArray<SkPoint> offsetPoly; in DEF_TEST() local
41 bool result = SkOffsetSimplePolygon(rrectPoly.begin(), rrectPoly.count(), 3, &offsetPoly); in DEF_TEST()
43 REPORTER_ASSERT(reporter, SkIsConvexPolygon(offsetPoly.begin(), offsetPoly.count())); in DEF_TEST()
46 result = SkOffsetSimplePolygon(rrectPoly.begin(), rrectPoly.count(), 10, &offsetPoly); in DEF_TEST()
48 REPORTER_ASSERT(reporter, SkIsConvexPolygon(offsetPoly.begin(), offsetPoly.count())); in DEF_TEST()
49 REPORTER_ASSERT(reporter, offsetPoly.count() == 4); in DEF_TEST()
50 if (offsetPoly.count() == 4) { in DEF_TEST()
51 REPORTER_ASSERT(reporter, offsetPoly[0].equals(-95, 45)); in DEF_TEST()
52 REPORTER_ASSERT(reporter, offsetPoly[1].equals(95, 45)); in DEF_TEST()
53 REPORTER_ASSERT(reporter, offsetPoly[2].equals(95, -45)); in DEF_TEST()
[all …]
/external/skia/tests/
DOffsetSimplePolyTest.cpp40 SkTDArray<SkPoint> offsetPoly; in DEF_TEST() local
41 bool result = SkOffsetSimplePolygon(rrectPoly.begin(), rrectPoly.count(), 3, &offsetPoly); in DEF_TEST()
43 REPORTER_ASSERT(reporter, SkIsConvexPolygon(offsetPoly.begin(), offsetPoly.count())); in DEF_TEST()
46 result = SkOffsetSimplePolygon(rrectPoly.begin(), rrectPoly.count(), 10, &offsetPoly); in DEF_TEST()
48 REPORTER_ASSERT(reporter, SkIsConvexPolygon(offsetPoly.begin(), offsetPoly.count())); in DEF_TEST()
49 REPORTER_ASSERT(reporter, offsetPoly.count() == 4); in DEF_TEST()
50 if (offsetPoly.count() == 4) { in DEF_TEST()
51 REPORTER_ASSERT(reporter, offsetPoly[0].equals(-95, 45)); in DEF_TEST()
52 REPORTER_ASSERT(reporter, offsetPoly[1].equals(95, 45)); in DEF_TEST()
53 REPORTER_ASSERT(reporter, offsetPoly[2].equals(95, -45)); in DEF_TEST()
[all …]
/external/skia/gm/
Dpolygonoffset.cpp555 SkTDArray<SkPoint> offsetPoly; in drawPolygon() local
563 result = SkInsetConvexPolygon(data.get(), numPts, offset, &offsetPoly); in drawPolygon()
565 result = SkOffsetSimplePolygon(data.get(), numPts, offset, &offsetPoly); in drawPolygon()
569 path.moveTo(offsetPoly[0]); in drawPolygon()
570 for (int i = 1; i < offsetPoly.count(); ++i) { in drawPolygon()
571 path.lineTo(offsetPoly[i]); in drawPolygon()
/external/skqp/gm/
Dpolygonoffset.cpp555 SkTDArray<SkPoint> offsetPoly; in drawPolygon() local
563 result = SkInsetConvexPolygon(data.get(), numPts, offset, &offsetPoly); in drawPolygon()
565 result = SkOffsetSimplePolygon(data.get(), numPts, offset, &offsetPoly); in drawPolygon()
569 path.moveTo(offsetPoly[0]); in drawPolygon()
570 for (int i = 1; i < offsetPoly.count(); ++i) { in drawPolygon()
571 path.lineTo(offsetPoly[i]); in drawPolygon()