Index: src/gpu/GrSWMaskHelper.cpp |
diff --git a/src/gpu/GrSWMaskHelper.cpp b/src/gpu/GrSWMaskHelper.cpp |
index eefc951e7e4482c58103389fe113a10e5a1ddf8f..504f5a0a35aa4d912feea21a08613261f98757a5 100644 |
--- a/src/gpu/GrSWMaskHelper.cpp |
+++ b/src/gpu/GrSWMaskHelper.cpp |
@@ -99,8 +99,7 @@ bool GrSWMaskHelper::init(const SkIRect& resultBounds, |
SkIRect bounds = SkIRect::MakeWH(resultBounds.width(), |
resultBounds.height()); |
- fBM.setConfig(SkBitmap::kA8_Config, bounds.fRight, bounds.fBottom); |
- if (!fBM.allocPixels()) { |
+ if (!fBM.allocPixels(SkImageInfo::MakeA8(bounds.fRight, bounds.fBottom))) { |
return false; |
} |
sk_bzero(fBM.getPixels(), fBM.getSafeSize()); |