Index: src/effects/gradients/SkGradientShader.cpp |
diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp |
index 038044d56182cea4962944cb88d97d5e852c371c..ada98590176dad65420c58b5cdf19f5107e6c36d 100644 |
--- a/src/effects/gradients/SkGradientShader.cpp |
+++ b/src/effects/gradients/SkGradientShader.cpp |
@@ -619,7 +619,7 @@ |
if (!gCache->find(storage.get(), size, bitmap)) { |
// force our cahce32pixelref to be built |
(void)cache->getCache32(); |
- bitmap->setInfo(SkImageInfo::MakeN32Premul(kCache32Count, 1)); |
+ bitmap->setConfig(SkImageInfo::MakeN32Premul(kCache32Count, 1)); |
bitmap->setPixelRef(cache->getCache32PixelRef()); |
gCache->add(storage.get(), size, *bitmap); |