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