aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleFontCache.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-17 02:55:57 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-17 02:55:57 +0000
commita8c183125f2861067daf432cada06d431a795cd0 (patch)
tree202e5fd40988c363c3d83fd049e1b08b90bd683a /samplecode/SampleFontCache.cpp
parent0817a87970849a7e4aa9cfab9ec362b1cc9e3674 (diff)
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
Diffstat (limited to 'samplecode/SampleFontCache.cpp')
-rw-r--r--samplecode/SampleFontCache.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/samplecode/SampleFontCache.cpp b/samplecode/SampleFontCache.cpp
index c5f4457729..77f66b0eff 100644
--- a/samplecode/SampleFontCache.cpp
+++ b/samplecode/SampleFontCache.cpp
@@ -92,8 +92,9 @@ public:
status = pthread_create(&fMThreads[i], NULL, measure_proc, NULL);
SkASSERT(0 == status);
- fBitmaps[i].setConfig(SkBitmap::kRGB_565_Config, 320, 240);
- fBitmaps[i].allocPixels();
+ fBitmaps[i].allocPixels(SkImageInfo::Make(320, 240,
+ kRGB_565_SkColorType,
+ kOpaque_SkAlphaType));
status = pthread_create(&fDThreads[i], NULL, draw_proc, &fBitmaps[i]);
SkASSERT(0 == status);
}