Minor changes to fix some fuzz conditions.
A couple of ignored asserts when the data
is fuzzy, and one fail condition when the
underlying data has already been deleted.
TBR=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=
2443243002
Review-Url: https://codereview.chromium.org/
2443243002
}
}
if (fUsed >= fMax) {
- SkASSERT(0); // FIXME : this error, if it is to be handled at runtime in release, must
+ SkOPASSERT(0); // FIXME : this error, if it is to be handled at runtime in release, must
// be propagated all the way back down to the caller, and return failure.
fUsed = 0;
return 0;
return true;
}
const SkOpPtT* ice = inner->coinPtTEnd();
- SkASSERT(!ice->deleted());
+ FAIL_IF(ice->deleted());
if (outerOpp != innerOpp && this->overlap(ocs, oce, ics, ice, &overS, &overE)) {
(void) this->addIfMissing(ocs->starter(oce), ics->starter(ice),
overS, overE, outerOppWritable, innerOppWritable, added
void setOppValue(int oppValue) {
SkASSERT(!final());
SkASSERT(fOppSum == SK_MinS32);
- SkASSERT(!oppValue || !fDone);
+ SkOPASSERT(!oppValue || !fDone);
fOppValue = oppValue;
}