Index: src/core/SkBitmapProcShader.cpp |
diff --git a/src/core/SkBitmapProcShader.cpp b/src/core/SkBitmapProcShader.cpp |
index b2dee0b9d27fc13ed471fec619e3963ef9c36006..8fad0b1fcc284d79b694882685492a4dfd39e467 100644 |
--- a/src/core/SkBitmapProcShader.cpp |
+++ b/src/core/SkBitmapProcShader.cpp |
@@ -460,12 +460,14 @@ sk_sp<GrFragmentProcessor> SkBitmapProcShader::asFragmentProcessor(GrContext* co |
"Couldn't convert bitmap to texture."); |
return nullptr; |
} |
- |
+ SkColorSpace* dstColorSpace = nullptr; // XFORMTODO |
+ sk_sp<GrColorSpaceXform> colorSpaceXform = GrColorSpaceXform::Make(fRawBitmap.colorSpace(), |
+ dstColorSpace); |
sk_sp<GrFragmentProcessor> inner; |
if (doBicubic) { |
- inner = GrBicubicEffect::Make(texture, matrix, tm); |
+ inner = GrBicubicEffect::Make(texture, std::move(colorSpaceXform), matrix, tm); |
} else { |
- inner = GrSimpleTextureEffect::Make(texture, matrix, params); |
+ inner = GrSimpleTextureEffect::Make(texture, std::move(colorSpaceXform), matrix, params); |
} |
if (kAlpha_8_SkColorType == fRawBitmap.colorType()) { |