/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.cpp | 153 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()
|
D | Bitmap.h | 87 SkAlphaType alphaType, 99 void setAlphaType(SkAlphaType alphaType);
|
D | ImageDecoder.cpp | 312 info.fAlphaType = mCodec->codec()->getInfo().alphaType(); in getCurrentFrameInfo()
|
/frameworks/base/libs/hwui/utils/ |
D | Color.cpp | 38 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/ |
D | AutoBackendTexture.h | 98 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,
|
D | AutoBackendTexture.cpp | 85 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()
|
D | SkiaGLRenderEngine.cpp | 1075 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/ |
D | android_bitmap.cpp | 87 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/ |
D | Bitmap.cpp | 94 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 …]
|
D | ImageDecoder.cpp | 406 SkAlphaType newAlphaType = bm.alphaType(); in ImageDecoder_nDecodeBitmap() 423 if (newAlphaType != bm.alphaType()) { in ImageDecoder_nDecodeBitmap()
|
D | BitmapFactory.cpp | 352 SkAlphaType alphaType = codec->computeOutputAlphaType(requireUnpremultiplied); in doDecode() local 355 decodeColorType, alphaType, decodeColorSpace); in doDecode()
|
D | Graphics.cpp | 668 mRecycledBitmap->setAlphaType(bitmap->alphaType()); in allocPixelRef()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | LayerDrawable.cpp | 201 .undoPremultipliedAlpha = layerImage->alphaType() == kPremul_SkAlphaType, in DrawLayer()
|
/frameworks/base/libs/hwui/ |
D | HardwareBitmapUploader.cpp | 441 bitmap.alphaType(), Bitmap::computePalette(bitmap)); in allocateHardwareBitmap()
|
/frameworks/base/native/graphics/jni/ |
D | imagedecoder.cpp | 313 switch (toDecoder(info)->mCodec->getInfo().alphaType()) { in AImageDecoderHeaderInfo_getAlphaFlags()
|