Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index 11a79dbe7dc3f6ef23015a921d80ea39ae65b8de..72b07379f259b8727bebb8487ac39ef06850aba1 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -1376,7 +1376,7 @@ void SkGpuDevice::internalDrawBitmap(const SkBitmap& bitmap, |
// the rest from the SkPaint. |
GrPaint grPaint; |
grPaint.addColorEffect(effect); |
- bool alphaOnly = !(SkBitmap::kA8_Config == bitmap.config()); |
+ bool alphaOnly = !(kAlpha_8_SkColorType == bitmap.colorType()); |
GrColor grColor = (alphaOnly) ? SkColor2GrColorJustAlpha(paint.getColor()) : |
SkColor2GrColor(paint.getColor()); |
SkPaint2GrPaintNoShader(this->context(), paint, grColor, false, &grPaint); |