promote SkImage::AlphaType to SkAlphaType
BUG=
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/24130009
git-svn-id: http://skia.googlecode.com/svn/trunk@11421 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/fatpathfill.cpp b/gm/fatpathfill.cpp
index 4498879..8b89232 100644
--- a/gm/fatpathfill.cpp
+++ b/gm/fatpathfill.cpp
@@ -16,13 +16,7 @@
#define REPEAT_LOOP 5
static SkSurface* new_surface(int width, int height) {
- SkImage::Info info = {
- width,
- height,
- SkImage::kPMColor_ColorType,
- SkImage::kPremul_AlphaType
- };
- return SkSurface::NewRaster(info);
+ return SkSurface::NewRasterPMColor(width, height);
}
static void draw_pixel_centers(SkCanvas* canvas) {