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:
parent
39edf4cd94
commit
bb6b5baa96
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user