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/SampleRegion.cpp b/samplecode/SampleRegion.cpp index c29f090..54858de 100644 --- a/samplecode/SampleRegion.cpp +++ b/samplecode/SampleRegion.cpp
@@ -20,8 +20,7 @@ int height = 100; SkBitmap bitmap; - bitmap.setConfig(SkBitmap::kA8_Config, width*2, height*2); - bitmap.allocPixels(); + bitmap.allocPixels(SkImageInfo::MakeA8(width*2, height*2)); bitmap.eraseColor(SK_ColorTRANSPARENT); SkScalar dx = 20;