Index: gm/shadertext2.cpp |
diff --git a/gm/shadertext2.cpp b/gm/shadertext2.cpp |
index dcff3c69bd6f38f76d74d16a3e8ef0e92efa169e..1e6ae5ca2cbc52a3945a339e69626ce9e0cf2f9d 100644 |
--- a/gm/shadertext2.cpp |
+++ b/gm/shadertext2.cpp |
@@ -11,8 +11,8 @@ |
namespace skiagm { |
-static void makebm(SkBitmap* bm, SkBitmap::Config config, int w, int h) { |
- bm->allocConfigPixels(config, w, h); |
+static void makebm(SkBitmap* bm, int w, int h) { |
+ bm->allocN32Pixels(w, h); |
bm->eraseColor(SK_ColorTRANSPARENT); |
SkCanvas canvas(*bm); |
@@ -92,7 +92,7 @@ protected: |
static SkBitmap bmp; |
if (bmp.isNull()) { |
- makebm(&bmp, SkBitmap::kARGB_8888_Config, kPointSize / 2, kPointSize / 2); |
+ makebm(&bmp, kPointSize / 2, kPointSize / 2); |
} |
SkAutoTUnref<SkShader> shader(SkShader::CreateBitmapShader(bmp, |