| 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/SampleMipMap.cpp b/samplecode/SampleMipMap.cpp index 3cfeeb7..a9804ac 100644 --- a/samplecode/SampleMipMap.cpp +++ b/samplecode/SampleMipMap.cpp
@@ -14,8 +14,7 @@ static SkBitmap createBitmap(int n) { SkBitmap bitmap; - bitmap.setConfig(SkBitmap::kARGB_8888_Config, n, n); - bitmap.allocPixels(); + bitmap.allocN32Pixels(n, n); bitmap.eraseColor(SK_ColorTRANSPARENT); SkCanvas canvas(bitmap);