commit | a8c183125f2861067daf432cada06d431a795cd0 | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Feb 17 02:55:57 2014 +0000 |
committer | [email protected] <[email protected]@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: [email protected] Author: [email protected] 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/SampleWritePixels.cpp b/samplecode/SampleWritePixels.cpp index 04f3484..f7829ea 100644 --- a/samplecode/SampleWritePixels.cpp +++ b/samplecode/SampleWritePixels.cpp
@@ -19,8 +19,7 @@ static void create_bitmap(SkBitmap* bitmap) { const int W = 100; const int H = 100; - bitmap->setConfig(SkBitmap::kARGB_8888_Config, W, H); - bitmap->allocPixels(); + bitmap->allocN32Pixels(W, H); SkCanvas canvas(*bitmap); canvas.drawColor(SK_ColorRED);