Home
last modified time | relevance | path

Searched refs:alphaType (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/libs/hwui/hwui/
DBitmap.cpp149 sk_sp<SkColorSpace> colorSpace, SkAlphaType alphaType, in createFrom() argument
154 colorType, alphaType, colorSpace); in createFrom()
202 SkAlphaType alphaType; in validateAlpha() local
204 !SkColorTypeValidateAlphaType(info.colorType(), info.alphaType(), &alphaType), in validateAlpha()
206 return info.makeAlphaType(alphaType); in validateAlpha()
253 mImage = SkImage::MakeFromAHardwareBuffer(buffer, mInfo.alphaType(), mInfo.refColorSpace()); in Bitmap()
316 void Bitmap::setAlphaType(SkAlphaType alphaType) { in setAlphaType() argument
317 if (!SkColorTypeValidateAlphaType(info().colorType(), alphaType, &alphaType)) { in setAlphaType()
321 mInfo = mInfo.makeAlphaType(alphaType); in setAlphaType()
429 (int)info.alphaType()); in computePalette()
DBitmap.h87 SkAlphaType alphaType,
99 void setAlphaType(SkAlphaType alphaType);
DImageDecoder.cpp311 info.fAlphaType = mCodec->codec()->getInfo().alphaType(); in getCurrentFrameInfo()
/frameworks/native/libs/renderengine/skia/
DAutoBackendTexture.h98 sk_sp<SkImage> makeImage(ui::Dataspace dataspace, SkAlphaType alphaType, in makeImage() argument
100 return mTexture->makeImage(dataspace, alphaType, context); in makeImage()
133 sk_sp<SkImage> makeImage(ui::Dataspace dataspace, SkAlphaType alphaType,
DAutoBackendTexture.cpp85 sk_sp<SkImage> AutoBackendTexture::makeImage(ui::Dataspace dataspace, SkAlphaType alphaType, in makeImage() argument
94 if (alphaType == kOpaque_SkAlphaType) { in makeImage()
102 alphaType, toSkColorSpace(dataspace), releaseImageProc, this); in makeImage()
DSkiaGLRenderEngine.cpp1034 const auto alphaType = useIsOpaqueWorkaround ? kPremul_SkAlphaType in drawLayers() local
1038 sk_sp<SkImage> image = imageTextureRef->makeImage(layerDataspace, alphaType, grContext); in drawLayers()
/frameworks/base/libs/hwui/utils/
DColor.cpp38 SkAlphaType alphaType = kOpaque_SkAlphaType; in createImageInfo() local
42 alphaType = kPremul_SkAlphaType; in createImageInfo()
46 alphaType = kOpaque_SkAlphaType; in createImageInfo()
50 alphaType = kOpaque_SkAlphaType; in createImageInfo()
54 alphaType = kPremul_SkAlphaType; in createImageInfo()
58 alphaType = kPremul_SkAlphaType; in createImageInfo()
64 return SkImageInfo::Make(width, height, colorType, alphaType, colorSpace); in createImageInfo()
/frameworks/base/libs/hwui/apex/
Dandroid_bitmap.cpp83 switch (info.alphaType()) { in getAlphaFlags()
256 auto alphaType = getAlphaType(info); in ABitmap_compress() local
257 if (alphaType == kUnknown_SkAlphaType) { in ABitmap_compress()
284 SkImageInfo::Make(info->width, info->height, colorType, alphaType, std::move(cs)); in ABitmap_compress()
/frameworks/base/libs/hwui/jni/
DBitmap.cpp94 void setAlphaType(SkAlphaType alphaType) { in setAlphaType() argument
96 mBitmap->setAlphaType(alphaType); in setAlphaType()
182 SkASSERT(info.alphaType() != kUnpremul_SkAlphaType); in assert_premultiplied()
184 SkASSERT(info.alphaType() != kPremul_SkAlphaType); in assert_premultiplied()
453 SkAlphaType alphaType; in Bitmap_reconfigure() local
455 && bitmap->info().alphaType() == kOpaque_SkAlphaType) { in Bitmap_reconfigure()
458 alphaType = kOpaque_SkAlphaType; in Bitmap_reconfigure()
461 alphaType = requestPremul ? kPremul_SkAlphaType : kUnpremul_SkAlphaType; in Bitmap_reconfigure()
463 bitmap->bitmap().reconfigure(SkImageInfo::Make(width, height, colorType, alphaType, in Bitmap_reconfigure()
531 if (bitmap->info().alphaType() == kPremul_SkAlphaType) { in Bitmap_isPremultiplied()
[all …]
DImageDecoder.cpp406 SkAlphaType newAlphaType = bm.alphaType(); in ImageDecoder_nDecodeBitmap()
423 if (newAlphaType != bm.alphaType()) { in ImageDecoder_nDecodeBitmap()
DBitmapFactory.cpp352 SkAlphaType alphaType = codec->computeOutputAlphaType(requireUnpremultiplied); in doDecode() local
355 decodeColorType, alphaType, decodeColorSpace); in doDecode()
DGraphics.cpp670 mRecycledBitmap->setAlphaType(bitmap->alphaType()); in allocPixelRef()
/frameworks/base/libs/hwui/
DHardwareBitmapUploader.cpp416 bitmap.alphaType(), Bitmap::computePalette(bitmap)); in allocateHardwareBitmap()
/frameworks/base/native/graphics/jni/
Dimagedecoder.cpp309 switch (toDecoder(info)->mCodec->getInfo().alphaType()) { in AImageDecoderHeaderInfo_getAlphaFlags()