Home
last modified time | relevance | path

Searched refs:newAlphaType (Results 1 – 4 of 4) sorted by relevance

/external/skia/src/core/
DSkBitmapDevice.cpp27 SkAlphaType* newAlphaType) { in valid_for_bitmap_device() argument
34 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()
DSkPixelRef.cpp34 SkAlphaType newAlphaType = info.alphaType(); in validate_info() local
35 SkAssertResult(SkColorTypeValidateAlphaType(info.colorType(), info.alphaType(), &newAlphaType)); in validate_info()
36 return info.makeAlphaType(newAlphaType); in validate_info()
DSkBitmap.cpp151 bool SkBitmap::setAlphaType(SkAlphaType newAlphaType) { in setAlphaType() argument
152 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()
/external/skia/include/core/
DSkImageInfo.h247 SkImageInfo makeAlphaType(SkAlphaType newAlphaType) const { in makeAlphaType()
248 return SkImageInfo::Make(fWidth, fHeight, fColorType, newAlphaType, fProfileType); in makeAlphaType()