Home
last modified time | relevance | path

Searched refs:numPts (Results 1 – 23 of 23) sorted by relevance

/third_party/skia/gm/
Dpolygonoffset.cpp442 std::unique_ptr<SkPoint[]>* data, int* numPts) { in GetConvexPolygon() argument
445 *numPts = (int)PolygonOffsetData::gConvexSizes[index]; in GetConvexPolygon()
446 *data = std::make_unique<SkPoint[]>(*numPts); in GetConvexPolygon()
448 for (int i = 0; i < *numPts; ++i) { in GetConvexPolygon()
452 for (int i = 0; i < *numPts; ++i) { in GetConvexPolygon()
453 (*data)[i] = PolygonOffsetData::gConvexPoints[index][*numPts - i - 1]; in GetConvexPolygon()
464 *numPts = numPtsArray[arrayIndex]; in GetConvexPolygon()
470 *data = std::make_unique<SkPoint[]>(*numPts); in GetConvexPolygon()
472 create_ngon(*numPts, data->get(), width, height, dir); in GetConvexPolygon()
477 std::unique_ptr<SkPoint[]>* data, int* numPts) { in GetSimplePolygon() argument
[all …]
Dconvex_all_line_paths.cpp189 int numPts; in GetPath() local
193 numPts = (int)ConvexLineOnlyData::gSizes[index]; in GetPath()
200 numPts = 3; in GetPath()
203 numPts = 4; in GetPath()
206 numPts = 5; in GetPath()
209 numPts = 5; in GetPath()
213 numPts = 6; in GetPath()
216 numPts = 8; in GetPath()
219 numPts = 8; in GetPath()
223 numPts = 20; in GetPath()
[all …]
Dtrickycubicstrokes.cpp125 auto [originalPts, numPts, fillMode, scale] = kTrickyCubics[i]; in draw_test()
127 SkASSERT(numPts <= 4); in draw_test()
129 memcpy(p, originalPts, sizeof(SkPoint) * numPts); in draw_test()
130 for (int j = 0; j < numPts; ++j) { in draw_test()
139 if (numPts == 4) { in draw_test()
142 SkASSERT(numPts == 3); in draw_test()
163 if (numPts == 4) { in draw_test()
166 SkASSERT(numPts == 3); in draw_test()
169 SkASSERT(numPts == 3); in draw_test()
/third_party/flutter/skia/gm/
Dpolygonoffset.cpp442 std::unique_ptr<SkPoint[]>* data, int* numPts) { in GetConvexPolygon() argument
445 *numPts = (int)PolygonOffsetData::gConvexSizes[index]; in GetConvexPolygon()
446 data->reset(new SkPoint[*numPts]); in GetConvexPolygon()
448 for (int i = 0; i < *numPts; ++i) { in GetConvexPolygon()
452 for (int i = 0; i < *numPts; ++i) { in GetConvexPolygon()
453 (*data)[i] = PolygonOffsetData::gConvexPoints[index][*numPts - i - 1]; in GetConvexPolygon()
464 *numPts = numPtsArray[arrayIndex]; in GetConvexPolygon()
470 data->reset(new SkPoint[*numPts]); in GetConvexPolygon()
472 create_ngon(*numPts, data->get(), width, height, dir); in GetConvexPolygon()
477 std::unique_ptr<SkPoint[]>* data, int* numPts) { in GetSimplePolygon() argument
[all …]
Dconvex_all_line_paths.cpp189 int numPts; in GetPath() local
193 numPts = (int)ConvexLineOnlyData::gSizes[index]; in GetPath()
200 numPts = 3; in GetPath()
203 numPts = 4; in GetPath()
206 numPts = 5; in GetPath()
209 numPts = 5; in GetPath()
213 numPts = 6; in GetPath()
216 numPts = 8; in GetPath()
219 numPts = 8; in GetPath()
223 numPts = 20; in GetPath()
[all …]
/third_party/flutter/skia/src/gpu/ops/
DGrAAConvexTessellator.cpp209 if (previousRing.numPts() < 3) { in createInsetRings()
232 bool done = currentRing->numPts() >= 3; in createInsetRings()
272 fNorms.setCount(fNorms.count() + outerStrokeAndAARing.numPts()); in tessellate()
273 for (int i = 0; i < outerStrokeAndAARing.numPts(); ++i) { in tessellate()
308 if (SkStrokeRec::kStroke_Style == fStyle && fInitialRing.numPts() > 2) { in tessellate()
426 if (this->numPts() < 2) { in extractFromPath()
431 if (duplicate_pt(fPts[this->numPts()-1], fPts[0])) { in extractFromPath()
437 while (!noRemovalsToDo && this->numPts() >= 3) { in extractFromPath()
449 if (this->numPts() >= 3) { in extractFromPath()
452 } else if (this->numPts() == 2) { in extractFromPath()
[all …]
DGrAAConvexTessellator.h51 int numPts() const { return fPts.count(); } in numPts() function
71 void setReserve(int numPts) { fPts.setReserve(numPts); } in setReserve() argument
74 int numPts() const { return fPts.count(); } in numPts() function
131 void setReserve(int numPts) { fPts.setReserve(numPts); } in setReserve() argument
134 int numPts() const { return fPts.count(); } in numPts() function
DGrDefaultPathRenderer.cpp111 uint16_t numPts = (uint16_t)GrPathUtils::generateQuadraticPoints( in addQuad() local
115 for (uint16_t i = 0; i < numPts; ++i) { in addQuad()
136 uint16_t numPts = (uint16_t) GrPathUtils::generateCubicPoints( in addCubic() local
140 for (uint16_t i = 0; i < numPts; ++i) { in addCubic()
DGrAALinearizingConvexPathRenderer.cpp90 for (int i = 0; i < tess.numPts(); ++i) { in extract_verts()
259 int currentVertices = tess.numPts(); in onPrepareDraws()
/third_party/skia/src/gpu/geometry/
DGrAAConvexTessellator.cpp219 if (previousRing.numPts() < 3) { in createInsetRings()
242 bool done = currentRing->numPts() >= 3; in createInsetRings()
282 fNorms.setCount(fNorms.count() + outerStrokeAndAARing.numPts()); in tessellate()
283 for (int i = 0; i < outerStrokeAndAARing.numPts(); ++i) { in tessellate()
318 if (SkStrokeRec::kStroke_Style == fStyle && fInitialRing.numPts() > 2) { in tessellate()
432 if (this->numPts() < 2) { in extractFromPath()
437 if (duplicate_pt(fPts[this->numPts()-1], fPts[0])) { in extractFromPath()
444 while (!noRemovalsToDo && this->numPts() >= 3) { in extractFromPath()
458 if (this->numPts() >= 3) { in extractFromPath()
461 } else if (this->numPts() == 2) { in extractFromPath()
[all …]
DGrAAConvexTessellator.h51 int numPts() const { return fPts.count(); } in numPts() function
71 void setReserve(int numPts) { fPts.setReserve(numPts); } in setReserve() argument
74 int numPts() const { return fPts.count(); } in numPts() function
131 void setReserve(int numPts) { fPts.setReserve(numPts); } in setReserve() argument
134 int numPts() const { return fPts.count(); } in numPts() function
/third_party/flutter/skia/tools/
DToolUtils.cpp217 SkPath make_star(const SkRect& bounds, int numPts, int step) { in make_star() argument
218 SkASSERT(numPts != step); in make_star()
222 for (int i = 1; i < numPts; ++i) { in make_star()
223 int idx = i * step % numPts; in make_star()
224 SkScalar theta = idx * 2 * SK_ScalarPI / numPts + SK_ScalarPI / 2; in make_star()
DToolUtils.h137 SkPath make_star(const SkRect& bounds, int numPts = 5, int step = 2);
/third_party/skia/tools/
DToolUtils.cpp252 SkPath make_star(const SkRect& bounds, int numPts, int step) { in make_star() argument
253 SkASSERT(numPts != step); in make_star()
257 for (int i = 1; i < numPts; ++i) { in make_star()
258 int idx = i * step % numPts; in make_star()
259 SkScalar theta = idx * 2 * SK_ScalarPI / numPts + SK_ScalarPI / 2; in make_star()
DToolUtils.h138 SkPath make_star(const SkRect& bounds, int numPts = 5, int step = 2);
/third_party/skia/src/gpu/ops/
DDefaultPathRenderer.cpp114 uint16_t numPts = (uint16_t)GrPathUtils::generateQuadraticPoints( in addQuad() local
118 for (uint16_t i = 0; i < numPts; ++i) { in addQuad()
142 uint16_t numPts = (uint16_t) GrPathUtils::generateCubicPoints( in addCubic() local
146 for (uint16_t i = 0; i < numPts; ++i) { in addCubic()
DAALinearizingConvexPathRenderer.cpp50 for (int i = 0; i < tess.numPts(); ++i) { in extract_verts()
232 int currentVertices = tess.numPts(); in onPrepareDraws()
/third_party/flutter/skia/src/gpu/ccpr/
DGrCCPerFlushResources.cpp315 int numPts = path.countPoints(); in transform_path_pts() local
316 SkASSERT(numPts + 1 <= outDevPts.count()); in transform_path_pts()
317 SkASSERT(numPts); in transform_path_pts()
344 for (int i = 1; i < numPts; ++i) { in transform_path_pts()
/third_party/skia/src/gpu/tessellate/
DStrokeFixedCountTessellator.cpp199 void discardStroke(const SkPoint p[], int numPts) { in discardStroke() argument
202 fLastControlPoint = p[numPts - 1]; in discardStroke()
/third_party/flutter/skia/tests/
DGrCCPRTest.cpp355 int numPts = rand.nextRangeU(GrShape::kMaxKeyFromDataVerbCnt + 1, in CCPRCacheTest() local
360 } while (step == numPts); in CCPRCacheTest()
361 fPaths[i] = ToolUtils::make_star(SkRect::MakeLTRB(0, 0, 1, 1), numPts, step); in CCPRCacheTest()
/third_party/skia/src/core/
DSkPathRef.cpp353 if (int numPts = path.countPoints()) { in growForVerbsInPath() local
354 pts = fPoints.append(numPts); in growForVerbsInPath()
DSkPath.cpp1842 int numPts; in next() local
1844 case SkPathVerb::kMove: numPts = 1; break; in next()
1845 case SkPathVerb::kLine: numPts = 2; break; in next()
1846 case SkPathVerb::kQuad: numPts = 3; break; in next()
1848 numPts = 3; in next()
1851 case SkPathVerb::kCubic: numPts = 4; break; in next()
1852 case SkPathVerb::kClose: numPts = 0; break; in next()
1854 memcpy(pts, iterPts, sizeof(SkPoint) * numPts); in next()
/third_party/skia/modules/canvaskit/
Dcanvaskit_bindings.cpp467 WASMPointerF32 ptsPtr, int numPts, in PathAddVerbsPointsWeights() argument
474 if ((ptIdx + n) > numPts) { \ in PathAddVerbsPointsWeights()
475 SkDebugf("Not enough points to match the verbs. Saw %d points\n", numPts); \ in PathAddVerbsPointsWeights()
484 path.incReserve(numPts); in PathAddVerbsPointsWeights()
529 WASMPointerF32 ptsPtr, int numPts, in MakePathFromVerbsPointsWeights() argument
532 PathAddVerbsPointsWeights(path, verbsPtr, numVerbs, ptsPtr, numPts, wtsPtr, numWts); in MakePathFromVerbsPointsWeights()