Definition at line 2397 of file SkPath.cpp.
◆ ContourIter()
ContourIter::ContourIter |
( |
const SkPathRef & |
pathRef | ) |
|
Definition at line 2417 of file SkPath.cpp.
2417 {
2419 fDone = false;
2420 fCurrPt = pathRef.
points();
2423 fCurrPtCount = 0;
2426}
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 2403 of file SkPath.cpp.
2403{ return fCurrPtCount; }
◆ done()
bool ContourIter::done |
( |
| ) |
const |
|
inline |
◆ next()
void ContourIter::next |
( |
| ) |
|
Definition at line 2428 of file SkPath.cpp.
2428 {
2429 if (fCurrVerb >= fStopVerbs) {
2430 fDone = true;
2431 }
2432 if (fDone) {
2433 return;
2434 }
2435
2436
2437 fCurrPt += fCurrPtCount;
2438
2440 int ptCount = 1;
2441 const uint8_t* verbs = fCurrVerb;
2442
2443 for (verbs++; verbs < fStopVerbs; verbs++) {
2444 switch (*verbs) {
2446 goto CONTOUR_END;
2448 ptCount += 1;
2449 break;
2451 fCurrConicWeight += 1;
2452 [[fallthrough]];
2454 ptCount += 2;
2455 break;
2457 ptCount += 3;
2458 break;
2460 break;
2461 default:
2463 break;
2464 }
2465 }
2466CONTOUR_END:
2467 fCurrPtCount = ptCount;
2468 fCurrVerb = verbs;
2470}
#define SkDEBUGFAIL(message)
◆ pts()
const SkPoint * ContourIter::pts |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: