aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar jvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-25 18:26:36 +0000
committerGravatar jvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-25 18:26:36 +0000
commitbb6b5baa969c7158a75dcf1ff9c1d566deb58fad (patch)
treefd243a1ad57cc59a4716e746b5645e11c65fa4ec
parent39edf4cd94e6fbeb8c1187a588b314e9795c81e4 (diff)
Temporarily disable HardLight effect in unit tests.
git-svn-id: http://skia.googlecode.com/svn/trunk@8865 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--src/core/SkXfermode.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/SkXfermode.cpp b/src/core/SkXfermode.cpp
index 56feb8940f..4318e717ae 100644
--- a/src/core/SkXfermode.cpp
+++ b/src/core/SkXfermode.cpp
@@ -1368,7 +1368,11 @@ GrEffectRef* XferEffect::TestCreate(SkMWCRandom* rand,
GrContext*,
const GrDrawTargetCaps&,
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))));
return CreateEffectRef(gEffect);
}