Fix unit tests
Review URL: https://codereview.chromium.org/197823002 git-svn-id: http://skia.googlecode.com/svn/trunk@13772 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
1e35304734
commit
2ae9501e6f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user