Home
last modified time | relevance | path

Searched refs:newAlphaType (Results 1 - 3 of 3) sorted by relevance

/third_party/skia/include/core/
H A DSkImageInfo.h228 to newAlphaType.
230 Created SkColorInfo contains newAlphaType even if it is incompatible with
233 SkColorInfo makeAlphaType(SkAlphaType newAlphaType) const { in makeAlphaType()
234 return SkColorInfo(this->colorType(), newAlphaType, this->refColorSpace()); in makeAlphaType()
548 with SkAlphaType set to newAlphaType.
550 Created SkImageInfo contains newAlphaType even if it is incompatible with
555 SkImageInfo makeAlphaType(SkAlphaType newAlphaType) const { in makeAlphaType()
556 return Make(fDimensions, fColorInfo.makeAlphaType(newAlphaType)); in makeAlphaType()
/third_party/skia/src/core/
H A DSkBitmap.cpp143 bool SkBitmap::setAlphaType(SkAlphaType newAlphaType) { in setAlphaType() argument
144 if (!SkColorTypeValidateAlphaType(this->colorType(), newAlphaType, &newAlphaType)) { in setAlphaType()
147 if (this->alphaType() != newAlphaType) { in setAlphaType()
148 auto newInfo = fPixmap.info().makeAlphaType(newAlphaType); in setAlphaType()
H A DSkBitmapDevice.cpp202 SkAlphaType* newAlphaType) { in valid_for_bitmap_device()
207 if (newAlphaType) { in valid_for_bitmap_device()
208 *newAlphaType = SkColorTypeIsAlwaysOpaque(info.colorType()) ? kOpaque_SkAlphaType in valid_for_bitmap_device()
201 valid_for_bitmap_device(const SkImageInfo& info, SkAlphaType* newAlphaType) valid_for_bitmap_device() argument

Completed in 4 milliseconds