Temporarily disable HardLight effect in unit tests.

git-svn-id: http://skia.googlecode.com/svn/trunk@8865 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
jvanverth@google.com 2013-04-25 18:26:36 +00:00
parent 39edf4cd94
commit bb6b5baa96

View File

@ -1368,7 +1368,11 @@ GrEffectRef* XferEffect::TestCreate(SkMWCRandom* rand,
GrContext*, GrContext*,
const GrDrawTargetCaps&, const GrDrawTargetCaps&,
GrTexture*[]) { GrTexture*[]) {
int mode = rand->nextRangeU(SkXfermode::kLastCoeffMode + 1, SkXfermode::kLastSeparableMode); int mode;
do {
mode = rand->nextRangeU(SkXfermode::kLastCoeffMode + 1, SkXfermode::kLastSeparableMode);
} while (mode == SkXfermode::kHardLight_Mode);
static AutoEffectUnref gEffect(SkNEW_ARGS(XferEffect, (static_cast<SkXfermode::Mode>(mode)))); static AutoEffectUnref gEffect(SkNEW_ARGS(XferEffect, (static_cast<SkXfermode::Mode>(mode))));
return CreateEffectRef(gEffect); return CreateEffectRef(gEffect);
} }