scope ComputeIsOpaque with SkBitmap

BUG=

Review URL: https://codereview.chromium.org/32653002

git-svn-id: http://skia.googlecode.com/svn/trunk@11879 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2013-10-21 14:31:20 +00:00
parent 9cd697c696
commit e7e29b7815

View File

@ -240,7 +240,7 @@ bool SkImageDecoder_WIC::decodeStream(SkStream* stream, SkBitmap* bm, WICModes w
);
// Note: we don't need to premultiply here since we specified PBGRA
if (ComputeIsOpaque(*bm)) {
if (SkBitmap::ComputeIsOpaque(*bm)) {
bm->setAlphaType(kOpaque_SkAlphaType);
}
}