| Index: src/gpu/effects/GrBicubicEffect.cpp
|
| diff --git a/src/gpu/effects/GrBicubicEffect.cpp b/src/gpu/effects/GrBicubicEffect.cpp
|
| index 5d94bd98628d31aa4ecdc5572bf1a6338f37e0c0..c4ceeba866102cb485037bc156c6ebdf8e2c62a7 100644
|
| --- a/src/gpu/effects/GrBicubicEffect.cpp
|
| +++ b/src/gpu/effects/GrBicubicEffect.cpp
|
| @@ -180,17 +180,14 @@ void GrBicubicEffect::onComputeInvariantOutput(GrInvariantOutput* inout) const {
|
|
|
| GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrBicubicEffect);
|
|
|
| -GrFragmentProcessor* GrBicubicEffect::TestCreate(SkRandom* random,
|
| - GrContext* context,
|
| - const GrCaps&,
|
| - GrTexture* textures[]) {
|
| - int texIdx = random->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx :
|
| - GrProcessorUnitTest::kAlphaTextureIdx;
|
| +GrFragmentProcessor* GrBicubicEffect::TestCreate(GrProcessorTestData* d) {
|
| + int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx :
|
| + GrProcessorUnitTest::kAlphaTextureIdx;
|
| SkScalar coefficients[16];
|
| for (int i = 0; i < 16; i++) {
|
| - coefficients[i] = random->nextSScalar1();
|
| + coefficients[i] = d->fRandom->nextSScalar1();
|
| }
|
| - return GrBicubicEffect::Create(textures[texIdx], coefficients);
|
| + return GrBicubicEffect::Create(d->fTextures[texIdx], coefficients);
|
| }
|
|
|
| //////////////////////////////////////////////////////////////////////////////
|
|
|