void SkBaseDevice::drawArc(const SkDraw& draw, const SkRect& oval, SkScalar startAngle,
SkScalar sweepAngle, bool useCenter, const SkPaint& paint) {
SkASSERT(SkScalarAbs(sweepAngle) >= 0.f && SkScalarAbs(sweepAngle) < 360.f);
- SkPath path;
+ SkPath path;
if (useCenter) {
path.moveTo(oval.centerX(), oval.centerY());
}
if (useCenter) {
path.close();
}
+ path.setIsVolatile(true);
this->drawPath(draw, path, paint);
}
path.addRRect(outer);
path.addRRect(inner);
path.setFillType(SkPath::kEvenOdd_FillType);
+ path.setIsVolatile(true);
const SkMatrix* preMatrix = nullptr;
const bool pathIsMutable = true;