| Index: samplecode/SampleFatBits.cpp
|
| diff --git a/samplecode/SampleFatBits.cpp b/samplecode/SampleFatBits.cpp
|
| index c6fc67f3cc263ade06d8d9b42f55c0cf66832e93..8b486bd016ce857ba0564dfebad97446e2d5cfe8 100644
|
| --- a/samplecode/SampleFatBits.cpp
|
| +++ b/samplecode/SampleFatBits.cpp
|
| @@ -106,9 +106,7 @@ public:
|
| fInverse.setScale(SK_Scalar1 / zoom, SK_Scalar1 / zoom);
|
| fShader->setLocalMatrix(fMatrix);
|
|
|
| - SkImageInfo info = {
|
| - width, height, kPMColor_SkColorType, kPremul_SkAlphaType
|
| - };
|
| + SkImageInfo info = SkImageInfo::MakeN32Premul(width, height);
|
| fMinSurface.reset(SkSurface::NewRaster(info));
|
| info.fWidth *= zoom;
|
| info.fHeight *= zoom;
|
|
|