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:
parent
5b27846491
commit
182ce66906
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user