Home
last modified time | relevance | path

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

/external/skia/src/utils/
DSkPolyUtils.cpp309 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()
328 for (int i = 0; i < inputPolygonSize; ++i) { in SkInsetConvexPolygon()
335 int winding = SkGetPolygonWinding(inputPolygonVerts, inputPolygonSize); in SkInsetConvexPolygon()
341 SkAutoSTMalloc<64, OffsetEdge> edgeData(inputPolygonSize); in SkInsetConvexPolygon()
342 int prev = inputPolygonSize - 1; in SkInsetConvexPolygon()
343 for (int curr = 0; curr < inputPolygonSize; prev = curr, ++curr) { in SkInsetConvexPolygon()
344 int next = (curr + 1) % inputPolygonSize; in SkInsetConvexPolygon()
366 int insetVertexCount = inputPolygonSize; in SkInsetConvexPolygon()
[all …]
DSkPolyUtils.h26 bool SkInsetConvexPolygon(const SkPoint* inputPolygonVerts, int inputPolygonSize,
42 bool SkOffsetSimplePolygon(const SkPoint* inputPolygonVerts, int inputPolygonSize,
/external/skqp/src/utils/
DSkPolyUtils.cpp309 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()
[all …]
DSkPolyUtils.h26 bool SkInsetConvexPolygon(const SkPoint* inputPolygonVerts, int inputPolygonSize,
42 bool SkOffsetSimplePolygon(const SkPoint* inputPolygonVerts, int inputPolygonSize,