Definition at line 2461 of file SkPath.cpp.
◆ ContourIter()
ContourIter::ContourIter |
( |
const SkPathRef & |
pathRef | ) |
|
Definition at line 2481 of file SkPath.cpp.
2481 {
2483 fDone = false;
2484 fCurrPt = pathRef.
points();
2487 fCurrPtCount = 0;
2490}
SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID()
const uint8_t * verbsEnd() const
const SkPoint * points() const
const SkScalar * conicWeights() const
const uint8_t * verbsBegin() const
◆ count()
int ContourIter::count |
( |
| ) |
const |
|
inline |
Definition at line 2467 of file SkPath.cpp.
2467{ return fCurrPtCount; }
◆ done()
bool ContourIter::done |
( |
| ) |
const |
|
inline |
◆ next()
void ContourIter::next |
( |
| ) |
|
Definition at line 2492 of file SkPath.cpp.
2492 {
2493 if (fCurrVerb >= fStopVerbs) {
2494 fDone = true;
2495 }
2496 if (fDone) {
2497 return;
2498 }
2499
2500
2501 fCurrPt += fCurrPtCount;
2502
2504 int ptCount = 1;
2505 const uint8_t* verbs = fCurrVerb;
2506
2507 for (verbs++; verbs < fStopVerbs; verbs++) {
2508 switch (*verbs) {
2510 goto CONTOUR_END;
2512 ptCount += 1;
2513 break;
2515 fCurrConicWeight += 1;
2516 [[fallthrough]];
2518 ptCount += 2;
2519 break;
2521 ptCount += 3;
2522 break;
2524 break;
2525 default:
2527 break;
2528 }
2529 }
2530CONTOUR_END:
2531 fCurrPtCount = ptCount;
2532 fCurrVerb = verbs;
2534}
#define SkDEBUGFAIL(message)
◆ pts()
const SkPoint * ContourIter::pts |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: