aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skhello.cpp
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-20 19:33:52 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-20 19:33:52 +0000
commitd28ba8010c6058bf073f7e815d5b2d7fdf698601 (patch)
tree25d4f972fc63d9f8a39544bec50d53ee1c29f2ac /tools/skhello.cpp
parentd2cfa7422e2b0928970b3b0fa1abe1d73113fc1d (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 'tools/skhello.cpp')
-rw-r--r--tools/skhello.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/skhello.cpp b/tools/skhello.cpp
index bd3174252e..d30849bcfb 100644
--- a/tools/skhello.cpp
+++ b/tools/skhello.cpp
@@ -30,10 +30,7 @@ static void doDraw(SkCanvas* canvas, const SkPaint& paint, const char text[]) {
static bool do_surface(int w, int h, const char path[], const char text[],
const SkPaint& paint) {
- SkImage::Info info = {
- w, h, SkImage::kPMColor_ColorType, SkImage::kPremul_AlphaType
- };
- SkAutoTUnref<SkSurface> surface(SkSurface::NewRaster(info));
+ SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterPMColor(w, h));
doDraw(surface->getCanvas(), paint, text);
SkAutoTUnref<SkImage> image(surface->newImageSnapshot());