From dac522589e9395b4654a1a708f1bd971f37f95a5 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Mon, 17 Feb 2014 21:21:46 +0000 Subject: replace SkBitmap::Config with SkColorType in gms add helper installMaskPixels() to SkBitmap BUG=skia: R=halcanary@google.com Author: reed@google.com Review URL: https://codereview.chromium.org/169913003 git-svn-id: http://skia.googlecode.com/svn/trunk@13482 2bbb7eff-a529-9590-31e7-b0007b416f81 --- samplecode/SampleAAClip.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'samplecode/SampleAAClip.cpp') diff --git a/samplecode/SampleAAClip.cpp b/samplecode/SampleAAClip.cpp index 5419f68ed1..a1ee67b75f 100644 --- a/samplecode/SampleAAClip.cpp +++ b/samplecode/SampleAAClip.cpp @@ -46,9 +46,7 @@ static void drawClip(SkCanvas* canvas, const SkAAClip& clip) { clip.copyToMask(&mask); SkAutoMaskFreeImage amfi(mask.fImage); - bm.installPixels(SkImageInfo::MakeA8(mask.fBounds.width(), - mask.fBounds.height()), - mask.fImage, mask.fRowBytes, NULL, NULL); + bm.installMaskPixels(mask); SkPaint paint; canvas->drawBitmap(bm, -- cgit v1.2.3