Index: src/effects/gradients/SkGradientShader.cpp |
diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp |
index 2e92076b3add195c08158967c451a6e8b324dc40..0357233bd26b8f1fee37d175c1625e282199eb51 100644 |
--- a/src/effects/gradients/SkGradientShader.cpp |
+++ b/src/effects/gradients/SkGradientShader.cpp |
@@ -1100,7 +1100,7 @@ GrGradientEffect::GrGradientEffect(GrContext* ctx, |
desc.fHeight = 32; |
desc.fRowHeight = bitmap.height(); |
desc.fContext = ctx; |
- desc.fConfig = SkImageInfo2GrPixelConfig(bitmap.colorType(), bitmap.alphaType()); |
+ desc.fConfig = SkImageInfo2GrPixelConfig(bitmap.info()); |
fAtlas = GrTextureStripAtlas::GetAtlas(desc); |
SkASSERT(NULL != fAtlas); |