/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.cpp | 149 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()
|
D | Bitmap.h | 87 SkAlphaType alphaType, 99 void setAlphaType(SkAlphaType alphaType);
|
D | ImageDecoder.cpp | 311 info.fAlphaType = mCodec->codec()->getInfo().alphaType(); in getCurrentFrameInfo()
|
/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 | 1034 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/ |
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() 64 return SkImageInfo::Make(width, height, colorType, alphaType, colorSpace); in createImageInfo()
|
/frameworks/base/libs/hwui/apex/ |
D | android_bitmap.cpp | 83 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/ |
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 | 670 mRecycledBitmap->setAlphaType(bitmap->alphaType()); in allocPixelRef()
|
/frameworks/base/libs/hwui/ |
D | HardwareBitmapUploader.cpp | 416 bitmap.alphaType(), Bitmap::computePalette(bitmap)); in allocateHardwareBitmap()
|
/frameworks/base/native/graphics/jni/ |
D | imagedecoder.cpp | 309 switch (toDecoder(info)->mCodec->getInfo().alphaType()) { in AImageDecoderHeaderInfo_getAlphaFlags()
|