Index: src/gpu/effects/GrConfigConversionEffect.cpp |
diff --git a/src/gpu/effects/GrConfigConversionEffect.cpp b/src/gpu/effects/GrConfigConversionEffect.cpp |
index d5b8a18e885b317984b9808a3fbf8384dd99eec4..8b072f627b6fe594830f2c9057e0c600eac51678 100644 |
--- a/src/gpu/effects/GrConfigConversionEffect.cpp |
+++ b/src/gpu/effects/GrConfigConversionEffect.cpp |
@@ -128,22 +128,19 @@ void GrConfigConversionEffect::onComputeInvariantOutput(GrInvariantOutput* inout |
GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrConfigConversionEffect); |
-GrFragmentProcessor* GrConfigConversionEffect::TestCreate(SkRandom* random, |
- GrContext*, |
- const GrCaps&, |
- GrTexture* textures[]) { |
- PMConversion pmConv = static_cast<PMConversion>(random->nextULessThan(kPMConversionCnt)); |
+GrFragmentProcessor* GrConfigConversionEffect::TestCreate(GrProcessorTestData* d) { |
+ PMConversion pmConv = static_cast<PMConversion>(d->fRandom->nextULessThan(kPMConversionCnt)); |
bool swapRB; |
if (kNone_PMConversion == pmConv) { |
swapRB = true; |
} else { |
- swapRB = random->nextBool(); |
+ swapRB = d->fRandom->nextBool(); |
} |
return SkNEW_ARGS(GrConfigConversionEffect, |
- (textures[GrProcessorUnitTest::kSkiaPMTextureIdx], |
+ (d->fTextures[GrProcessorUnitTest::kSkiaPMTextureIdx], |
swapRB, |
pmConv, |
- GrTest::TestMatrix(random))); |
+ GrTest::TestMatrix(d->fRandom))); |
} |
/////////////////////////////////////////////////////////////////////////////// |