Lines Matching refs:polygonSize
43 int SkGetPolygonWinding(const SkPoint* polygonVerts, int polygonSize) { in SkGetPolygonWinding() argument
44 if (polygonSize < 3) { in SkGetPolygonWinding()
51 for (int curr = 2; curr < polygonSize; ++curr) { in SkGetPolygonWinding()
171 bool SkIsConvexPolygon(const SkPoint* polygonVerts, int polygonSize) { in SkIsConvexPolygon() argument
172 if (polygonSize < 3) { in SkIsConvexPolygon()
179 int prevIndex = polygonSize - 1; in SkIsConvexPolygon()
187 for (int i = 0; i < polygonSize; ++i) { in SkIsConvexPolygon()
213 nextIndex = (currIndex + 1) % polygonSize; in SkIsConvexPolygon()
1036 bool SkIsSimplePolygon(const SkPoint* polygon, int polygonSize) { in SkIsSimplePolygon() argument
1037 if (polygonSize < 3) { in SkIsSimplePolygon()
1042 if (polygonSize > std::numeric_limits<uint16_t>::max()) { in SkIsSimplePolygon()
1047 if (SkIsConvexPolygon(polygon, polygonSize)) { in SkIsSimplePolygon()
1051 SkTDPQueue <Vertex, Vertex::Left> vertexQueue(polygonSize); in SkIsSimplePolygon()
1052 for (int i = 0; i < polygonSize; ++i) { in SkIsSimplePolygon()
1059 newVertex.fPrevIndex = (i - 1 + polygonSize) % polygonSize; in SkIsSimplePolygon()
1060 newVertex.fNextIndex = (i + 1) % polygonSize; in SkIsSimplePolygon()
1073 ActiveEdgeList sweepLine(polygonSize); in SkIsSimplePolygon()
1554 bool SkTriangulateSimplePolygon(const SkPoint* polygonVerts, uint16_t* indexMap, int polygonSize, in SkTriangulateSimplePolygon() argument
1556 if (polygonSize < 3) { in SkTriangulateSimplePolygon()
1560 if (polygonSize >= std::numeric_limits<uint16_t>::max()) { in SkTriangulateSimplePolygon()
1566 if (!bounds.setBoundsCheck(polygonVerts, polygonSize)) { in SkTriangulateSimplePolygon()
1572 int winding = SkGetPolygonWinding(polygonVerts, polygonSize); in SkTriangulateSimplePolygon()
1578 SkAutoSTMalloc<64, TriangulationVertex> triangulationVertices(polygonSize); in SkTriangulateSimplePolygon()
1579 int prevIndex = polygonSize - 1; in SkTriangulateSimplePolygon()
1581 for (int currIndex = 0; currIndex < polygonSize; ++currIndex) { in SkTriangulateSimplePolygon()
1582 int nextIndex = (currIndex + 1) % polygonSize; in SkTriangulateSimplePolygon()
1604 if (!reflexHash.init(bounds, polygonSize)) { in SkTriangulateSimplePolygon()
1607 prevIndex = polygonSize - 1; in SkTriangulateSimplePolygon()
1608 for (int currIndex = 0; currIndex < polygonSize; prevIndex = currIndex, ++currIndex) { in SkTriangulateSimplePolygon()
1611 int nextIndex = (currIndex + 1) % polygonSize; in SkTriangulateSimplePolygon()
1635 triangleIndices->setReserve(triangleIndices->count() + 3 * (polygonSize - 2)); in SkTriangulateSimplePolygon()
1636 int vertexCount = polygonSize; in SkTriangulateSimplePolygon()