Index: samplecode/SampleLayerMask.cpp |
diff --git a/samplecode/SampleLayerMask.cpp b/samplecode/SampleLayerMask.cpp |
index 33c06d1cb2c770d63753ad04b337e736c8e1c7d9..b3bbac622fd03fd22293d28b07fe45b5262ea211 100644 |
--- a/samplecode/SampleLayerMask.cpp |
+++ b/samplecode/SampleLayerMask.cpp |
@@ -36,8 +36,7 @@ protected: |
SkBitmap mask; |
int w = SkScalarRoundToInt(r.width()); |
int h = SkScalarRoundToInt(r.height()); |
- mask.setConfig(SkBitmap::kARGB_8888_Config, w, h); |
- mask.allocPixels(); |
+ mask.allocN32Pixels(w, h); |
mask.eraseColor(SK_ColorTRANSPARENT); |
SkCanvas c(mask); |
SkRect bounds = r; |