Home
last modified time | relevance | path

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

/external/skia/include/core/
DSkImageInfo.h188 , fAlphaType(kUnknown_SkAlphaType) in SkImageInfo()
235 SkAlphaType alphaType() const { return fAlphaType; } in alphaType()
242 return SkAlphaTypeIsOpaque(fAlphaType); in isOpaque()
257 return Make(newWidth, newHeight, fColorType, fAlphaType, fColorSpace); in makeWH()
265 return Make(fWidth, fHeight, newColorType, fAlphaType, fColorSpace); in makeColorType()
269 return Make(fWidth, fHeight, fColorType, fAlphaType, std::move(cs)); in makeColorSpace()
296 fColorType == other.fColorType && fAlphaType == other.fAlphaType &&
331 fAlphaType = kUnknown_SkAlphaType; in reset()
341 SkAlphaType fAlphaType; member
348 , fAlphaType(at) in SkImageInfo()
DSkCrossContextImageData.h44 : fAlphaType(alphaType) in SkCrossContextImageData()
59 SkAlphaType fAlphaType; variable
/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.cpp85 const SkAlphaType fAlphaType; member in RepeatTileBench
91 : fColorType(ct), fAlphaType(at) in RepeatTileBench()
112 fBitmap.eraseColor(kOpaque_SkAlphaType == fAlphaType ? SK_ColorWHITE : 0); in onDelayedSetup()
DCodecBench.cpp21 , fAlphaType(alphaType) in CodecBench()
46 .makeAlphaType(fAlphaType) in onDelayedSetup()
DCodecBench.h35 const SkAlphaType fAlphaType; variable
/external/skia/src/core/
DSkImageInfo.cpp34 fAlphaType = (SkAlphaType)((packed >> 8) & kAlphaTypeMask); in unflatten()
35 buffer.validate(alpha_type_is_valid(fAlphaType) && color_type_is_valid(fColorType)); in unflatten()
45 SkASSERT(0 == (fAlphaType & ~kAlphaTypeMask)); in flatten()
47 uint32_t packed = (fAlphaType << 8) | fColorType; in flatten()
DSkSpecialImage.cpp363 , fAlphaType(at) in SkSpecialImage_Gpu()
374 SkAlphaType alphaType() const override { return fAlphaType; } in alphaType()
389 this->uniqueID(), fAlphaType, in onDraw()
459 fAlphaType); in onMakeSubset()
472 return wrap_proxy_in_image(fContext, fTextureProxy, fAlphaType, fColorSpace); in onAsImage()
484 return wrap_proxy_in_image(fContext, std::move(subsetProxy), fAlphaType, fColorSpace); in onAsImage()
489 return wrap_proxy_in_image(fContext, fTextureProxy, fAlphaType, fColorSpace); in onAsImage()
505 const SkAlphaType fAlphaType; member in SkSpecialImage_Gpu
DSkBitmap.cpp1186 SkASSERT(SkAlphaTypeIsValid(fAlphaType)); in validate()
/external/skia/src/gpu/
DGrTextureAdjuster.h43 SkAlphaType alphaType() const override { return fAlphaType; } in alphaType()
58 SkAlphaType fAlphaType; variable
DGrTextureAdjuster.cpp25 , fAlphaType(alphaType) in GrTextureAdjuster()
/external/skia/src/image/
DSkImage_Gpu.h30 SkAlphaType onAlphaType() const override { return fAlphaType; } in onAlphaType()
70 const SkAlphaType fAlphaType; variable
DSkImage_Gpu.cpp45 , fAlphaType(at) in SkImage_Gpu()
62 return SkImageInfo::Make(fProxy->width(), fProxy->height(), ct, fAlphaType, fColorSpace); in onImageInfo()
193 if (kUnpremul_SkAlphaType == rec.fInfo.alphaType() && kPremul_SkAlphaType == fAlphaType) { in onReadPixels()
217 if (kPremul_SkAlphaType == rec.fInfo.alphaType() && kUnpremul_SkAlphaType == fAlphaType) { in onReadPixels()
242 fAlphaType, sContext->asTextureProxyRef(), in onMakeSubset()
486 return new_wrapped_texture_common(context, ccid->fDesc, ccid->fAlphaType, in MakeFromCrossContextImageData()
524 SkAlphaType fAlphaType; member
723 FILL_MEMBER(dtiBufferFiller, fAlphaType, &alphaType); in getDeferredTextureImageData()
802 dti->fColorType, dti->fAlphaType, colorSpace); in MakeFromDeferredTextureImageData()
875 fAlphaType, renderTargetContext->asTextureProxyRef(), in onMakeColorSpace()
/external/skia/tests/
DReadPixelsTest.cpp308 SkAlphaType fAlphaType; member
373 gReadPixelsConfigs[c].fColorType, gReadPixelsConfigs[c].fAlphaType); in test_readpixels()
396 gReadPixelsConfigs[c].fColorType, gReadPixelsConfigs[c].fAlphaType); in test_readpixels()
447 gReadPixelsConfigs[c].fColorType, gReadPixelsConfigs[c].fAlphaType); in test_readpixels_texture()
458 if (gReadPixelsConfigs[c].fAlphaType == kUnpremul_SkAlphaType) { in test_readpixels_texture()
468 gReadPixelsConfigs[c].fColorType, gReadPixelsConfigs[c].fAlphaType); in test_readpixels_texture()
DWritePixelsTest.cpp357 SkAlphaType fAlphaType; in test_write_pixels() member
369 const SkAlphaType at = gSrcConfigs[c].fAlphaType; in test_write_pixels()