Chromium Code Reviews| Index: include/core/SkSurface.h |
| =================================================================== |
| --- include/core/SkSurface.h (revision 13479) |
| +++ include/core/SkSurface.h (working copy) |
| @@ -52,10 +52,7 @@ |
| * pixels in SkPMColor format. |
| */ |
| static SkSurface* NewRasterPMColor(int width, int height) { |
| - SkImageInfo info = { |
| - width, height, kPMColor_SkColorType, kPremul_SkAlphaType |
| - }; |
| - return NewRaster(info); |
| + return NewRaster(SkImageInfo::MakeN32Premul(width, height)); |
| } |
| /** |