Lines Matching refs:inputPolygonSize
309 bool SkInsetConvexPolygon(const SkPoint* inputPolygonVerts, int inputPolygonSize, in SkInsetConvexPolygon() argument
311 if (inputPolygonSize < 3) { in SkInsetConvexPolygon()
317 if (inputPolygonSize > std::numeric_limits<uint16_t>::max()) { in SkInsetConvexPolygon()
322 int winding = SkGetPolygonWinding(inputPolygonVerts, inputPolygonSize); in SkInsetConvexPolygon()
328 SkAutoSTMalloc<64, OffsetEdge> edgeData(inputPolygonSize); in SkInsetConvexPolygon()
329 int prev = inputPolygonSize - 1; in SkInsetConvexPolygon()
330 for (int curr = 0; curr < inputPolygonSize; prev = curr, ++curr) { in SkInsetConvexPolygon()
331 int next = (curr + 1) % inputPolygonSize; in SkInsetConvexPolygon()
353 int insetVertexCount = inputPolygonSize; in SkInsetConvexPolygon()
355 unsigned int maxIterations = inputPolygonSize * inputPolygonSize; in SkInsetConvexPolygon()
1135 bool SkOffsetSimplePolygon(const SkPoint* inputPolygonVerts, int inputPolygonSize, SkScalar offset, in SkOffsetSimplePolygon() argument
1137 if (inputPolygonSize < 3) { in SkOffsetSimplePolygon()
1142 if (inputPolygonSize >= std::numeric_limits<uint16_t>::max()) { in SkOffsetSimplePolygon()
1151 int winding = SkGetPolygonWinding(inputPolygonVerts, inputPolygonSize); in SkOffsetSimplePolygon()
1157 SkAutoSTMalloc<64, SkVector> normals(inputPolygonSize); in SkOffsetSimplePolygon()
1159 for (int currIndex = 0, prevIndex = inputPolygonSize - 1; in SkOffsetSimplePolygon()
1160 currIndex < inputPolygonSize; in SkOffsetSimplePolygon()
1165 int nextIndex = (currIndex + 1) % inputPolygonSize; in SkOffsetSimplePolygon()
1186 if (is_reflex_vertex(inputPolygonVerts, winding, offset, inputPolygonSize-1, 0, 1)) { in SkOffsetSimplePolygon()
1189 if (!SkComputeRadialSteps(normals[inputPolygonSize-1], normals[0], offset, in SkOffsetSimplePolygon()
1206 for (int currIndex = 0, prevIndex = inputPolygonSize - 1; in SkOffsetSimplePolygon()
1207 currIndex < inputPolygonSize; in SkOffsetSimplePolygon()
1209 int nextIndex = (currIndex + 1) % inputPolygonSize; in SkOffsetSimplePolygon()