Index: src/gpu/effects/GrRRectEffect.cpp |
diff --git a/src/gpu/effects/GrRRectEffect.cpp b/src/gpu/effects/GrRRectEffect.cpp |
index d7669631ed356920bef240e278da4a777ac87351..636730db221b62cc291dcb70c8c38e94424ca40a 100644 |
--- a/src/gpu/effects/GrRRectEffect.cpp |
+++ b/src/gpu/effects/GrRRectEffect.cpp |
@@ -455,7 +455,8 @@ GrEffectRef* EllipticalRRectEffect::TestCreate(SkRandom* random, |
rrect.setRectXY(SkRect::MakeWH(w, h), rx, ry); |
GrEffectRef* effect; |
do { |
- GrEffectEdgeType et = (GrEffectEdgeType)random->nextULessThan(kGrEffectEdgeTypeCnt); |
+ GrEffectEdgeType et = random->nextBool() ? kFillAA_GrEffectEdgeType : |
+ kInverseFillAA_GrEffectEdgeType; |
effect = EllipticalRRectEffect::Create(et, rrect); |
} while (NULL == effect); |
return effect; |