diff options
Diffstat (limited to 'src/effects/GrAlphaThresholdFragmentProcessor.cpp')
-rw-r--r-- | src/effects/GrAlphaThresholdFragmentProcessor.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/effects/GrAlphaThresholdFragmentProcessor.cpp b/src/effects/GrAlphaThresholdFragmentProcessor.cpp index 52e408ff26..9a90b2a51e 100644 --- a/src/effects/GrAlphaThresholdFragmentProcessor.cpp +++ b/src/effects/GrAlphaThresholdFragmentProcessor.cpp @@ -178,9 +178,6 @@ sk_sp<GrFragmentProcessor> GrAlphaThresholdFragmentProcessor::TestCreate(GrProce // Make the inner and outer thresholds be in (0, 1) exclusive and be sorted correctly. float innerThresh = d->fRandom->nextUScalar1() * .99f + 0.005f; float outerThresh = d->fRandom->nextUScalar1() * .99f + 0.005f; - if (innerThresh > outerThresh) { - SkTSwap(innerThresh, outerThresh); - } const int kMaxWidth = 1000; const int kMaxHeight = 1000; uint32_t width = d->fRandom->nextULessThan(kMaxWidth); |