Lines Matching refs:hasAlpha
90 bool getBitmapColorType(png_structp, png_infop, SkColorType*, bool* hasAlpha,
301 bool hasAlpha = false; in onDecode() local
304 if (!this->getBitmapColorType(png_ptr, info_ptr, &colorType, &hasAlpha, &theTranspColor)) { in onDecode()
328 decodePalette(png_ptr, info_ptr, bitDepth, &hasAlpha, &reallyHasAlpha, &colorTable); in onDecode()
387 } else if (hasAlpha) { in onDecode()
715 static transform_scanline_proc choose_proc(SkColorType ct, bool hasAlpha) { in choose_proc() argument
719 hasAlpha = false; // we store false in the table entries for kIndex8 in choose_proc()
736 if (gMap[i].fColorType == ct && gMap[i].fHasAlpha == hasAlpha) { in choose_proc()
768 png_byte* SK_RESTRICT trans, bool hasAlpha) { in pack_palette() argument
773 if (hasAlpha) { in pack_palette()
821 const bool& hasAlpha, int colorType,
849 const bool hasAlpha = !bitmap->isOpaque(); in onEncode() local
880 if (hasAlpha) { in onEncode()
905 return doEncode(stream, *bitmap, hasAlpha, colorType, bitDepth, ct, sig_bit); in onEncode()
909 const bool& hasAlpha, int colorType, in doEncode() argument
957 int numTrans = pack_palette(ct, paletteColors, trans, hasAlpha); in doEncode()
971 transform_scanline_proc proc = choose_proc(ct, hasAlpha); in doEncode()