Index: src/core/SkBitmapProcShader.cpp |
diff --git a/src/core/SkBitmapProcShader.cpp b/src/core/SkBitmapProcShader.cpp |
index 678802b3a13a9bb64b139c66cef7a53685bef7fd..eeb43b4886cb8bdb5d9bfaed8c965adf9dbab5ce 100644 |
--- a/src/core/SkBitmapProcShader.cpp |
+++ b/src/core/SkBitmapProcShader.cpp |
@@ -268,6 +268,11 @@ void SkBitmapProcShader::BitmapProcShaderContext::shadeSpan16(int x, int y, uint |
// returns true and set color if the bitmap can be drawn as a single color |
// (for efficiency) |
static bool canUseColorShader(const SkBitmap& bm, SkColor* color) { |
+#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK |
+ // HWUI does not support color shaders (see b/22390304) |
+ return false; |
+#endif |
+ |
if (1 != bm.width() || 1 != bm.height()) { |
return false; |
} |