| commit | a8c183125f2861067daf432cada06d431a795cd0 | [log] [tgz] |
|---|---|---|
| author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Feb 17 02:55:57 2014 +0000 |
| committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Feb 17 02:55:57 2014 +0000 |
| tree | 202e5fd40988c363c3d83fd049e1b08b90bd683a | |
| parent | 0817a87970849a7e4aa9cfab9ec362b1cc9e3674 [diff] [blame] |
use SkColorType instead of SkBitmap::Config in samplecode BUG=skia: R=reed@google.com Author: reed@chromium.org Review URL: https://codereview.chromium.org/169063002 git-svn-id: http://skia.googlecode.com/svn/trunk@13473 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SampleLayerMask.cpp b/samplecode/SampleLayerMask.cpp index 33c06d1..b3bbac6 100644 --- a/samplecode/SampleLayerMask.cpp +++ b/samplecode/SampleLayerMask.cpp
@@ -36,8 +36,7 @@ SkBitmap mask; int w = SkScalarRoundToInt(r.width()); int h = SkScalarRoundToInt(r.height()); - mask.setConfig(SkBitmap::kARGB_8888_Config, w, h); - mask.allocPixels(); + mask.allocN32Pixels(w, h); mask.eraseColor(SK_ColorTRANSPARENT); SkCanvas c(mask); SkRect bounds = r;