Index: src/core/SkSpecialImage.cpp |
diff --git a/src/core/SkSpecialImage.cpp b/src/core/SkSpecialImage.cpp |
index 420b3f1e2336998afa571b2f6c5e40b603dc009e..081b2a5b765ed560a915c917af557ff39963ed06 100644 |
--- a/src/core/SkSpecialImage.cpp |
+++ b/src/core/SkSpecialImage.cpp |
@@ -84,7 +84,8 @@ sk_sp<SkSpecialImage> SkSpecialImage::makeTextureImage(GrContext* context) { |
sk_sp<GrTexture> resultTex(GrRefCachedBitmapTexture(context, |
bmp, |
- GrTextureParams::ClampNoFilter())); |
+ GrTextureParams::ClampNoFilter(), |
+ SkSourceGammaTreatment::kRespect)); |
if (!resultTex) { |
return nullptr; |
} |
@@ -226,7 +227,8 @@ public: |
#if SK_SUPPORT_GPU |
sk_sp<GrTexture> onAsTextureRef(GrContext* context) const override { |
return sk_sp<GrTexture>(as_IB(fImage)->asTextureRef(context, |
- GrTextureParams::ClampNoFilter())); |
+ GrTextureParams::ClampNoFilter(), |
+ SkSourceGammaTreatment::kRespect)); |
} |
#endif |
@@ -368,7 +370,8 @@ public: |
if (context) { |
return sk_ref_sp(GrRefCachedBitmapTexture(context, |
fBitmap, |
- GrTextureParams::ClampNoFilter())); |
+ GrTextureParams::ClampNoFilter(), |
+ SkSourceGammaTreatment::kRespect)); |
} |
return nullptr; |