Index: src/core/SkBitmapProcShader.cpp |
diff --git a/src/core/SkBitmapProcShader.cpp b/src/core/SkBitmapProcShader.cpp |
index 3727bbca864993bb537b5f607119cb945f66c059..d230d147cbf00994a43f75c9bdedc9300f6a08b6 100644 |
--- a/src/core/SkBitmapProcShader.cpp |
+++ b/src/core/SkBitmapProcShader.cpp |
@@ -225,6 +225,7 @@ private: |
static bool choose_linear_pipeline(const SkShader::ContextRec& rec, const SkImageInfo& srcInfo) { |
// These src attributes are not supported in the new 4f context (yet) |
// |
+ if (srcInfo.profileType() != kSRGB_SkColorProfileType) { return false; } |
if (srcInfo.colorType() != kRGBA_8888_SkColorType |
&& srcInfo.colorType() != kBGRA_8888_SkColorType |
&& srcInfo.colorType() != kIndex_8_SkColorType |