| Index: gm/image.cpp
|
| diff --git a/gm/image.cpp b/gm/image.cpp
|
| index 93e16b718c4e73ff34fedb41659319223c911130..f5f5228c61073ec1c17e824d3ba9eef948e94c3e 100644
|
| --- a/gm/image.cpp
|
| +++ b/gm/image.cpp
|
| @@ -178,9 +178,7 @@ protected:
|
| // since we draw into this directly, we need to start fresh
|
| sk_bzero(fBuffer, fBufferSize);
|
|
|
| - SkImageInfo info = {
|
| - W, H, kPMColor_SkColorType, kPremul_SkAlphaType
|
| - };
|
| + SkImageInfo info = SkImageInfo::MakeN32Premul(W, H);
|
| SkAutoTUnref<SkSurface> surf0(SkSurface::NewRasterDirect(info, fBuffer, RB));
|
| SkAutoTUnref<SkSurface> surf1(SkSurface::NewRaster(info));
|
| SkAutoTUnref<SkSurface> surf2(SkSurface::NewPicture(info.fWidth, info.fHeight));
|
|
|