BUG=skia:
R=bsalomon@google.com
Author: humper@google.com
Review URL: https://codereview.chromium.org/
313433003
bool ret = this->numPaintWithPathEffectUses() < kNumPaintWithPathEffectUsesTol &&
(this->numAAConcavePaths()-this->numAAHairlineConcavePaths()) < kNumAAConcavePaths;
if (!ret && reason) {
- if (this->numPaintWithPathEffectUses() < kNumPaintWithPathEffectUsesTol)
+ if (this->numPaintWithPathEffectUses() >= kNumPaintWithPathEffectUsesTol)
*reason = "Too many path effects.";
- else if ((this->numAAConcavePaths()-this->numAAHairlineConcavePaths()) < kNumAAConcavePaths)
+ else if ((this->numAAConcavePaths()-this->numAAHairlineConcavePaths()) >= kNumAAConcavePaths)
*reason = "Too many anti-aliased concave paths.";
+ else
+ *reason = "Unknown reason for GPU unsuitability.";
}
return ret;
}