diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-20 19:33:52 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-20 19:33:52 +0000 |
commit | d28ba8010c6058bf073f7e815d5b2d7fdf698601 (patch) | |
tree | 25d4f972fc63d9f8a39544bec50d53ee1c29f2ac /gm/fatpathfill.cpp | |
parent | d2cfa7422e2b0928970b3b0fa1abe1d73113fc1d (diff) |
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
Diffstat (limited to 'gm/fatpathfill.cpp')
-rw-r--r-- | gm/fatpathfill.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gm/fatpathfill.cpp b/gm/fatpathfill.cpp index 44988795b4..8b892327a9 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) { |