Index: src/gpu/effects/GrConfigConversionEffect.cpp |
diff --git a/src/gpu/effects/GrConfigConversionEffect.cpp b/src/gpu/effects/GrConfigConversionEffect.cpp |
index 042e5f8047658e2ab1f4e42e05274cce4983c7bd..909e4614ef3cb8365eebaab9aa5d859773e52203 100644 |
--- a/src/gpu/effects/GrConfigConversionEffect.cpp |
+++ b/src/gpu/effects/GrConfigConversionEffect.cpp |
@@ -96,12 +96,11 @@ private: |
/////////////////////////////////////////////////////////////////////////////// |
-GrConfigConversionEffect::GrConfigConversionEffect(GrProcessorDataManager* procDataManager, |
- GrTexture* texture, |
+GrConfigConversionEffect::GrConfigConversionEffect(GrTexture* texture, |
bool swapRedAndBlue, |
PMConversion pmConversion, |
const SkMatrix& matrix) |
- : INHERITED(procDataManager, texture, matrix) |
+ : INHERITED(texture, matrix) |
, fSwapRedAndBlue(swapRedAndBlue) |
, fPMConversion(pmConversion) { |
this->initClassID<GrConfigConversionEffect>(); |
@@ -136,8 +135,7 @@ const GrFragmentProcessor* GrConfigConversionEffect::TestCreate(GrProcessorTestD |
} else { |
swapRB = d->fRandom->nextBool(); |
} |
- return new GrConfigConversionEffect(d->fProcDataManager, |
- d->fTextures[GrProcessorUnitTest::kSkiaPMTextureIdx], |
+ return new GrConfigConversionEffect(d->fTextures[GrProcessorUnitTest::kSkiaPMTextureIdx], |
swapRB, pmConv, GrTest::TestMatrix(d->fRandom)); |
} |
@@ -217,11 +215,11 @@ void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context |
GrPaint paint2; |
GrPaint paint3; |
SkAutoTUnref<GrFragmentProcessor> pmToUPM1(new GrConfigConversionEffect( |
- paint1.getProcessorDataManager(), dataTex, false, *pmToUPMRule, SkMatrix::I())); |
+ dataTex, false, *pmToUPMRule, SkMatrix::I())); |
SkAutoTUnref<GrFragmentProcessor> upmToPM(new GrConfigConversionEffect( |
- paint2.getProcessorDataManager(), readTex, false, *upmToPMRule, SkMatrix::I())); |
+ readTex, false, *upmToPMRule, SkMatrix::I())); |
SkAutoTUnref<GrFragmentProcessor> pmToUPM2(new GrConfigConversionEffect( |
- paint3.getProcessorDataManager(), tempTex, false, *pmToUPMRule, SkMatrix::I())); |
+ tempTex, false, *pmToUPMRule, SkMatrix::I())); |
paint1.addColorFragmentProcessor(pmToUPM1); |
@@ -288,8 +286,7 @@ void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context |
} |
} |
-const GrFragmentProcessor* GrConfigConversionEffect::Create(GrProcessorDataManager* procDataManager, |
- GrTexture* texture, |
+const GrFragmentProcessor* GrConfigConversionEffect::Create(GrTexture* texture, |
bool swapRedAndBlue, |
PMConversion pmConversion, |
const SkMatrix& matrix) { |
@@ -297,7 +294,7 @@ const GrFragmentProcessor* GrConfigConversionEffect::Create(GrProcessorDataManag |
// If we returned a GrConfigConversionEffect that was equivalent to a GrSimpleTextureEffect |
// then we may pollute our texture cache with redundant shaders. So in the case that no |
// conversions were requested we instead return a GrSimpleTextureEffect. |
- return GrSimpleTextureEffect::Create(procDataManager, texture, matrix); |
+ return GrSimpleTextureEffect::Create(texture, matrix); |
} else { |
if (kRGBA_8888_GrPixelConfig != texture->config() && |
kBGRA_8888_GrPixelConfig != texture->config() && |
@@ -305,7 +302,6 @@ const GrFragmentProcessor* GrConfigConversionEffect::Create(GrProcessorDataManag |
// The PM conversions assume colors are 0..255 |
return nullptr; |
} |
- return new GrConfigConversionEffect(procDataManager, texture, swapRedAndBlue, pmConversion, |
- matrix); |
+ return new GrConfigConversionEffect(texture, swapRedAndBlue, pmConversion, matrix); |
} |
} |