diff options
Diffstat (limited to 'src/gpu/effects/GrConfigConversionEffect.cpp')
-rw-r--r-- | src/gpu/effects/GrConfigConversionEffect.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/effects/GrConfigConversionEffect.cpp b/src/gpu/effects/GrConfigConversionEffect.cpp index b6a69f21b5..cb4cb24a02 100644 --- a/src/gpu/effects/GrConfigConversionEffect.cpp +++ b/src/gpu/effects/GrConfigConversionEffect.cpp @@ -185,16 +185,16 @@ void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context (tempTex, false, *pmToUPMRule))); context->setRenderTarget(readTex->asRenderTarget()); - paint.colorSampler(0)->setEffect(pmToUPMEffect1); + paint.colorStage(0)->setEffect(pmToUPMEffect1); context->drawRectToRect(paint, kDstRect, kSrcRect); readTex->readPixels(0, 0, 256, 256, kRGBA_8888_GrPixelConfig, firstRead); context->setRenderTarget(tempTex->asRenderTarget()); - paint.colorSampler(0)->setEffect(upmToPMEffect); + paint.colorStage(0)->setEffect(upmToPMEffect); context->drawRectToRect(paint, kDstRect, kSrcRect); context->setRenderTarget(readTex->asRenderTarget()); - paint.colorSampler(0)->setEffect(pmToUPMEffect2); + paint.colorStage(0)->setEffect(pmToUPMEffect2); context->drawRectToRect(paint, kDstRect, kSrcRect); readTex->readPixels(0, 0, 256, 256, kRGBA_8888_GrPixelConfig, secondRead); |