Searched refs:newAlphaType (Results 1 – 4 of 4) sorted by relevance
27 SkAlphaType* newAlphaType) { in valid_for_bitmap_device() argument34 if (newAlphaType) { in valid_for_bitmap_device()35 *newAlphaType = kUnknown_SkAlphaType; in valid_for_bitmap_device()64 if (newAlphaType) { in valid_for_bitmap_device()65 *newAlphaType = canonicalAlphaType; in valid_for_bitmap_device()
34 SkAlphaType newAlphaType = info.alphaType(); in validate_info() local35 SkAssertResult(SkColorTypeValidateAlphaType(info.colorType(), info.alphaType(), &newAlphaType)); in validate_info()36 return info.makeAlphaType(newAlphaType); in validate_info()
151 bool SkBitmap::setAlphaType(SkAlphaType newAlphaType) { in setAlphaType() argument152 if (!SkColorTypeValidateAlphaType(fInfo.colorType(), newAlphaType, &newAlphaType)) { in setAlphaType()155 if (fInfo.alphaType() != newAlphaType) { in setAlphaType()156 fInfo = fInfo.makeAlphaType(newAlphaType); in setAlphaType()158 fPixelRef->changeAlphaType(newAlphaType); in setAlphaType()
247 SkImageInfo makeAlphaType(SkAlphaType newAlphaType) const { in makeAlphaType()248 return SkImageInfo::Make(fWidth, fHeight, fColorType, newAlphaType, fProfileType); in makeAlphaType()