Index: samplecode/SampleHairModes.cpp |
diff --git a/samplecode/SampleHairModes.cpp b/samplecode/SampleHairModes.cpp |
index 4168ffd6b42c6b4d027390848230a10c000cc6bb..4aa8e0208fea318fc9aa1e2ce4f3d07fee234a61 100644 |
--- a/samplecode/SampleHairModes.cpp |
+++ b/samplecode/SampleHairModes.cpp |
@@ -62,8 +62,7 @@ static SkScalar drawCell(SkCanvas* canvas, SkXfermode* mode, SkAlpha a0, SkAlpha |
static SkShader* make_bg_shader() { |
SkBitmap bm; |
- bm.setConfig(SkBitmap::kARGB_8888_Config, 2, 2); |
- bm.allocPixels(); |
+ bm.allocN32Pixels(2, 2); |
*bm.getAddr32(0, 0) = *bm.getAddr32(1, 1) = 0xFFFFFFFF; |
*bm.getAddr32(1, 0) = *bm.getAddr32(0, 1) = SkPackARGB32(0xFF, 0xCC, 0xCC, 0xCC); |