Make asserts in EllipticalRRectOp::Make agree with calling code.

The calling code guards against < .5 radii if not stroke-only.

Change-Id: Ic6075e2bef3989a02f1f87085dba9cecdd93d825
Bug: chromium:1114968
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/310057
Auto-Submit: Brian Salomon <bsalomon@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
This commit is contained in:
Brian Salomon 2020-08-13 11:29:42 -04:00 committed by Skia Commit-Bot
parent 5b27846491
commit 182ce66906

View File

@ -2836,8 +2836,8 @@ public:
float devYRadius,
SkVector devStrokeWidths,
bool strokeOnly) {
SkASSERT(devXRadius >= 0.5);
SkASSERT(devYRadius >= 0.5);
SkASSERT(devXRadius >= 0.5 || strokeOnly);
SkASSERT(devYRadius >= 0.5 || strokeOnly);
SkASSERT((devStrokeWidths.fX > 0) == (devStrokeWidths.fY > 0));
SkASSERT(!(strokeOnly && devStrokeWidths.fX <= 0));
if (devStrokeWidths.fX > 0) {