/aosp14/frameworks/base/libs/hwui/hwui/ |
H A D | Bitmap.cpp | 194 sk_sp<SkColorSpace> colorSpace, SkAlphaType alphaType, in createFrom() argument 199 colorType, alphaType, colorSpace); in createFrom() 247 SkAlphaType alphaType; in validateAlpha() local 249 !SkColorTypeValidateAlphaType(info.colorType(), info.alphaType(), &alphaType), in validateAlpha() 251 return info.makeAlphaType(alphaType); in validateAlpha() 299 mImage = SkImage::MakeFromAHardwareBuffer(buffer, mInfo.alphaType(), mInfo.refColorSpace()); in Bitmap() 366 void Bitmap::setAlphaType(SkAlphaType alphaType) { in setAlphaType() argument 367 if (!SkColorTypeValidateAlphaType(info().colorType(), alphaType, &alphaType)) { in setAlphaType() 371 mInfo = mInfo.makeAlphaType(alphaType); in setAlphaType() 479 (int)info.alphaType()); in computePalette()
|
H A D | Bitmap.h | 92 SkAlphaType alphaType, 104 void setAlphaType(SkAlphaType alphaType);
|
H A D | ImageDecoder.cpp | 332 info.fAlphaType = mCodec->codec()->getInfo().alphaType(); in getCurrentFrameInfo()
|
/aosp14/frameworks/base/libs/hwui/utils/ |
H A 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()
|
/aosp14/frameworks/base/libs/hwui/apex/ |
H A D | android_bitmap.cpp | 92 switch (info.alphaType()) { in getAlphaFlags() 268 auto alphaType = getAlphaType(info); in ABitmap_compress() local 269 if (alphaType == kUnknown_SkAlphaType) { in ABitmap_compress() 296 SkImageInfo::Make(info->width, info->height, colorType, alphaType, std::move(cs)); in ABitmap_compress()
|
/aosp14/frameworks/base/graphics/java/android/graphics/ |
H A D | MeshSpecification.java | 379 @AlphaType int alphaType) { in make() argument 382 fragmentShader, colorSpace.getNativeInstance(), alphaType); in make() 405 int alphaType); in nativeMakeWithAlpha() argument
|
/aosp14/frameworks/base/libs/hwui/jni/ |
H A D | Bitmap.cpp | 95 void setAlphaType(SkAlphaType alphaType) { in setAlphaType() argument 97 mBitmap->setAlphaType(alphaType); in setAlphaType() 183 SkASSERT(info.alphaType() != kUnpremul_SkAlphaType); in assert_premultiplied() 185 SkASSERT(info.alphaType() != kPremul_SkAlphaType); in assert_premultiplied() 484 SkAlphaType alphaType; in Bitmap_reconfigure() local 486 && bitmap->info().alphaType() == kOpaque_SkAlphaType) { in Bitmap_reconfigure() 489 alphaType = kOpaque_SkAlphaType; in Bitmap_reconfigure() 562 if (bitmap->info().alphaType() == kPremul_SkAlphaType) { in Bitmap_isPremultiplied() 734 const SkAlphaType alphaType = static_cast<SkAlphaType>(p.readInt32()); in Bitmap_createFromParcel() local 846 p.writeInt32(bitmap.alphaType()); in Bitmap_writeToParcel() [all …]
|
H A D | MeshSpecification.cpp | 108 jstring fragmentShader, jlong colorSpace, jint alphaType) { in MakeWithAlpha() argument 116 SkAlphaType(alphaType)); in MakeWithAlpha()
|
H A D | BitmapFactory.cpp | 219 SkAlphaType alphaType = codec->computeOutputAlphaType(false); in decodeGainmap() local 222 alphaType, decodeColorSpace); in decodeGainmap() 490 SkAlphaType alphaType = codec->computeOutputAlphaType(requireUnpremultiplied); in doDecode() local 493 decodeColorType, alphaType, decodeColorSpace); in doDecode()
|
H A D | ImageDecoder.cpp | 439 SkAlphaType newAlphaType = bm.alphaType(); in ImageDecoder_nDecodeBitmap() 456 if (newAlphaType != bm.alphaType()) { in ImageDecoder_nDecodeBitmap()
|
H A D | Gainmap.cpp | 41 if (bitmap->info().alphaType() == kPremul_SkAlphaType) { in getCreateFlags()
|
H A D | Graphics.cpp | 680 mRecycledBitmap->setAlphaType(bitmap->alphaType()); in allocPixelRef() 717 recycledPixels->setAlphaType(mSkiaBitmap->alphaType()); in copyIfNecessary()
|
/aosp14/frameworks/base/libs/hwui/ |
H A D | Tonemapper.cpp | 99 .undoPremultipliedAlpha = source.alphaType() == kPremul_SkAlphaType, in tonemapPaint()
|
H A D | HardwareBitmapUploader.cpp | 446 bitmap.alphaType(), Bitmap::computePalette(bitmap)); in allocateHardwareBitmap()
|
/aosp14/frameworks/base/native/graphics/jni/ |
H A D | imagedecoder.cpp | 323 switch (toDecoder(info)->mCodec->getInfo().alphaType()) { in AImageDecoderHeaderInfo_getAlphaFlags()
|