Home
last modified time | relevance | path

Searched refs:fAlphaType (Results 1 – 17 of 17) sorted by relevance

/external/skia/include/core/
DSkImageInfo.h174 , fAlphaType(kUnknown_SkAlphaType) in SkImageInfo()
224 SkAlphaType alphaType() const { return fAlphaType; } in alphaType()
230 return SkAlphaTypeIsOpaque(fAlphaType); in isOpaque()
244 return SkImageInfo::Make(newWidth, newHeight, fColorType, fAlphaType, fProfileType); in makeWH()
252 return SkImageInfo::Make(fWidth, fHeight, newColorType, fAlphaType, fProfileType); in makeColorType()
309 SkAlphaType fAlphaType; member
316 , fAlphaType(at) in SkImageInfo()
/external/skia/src/core/
DSkImageInfo.cpp31 fAlphaType = (SkAlphaType)((packed >> 8) & 0xFF); in unflatten()
34 alpha_type_is_valid(fAlphaType) && in unflatten()
43 SkASSERT(0 == (fAlphaType & ~0xFF)); in flatten()
45 uint32_t packed = (fProfileType << 16) | (fAlphaType << 8) | fColorType; in flatten()
DSkConfig8888.cpp87 AlphaVerb doAlpha = compute_AlphaVerb(fAlphaType, dst->fAlphaType); in convertPixelsTo()
195 dstPI.fAlphaType = dstInfo.alphaType(); in CopyPixels()
201 srcPI.fAlphaType = srcInfo.alphaType(); in CopyPixels()
DSkSpecialImage.cpp249 , fAlphaType(at) { in SkSpecialImage_Gpu()
255 return GrPixelConfigIsOpaque(fTexture->config()) || fAlphaType == kOpaque_SkAlphaType; in isOpaque()
296 const SkAlphaType fAlphaType; member in SkSpecialImage_Gpu
DSkConfig8888.h17 SkAlphaType fAlphaType; member
DSkBitmap.cpp1358 SkASSERT(SkAlphaTypeIsValid(fAlphaType)); in validate()
/external/skia/bench/
DWritePixelsBench.cpp16 , fAlphaType(at) in WritePixelsBench()
57 SkImageInfo info = SkImageInfo::Make(bmp.width(), bmp.height(), fColorType, fAlphaType); in onDraw()
66 SkAlphaType fAlphaType; member in WritePixelsBench
DBitmapBench.cpp75 const SkAlphaType fAlphaType; member in BitmapBench
89 , fAlphaType(at) in BitmapBench()
99 kOpaque_SkAlphaType == fAlphaType ? "" : "_A"); in onGetName()
117 bm.allocPixels(SkImageInfo::MakeN32(W, H, fAlphaType)); in onDelayedSetup()
119 bm.allocPixels(SkImageInfo::Make(W, H, fColorType, fAlphaType)); in onDelayedSetup()
121 bm.eraseColor(kOpaque_SkAlphaType == fAlphaType ? SK_ColorBLACK : 0); in onDelayedSetup()
126 convertToIndex666(bm, &fBitmap, fAlphaType); in onDelayedSetup()
DRepeatTileBench.cpp86 const SkAlphaType fAlphaType; member in RepeatTileBench
92 : fColorType(ct), fAlphaType(at) in RepeatTileBench()
113 fBitmap.eraseColor(kOpaque_SkAlphaType == fAlphaType ? SK_ColorWHITE : 0); in onDelayedSetup()
DCodecBench.cpp21 , fAlphaType(alphaType) in CodecBench()
45 fInfo = codec->getInfo().makeColorType(fColorType).makeAlphaType(fAlphaType); in onDelayedSetup()
DCodecBench.h34 const SkAlphaType fAlphaType; variable
/external/skia/src/image/
DSkImage_Gpu.cpp26 , fAlphaType(at) in SkImage_Gpu()
86 return GrPixelConfigIsOpaque(fTexture->config()) || fAlphaType == kOpaque_SkAlphaType; in isOpaque()
115 if (kUnpremul_SkAlphaType == info.alphaType() && kPremul_SkAlphaType == fAlphaType) { in onReadPixels()
131 if (kPremul_SkAlphaType == info.alphaType() && kUnpremul_SkAlphaType == fAlphaType) { in onReadPixels()
148 return new SkImage_Gpu(desc.fWidth, desc.fHeight, kNeedNewImageUniqueID, fAlphaType, subTx, in onNewSubset()
DSkImage_Gpu.h55 const SkAlphaType fAlphaType; variable
/external/skia/tests/
DReadPixelsTest.cpp273 SkAlphaType fAlphaType; member
337 gReadPixelsConfigs[c].fColorType, gReadPixelsConfigs[c].fAlphaType); in test_readpixels()
416 gReadPixelsConfigs[c].fColorType, gReadPixelsConfigs[c].fAlphaType); in test_readpixels_texture()
426 gReadPixelsConfigs[c].fAlphaType, in test_readpixels_texture()
429 if (gReadPixelsConfigs[c].fAlphaType == kUnpremul_SkAlphaType) { in test_readpixels_texture()
DWritePixelsTest.cpp356 SkAlphaType fAlphaType; in test_write_pixels() member
368 const SkAlphaType at = gSrcConfigs[c].fAlphaType; in test_write_pixels()
/external/skia/src/gpu/
DGrContext.cpp222 srcPI.fAlphaType = kUnpremul_SkAlphaType; in sw_convert_to_premul()
228 dstPI.fAlphaType = kPremul_SkAlphaType; in sw_convert_to_premul()
485 dstPI.fAlphaType = kUnpremul_SkAlphaType; in readSurfacePixels()
491 srcPI.fAlphaType = kPremul_SkAlphaType; in readSurfacePixels()
DSkGr.cpp137 dstPI.fAlphaType = kPremul_SkAlphaType; in build_index8_data()
143 srcPI.fAlphaType = kPremul_SkAlphaType; in build_index8_data()