| Index: gm/shadertext.cpp
|
| diff --git a/gm/shadertext.cpp b/gm/shadertext.cpp
|
| index eccd8cbe12509c423ffa40ff36a1d3795039a4a5..4af5b0d49ddf6bbdd083484b990ef29b624199b5 100644
|
| --- a/gm/shadertext.cpp
|
| +++ b/gm/shadertext.cpp
|
| @@ -12,8 +12,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);
|
| @@ -39,7 +39,7 @@ static SkShader* MakeBitmapShader(SkShader::TileMode tx, SkShader::TileMode ty,
|
| int w, int h) {
|
| static SkBitmap bmp;
|
| if (bmp.isNull()) {
|
| - makebm(&bmp, SkBitmap::kARGB_8888_Config, w/2, h/4);
|
| + makebm(&bmp, w/2, h/4);
|
| }
|
| return SkShader::CreateBitmapShader(bmp, tx, ty);
|
| }
|
|
|