| Index: src/image/SkImageShader.cpp
|
| diff --git a/src/image/SkImageShader.cpp b/src/image/SkImageShader.cpp
|
| index d12ee030a2a19a921a75d778e5521626a0f8a589..b2fab39e11869291a8d3b854a7e46c779d261bb9 100644
|
| --- a/src/image/SkImageShader.cpp
|
| +++ b/src/image/SkImageShader.cpp
|
| @@ -83,10 +83,12 @@ void SkImageShader::toString(SkString* str) const {
|
| #include "effects/GrBicubicEffect.h"
|
| #include "effects/GrSimpleTextureEffect.h"
|
|
|
| -const GrFragmentProcessor* SkImageShader::asFragmentProcessor(GrContext* context,
|
| - const SkMatrix& viewM,
|
| - const SkMatrix* localMatrix,
|
| - SkFilterQuality filterQuality) const {
|
| +const GrFragmentProcessor* SkImageShader::asFragmentProcessor(
|
| + GrContext* context,
|
| + const SkMatrix& viewM,
|
| + const SkMatrix* localMatrix,
|
| + SkFilterQuality filterQuality,
|
| + SkSourceGammaTreatment gammaTreatment) const {
|
| SkMatrix matrix;
|
| matrix.setIDiv(fImage->width(), fImage->height());
|
|
|
| @@ -113,7 +115,7 @@ const GrFragmentProcessor* SkImageShader::asFragmentProcessor(GrContext* context
|
| GrTextureParams::FilterMode textureFilterMode =
|
| GrSkFilterQualityToGrFilterMode(filterQuality, viewM, this->getLocalMatrix(), &doBicubic);
|
| GrTextureParams params(tm, textureFilterMode);
|
| - SkAutoTUnref<GrTexture> texture(as_IB(fImage)->asTextureRef(context, params));
|
| + SkAutoTUnref<GrTexture> texture(as_IB(fImage)->asTextureRef(context, params, gammaTreatment));
|
| if (!texture) {
|
| return nullptr;
|
| }
|
|
|