Another iOS fix for SampleApp.

R=caryclark@google.com

Author: jvanverth@google.com

Review URL: https://codereview.chromium.org/353683003
This commit is contained in:
jvanverth 2014-06-24 11:06:02 -07:00 committed by Commit bot
parent 40684ba95f
commit 8a243376d6

View File

@ -29,8 +29,7 @@ bool SkImageDecoder_iOS::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) {
const int width = uimage.size.width;
const int height = uimage.size.height;
SkColorType ct = SkBitmapConfigToColorType(SkBitmap::kARGB_8888_Config);
bm->setInfo(SkImageInfo::Make(width, height, ct, kPremul_SkAlphaType), 0);
bm->setInfo(SkImageInfo::MakeN32(width, height, kPremul_SkAlphaType), 0);
if (SkImageDecoder::kDecodeBounds_Mode == mode) {
return true;
}