diff options
author | jvanverth <jvanverth@google.com> | 2014-06-24 11:06:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-06-24 11:06:02 -0700 |
commit | 8a243376d6f6c4561c713a8fae87af5917461872 (patch) | |
tree | 2beffe8c0308c4713a274759c2b2c904a94ee7aa /src/utils | |
parent | 40684ba95f8b99e3e690efe2cc857251a5f4ad6b (diff) |
Another iOS fix for SampleApp.
R=caryclark@google.com
Author: jvanverth@google.com
Review URL: https://codereview.chromium.org/353683003
Diffstat (limited to 'src/utils')
-rwxr-xr-x | src/utils/ios/SkImageDecoder_iOS.mm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/ios/SkImageDecoder_iOS.mm b/src/utils/ios/SkImageDecoder_iOS.mm index 5e4261ff1d..021fa25309 100755 --- a/src/utils/ios/SkImageDecoder_iOS.mm +++ b/src/utils/ios/SkImageDecoder_iOS.mm @@ -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; } |