Home | History | Annotate | Download | only in graphics

Lines Matching refs:alphaType

105             return bitmap.alphaType() == kPremul_SkAlphaType ? FromColor_D32 : FromColor_D32_Raw;
107 return bitmap.alphaType() == kPremul_SkAlphaType ? FromColor_D4444 :
265 switch (src.alphaType()) {
276 switch (src.alphaType()) {
292 switch (src.alphaType()) {
407 SkAlphaType alphaType;
409 && bitmap->alphaType() == kOpaque_SkAlphaType) {
412 alphaType = kOpaque_SkAlphaType;
415 alphaType = requestPremul ? kPremul_SkAlphaType : kUnpremul_SkAlphaType;
417 bitmap->setInfo(SkImageInfo::Make(width, height, colorType, alphaType));
419 // its alphatype), so it would make more sense from Skia's perspective to create a
423 // Use the updated from the SkBitmap, which may have corrected an invalid alphatype.
430 // colortype and alphatype) has changed.
507 if (bitmap->alphaType() == kPremul_SkAlphaType) {
563 const SkAlphaType alphaType = (SkAlphaType)p->readInt32();
580 if (!bitmap->setInfo(SkImageInfo::Make(width, height, colorType, alphaType), rowBytes)) {
643 p->writeInt32(bitmap->alphaType());