Lines Matching defs:alpha
557 isOpaque() for configs that can't support per-pixel alpha.
938 // if the src has alpha, we have to clear the dst first
1224 static bool GetBitmapAlpha(const SkBitmap& src, uint8_t* SK_RESTRICT alpha,
1226 SkASSERT(alpha != NULL);
1236 // zero out the alpha buffer and return
1238 memset(alpha, 0, w);
1239 alpha += alphaRowBytes;
1247 memcpy(alpha, s, w);
1249 alpha += alphaRowBytes;
1255 alpha[x] = SkGetPackedA32(s[x]);
1258 alpha += alphaRowBytes;
1264 alpha[x] = SkPacked4444ToA32(s[x]);
1267 alpha += alphaRowBytes;
1276 alpha[x] = SkGetPackedA32(table[s[x]]);
1279 alpha += alphaRowBytes;
1283 } else { // src is opaque, so just fill alpha[] with 0xFF
1284 memset(alpha, 0xFF, h * alphaRowBytes);
1320 // Allocation of pixels for alpha bitmap failed.
1321 SkDebugf("extractAlpha failed to allocate (%d,%d) alpha bitmap\n",
1344 // Allocation of pixels for alpha bitmap failed.
1345 SkDebugf("extractAlpha failed to allocate (%d,%d) alpha bitmap\n",