| Index: src/gpu/SkGpuDevice_drawTexture.cpp
|
| diff --git a/src/gpu/SkGpuDevice_drawTexture.cpp b/src/gpu/SkGpuDevice_drawTexture.cpp
|
| index 6014e952139c1bfb606a670b18a378fbeaa7942d..da0a4acd4526bf8d8b4ae9e6d2c17549a344b6bb 100644
|
| --- a/src/gpu/SkGpuDevice_drawTexture.cpp
|
| +++ b/src/gpu/SkGpuDevice_drawTexture.cpp
|
| @@ -201,19 +201,16 @@ void SkGpuDevice::drawTextureProducerImpl(GrTextureProducer* producer,
|
| }
|
| textureMatrix = &tempMatrix;
|
| }
|
| - bool gammaCorrect = this->surfaceProps().isGammaCorrect();
|
| - SkSourceGammaTreatment gammaTreatment = gammaCorrect
|
| - ? SkSourceGammaTreatment::kRespect : SkSourceGammaTreatment::kIgnore;
|
| sk_sp<GrFragmentProcessor> fp(producer->createFragmentProcessor(
|
| *textureMatrix, clippedSrcRect, constraintMode, coordsAllInsideSrcRect, filterMode,
|
| - fDrawContext->getColorSpace(), gammaTreatment));
|
| + fDrawContext->getColorSpace(), fDrawContext->sourceGammaTreatment()));
|
| if (!fp) {
|
| return;
|
| }
|
|
|
| GrPaint grPaint;
|
| - if (!SkPaintToGrPaintWithTexture(fContext, paint, viewMatrix, fp, producer->isAlphaOnly(),
|
| - gammaCorrect, fDrawContext->getColorSpace(), &grPaint)) {
|
| + if (!SkPaintToGrPaintWithTexture(fContext, fDrawContext.get(), paint, viewMatrix, fp,
|
| + producer->isAlphaOnly(), &grPaint)) {
|
| return;
|
| }
|
|
|
|
|