Index: src/fonts/SkGScalerContext.cpp |
diff --git a/src/fonts/SkGScalerContext.cpp b/src/fonts/SkGScalerContext.cpp |
index 551b01c961100a425de458accd9e7ff32220440c..e1ab921337dc1da23e11ca6825acf5a0d4540ce9 100644 |
--- a/src/fonts/SkGScalerContext.cpp |
+++ b/src/fonts/SkGScalerContext.cpp |
@@ -119,9 +119,8 @@ void SkGScalerContext::generateImage(const SkGlyph& glyph) { |
fProxy->getPath(glyph, &path); |
SkBitmap bm; |
- bm.setConfig(SkBitmap::kARGB_8888_Config, glyph.fWidth, glyph.fHeight, |
- glyph.rowBytes()); |
- bm.setPixels(glyph.fImage); |
+ bm.installPixels(SkImageInfo::MakeN32Premul(glyph.fWidth, glyph.fHeight), |
+ glyph.fImage, glyph.rowBytes()); |
bm.eraseColor(0); |
SkCanvas canvas(bm); |