Lines Matching refs:hasAlpha
106 SkBitmap::Config *config, bool *hasAlpha,
325 bool hasAlpha = false;
328 if (!this->getBitmapConfig(png_ptr, info_ptr, &config, &hasAlpha, &theTranspColor)) {
354 decodePalette(png_ptr, info_ptr, &hasAlpha, &reallyHasAlpha, &colorTable);
407 } else if (hasAlpha) {
794 bool hasAlpha = false;
797 if (!this->getBitmapConfig(png_ptr, info_ptr, &config, &hasAlpha, &theTranspColor)) {
816 decodePalette(png_ptr, info_ptr, &hasAlpha, &reallyHasAlpha, &colorTable);
898 } else if (hasAlpha) {
1010 bool hasAlpha) {
1014 hasAlpha = false; // we store false in the table entries for kIndex8
1031 if (gMap[i].fConfig == config && gMap[i].fHasAlpha == hasAlpha) {
1054 /* Pack palette[] with the corresponding colors, and if hasAlpha is true, also
1055 pack trans[] and return the number of trans[] entries written. If hasAlpha
1063 png_byte* SK_RESTRICT trans, bool hasAlpha) {
1069 if (hasAlpha) {
1117 const bool& hasAlpha, int colorType,
1128 const bool hasAlpha = !bitmap.isOpaque();
1159 if (hasAlpha) {
1184 return doEncode(stream, bitmap, hasAlpha, colorType,
1189 const bool& hasAlpha, int colorType,
1237 int numTrans = pack_palette(ct, paletteColors, trans, hasAlpha);
1250 transform_scanline_proc proc = choose_proc(config, hasAlpha);