Lines Matching defs:alphaType
65 SkAlphaType alphaType;
67 newInfo.colorType(), newInfo.alphaType(), &alphaType),
77 changeAlphaType(alphaType);
261 void Bitmap::setAlphaType(SkAlphaType alphaType) {
262 if (!SkColorTypeValidateAlphaType(info().colorType(), alphaType, &alphaType)) {
266 mPixelRef->changeAlphaType(alphaType);
483 return bitmap.alphaType() == kPremul_SkAlphaType ? FromColor_D32 : FromColor_D32_Raw;
485 return bitmap.alphaType() == kPremul_SkAlphaType ? FromColor_D4444 :
651 switch (src.alphaType()) {
662 switch (src.alphaType()) {
678 switch (src.alphaType()) {
815 SkAlphaType alphaType;
817 && bitmap->info().alphaType() == kOpaque_SkAlphaType) {
820 alphaType = kOpaque_SkAlphaType;
823 alphaType = requestPremul ? kPremul_SkAlphaType : kUnpremul_SkAlphaType;
825 bitmap->reconfigure(SkImageInfo::Make(width, height, colorType, alphaType));
900 if (bitmap->info().alphaType() == kPremul_SkAlphaType) {
957 const SkAlphaType alphaType = (SkAlphaType)p->readInt32();
974 if (!bitmap->setInfo(SkImageInfo::Make(width, height, colorType, alphaType), rowBytes)) {
1091 p->writeInt32(bitmap.alphaType());