Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/hwui/
DBitmap.cpp153 sk_sp<SkColorSpace> colorSpace, SkAlphaType alphaType, in createFrom() argument
158 colorType, alphaType, colorSpace); in createFrom()
206 SkAlphaType alphaType; in validateAlpha() local
208 !SkColorTypeValidateAlphaType(info.colorType(), info.alphaType(), &alphaType), in validateAlpha()
210 return info.makeAlphaType(alphaType); in validateAlpha()
257 mImage = SkImage::MakeFromAHardwareBuffer(buffer, mInfo.alphaType(), mInfo.refColorSpace()); in Bitmap()
320 void Bitmap::setAlphaType(SkAlphaType alphaType) { in setAlphaType() argument
321 if (!SkColorTypeValidateAlphaType(info().colorType(), alphaType, &alphaType)) { in setAlphaType()
325 mInfo = mInfo.makeAlphaType(alphaType); in setAlphaType()
433 (int)info.alphaType()); in computePalette()
DBitmap.h87 SkAlphaType alphaType,
99 void setAlphaType(SkAlphaType alphaType);
DImageDecoder.cpp312 info.fAlphaType = mCodec->codec()->getInfo().alphaType(); in getCurrentFrameInfo()
/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()
62 alphaType = kPremul_SkAlphaType; in createImageInfo()
68 return SkImageInfo::Make(width, height, colorType, alphaType, colorSpace); in createImageInfo()
/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.cpp1075 const auto alphaType = useIsOpaqueWorkaround ? kPremul_SkAlphaType in drawLayersInternal() local
1079 sk_sp<SkImage> image = imageTextureRef->makeImage(layerDataspace, alphaType, grContext); in drawLayersInternal()
/frameworks/base/libs/hwui/apex/
Dandroid_bitmap.cpp87 switch (info.alphaType()) { in getAlphaFlags()
263 auto alphaType = getAlphaType(info); in ABitmap_compress() local
264 if (alphaType == kUnknown_SkAlphaType) { in ABitmap_compress()
291 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.cpp668 mRecycledBitmap->setAlphaType(bitmap->alphaType()); in allocPixelRef()
/frameworks/base/libs/hwui/pipeline/skia/
DLayerDrawable.cpp201 .undoPremultipliedAlpha = layerImage->alphaType() == kPremul_SkAlphaType, in DrawLayer()
/frameworks/base/libs/hwui/
DHardwareBitmapUploader.cpp441 bitmap.alphaType(), Bitmap::computePalette(bitmap)); in allocateHardwareBitmap()
/frameworks/base/native/graphics/jni/
Dimagedecoder.cpp313 switch (toDecoder(info)->mCodec->getInfo().alphaType()) { in AImageDecoderHeaderInfo_getAlphaFlags()