/frameworks/native/libs/renderengine/skia/compat/ |
D | SkiaBackendTexture.h | 54 virtual sk_sp<SkImage> makeImage(SkAlphaType alphaType, ui::Dataspace dataspace, 69 SkColorType colorTypeForImage(SkAlphaType alphaType) const { in colorTypeForImage() argument 70 if (alphaType == kOpaque_SkAlphaType) { in colorTypeForImage()
|
D | GraphiteBackendTexture.cpp | 71 sk_sp<SkImage> GraphiteBackendTexture::makeImage(SkAlphaType alphaType, ui::Dataspace dataspace, in makeImage() argument 74 const SkColorType colorType = colorTypeForImage(alphaType); in makeImage() 76 SkImages::WrapTexture(mRecorder.get(), mBackendTexture, colorType, alphaType, in makeImage()
|
D | GaneshBackendTexture.cpp | 87 sk_sp<SkImage> GaneshBackendTexture::makeImage(SkAlphaType alphaType, ui::Dataspace dataspace, in makeImage() argument 94 const SkColorType colorType = colorTypeForImage(alphaType); in makeImage() 97 colorType, alphaType, toSkColorSpace(dataspace), in makeImage()
|
D | GaneshBackendTexture.h | 38 sk_sp<SkImage> makeImage(SkAlphaType alphaType, ui::Dataspace dataspace,
|
D | GraphiteBackendTexture.h | 43 sk_sp<SkImage> makeImage(SkAlphaType alphaType, ui::Dataspace dataspace,
|
/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.cpp | 193 sk_sp<SkColorSpace> colorSpace, SkAlphaType alphaType, in createFrom() argument 198 colorType, alphaType, colorSpace); in createFrom() 246 SkAlphaType alphaType; in validateAlpha() local 248 !SkColorTypeValidateAlphaType(info.colorType(), info.alphaType(), &alphaType), in validateAlpha() 250 return info.makeAlphaType(alphaType); in validateAlpha() 298 mImage = SkImages::DeferredFromAHardwareBuffer(buffer, mInfo.alphaType(), 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() 484 (int)info.alphaType()); in computePalette()
|
D | Bitmap.h | 92 SkAlphaType alphaType, 104 void setAlphaType(SkAlphaType alphaType);
|
D | ImageDecoder.cpp | 329 info.fAlphaType = mCodec->codec()->getInfo().alphaType(); in getCurrentFrameInfo()
|
/frameworks/native/libs/renderengine/skia/ |
D | AutoBackendTexture.h | 97 sk_sp<SkImage> makeImage(ui::Dataspace dataspace, SkAlphaType alphaType) { in makeImage() argument 98 return mTexture->makeImage(dataspace, alphaType); in makeImage() 134 sk_sp<SkImage> makeImage(ui::Dataspace dataspace, SkAlphaType alphaType);
|
D | AutoBackendTexture.cpp | 65 sk_sp<SkImage> AutoBackendTexture::makeImage(ui::Dataspace dataspace, SkAlphaType alphaType) { in makeImage() argument 68 sk_sp<SkImage> image = mBackendTexture->makeImage(alphaType, dataspace, releaseImageProc, this); in makeImage()
|
D | SkiaRenderEngine.cpp | 996 const auto alphaType = useIsOpaqueWorkaround ? kPremul_SkAlphaType in drawLayersInternal() local 1000 sk_sp<SkImage> image = imageTextureRef->makeImage(layerDataspace, alphaType); in drawLayersInternal()
|
/frameworks/base/libs/hwui/utils/ |
D | Color.cpp | 34 SkAlphaType alphaType = kOpaque_SkAlphaType; in createImageInfo() local 38 alphaType = kPremul_SkAlphaType; in createImageInfo() 42 alphaType = kOpaque_SkAlphaType; in createImageInfo() 46 alphaType = kOpaque_SkAlphaType; in createImageInfo() 50 alphaType = kPremul_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/graphics/java/android/graphics/ |
D | MeshSpecification.java | 379 @AlphaType int alphaType) { in make() argument 382 fragmentShader, colorSpace.getNativeInstance(), alphaType); in make() 405 int alphaType); in nativeMakeWithAlpha() argument
|
/frameworks/base/libs/hwui/apex/ |
D | android_bitmap.cpp | 90 switch (info.alphaType()) { in getAlphaFlags() 266 auto alphaType = getAlphaType(info); in ABitmap_compress() local 267 if (alphaType == kUnknown_SkAlphaType) { in ABitmap_compress() 294 SkImageInfo::Make(info->width, info->height, colorType, alphaType, std::move(cs)); in ABitmap_compress()
|
/frameworks/base/libs/hwui/jni/ |
D | Bitmap.cpp | 89 void setAlphaType(SkAlphaType alphaType) { in setAlphaType() argument 91 mBitmap->setAlphaType(alphaType); in setAlphaType() 177 SkASSERT(info.alphaType() != kUnpremul_SkAlphaType); in assert_premultiplied() 179 SkASSERT(info.alphaType() != kPremul_SkAlphaType); in assert_premultiplied() 478 SkAlphaType alphaType; in Bitmap_reconfigure() local 480 && bitmap->info().alphaType() == kOpaque_SkAlphaType) { in Bitmap_reconfigure() 483 alphaType = kOpaque_SkAlphaType; in Bitmap_reconfigure() 486 alphaType = requestPremul ? kPremul_SkAlphaType : kUnpremul_SkAlphaType; in Bitmap_reconfigure() 488 bitmap->bitmap().reconfigure(SkImageInfo::Make(width, height, colorType, alphaType, in Bitmap_reconfigure() 556 if (bitmap->info().alphaType() == kPremul_SkAlphaType) { in Bitmap_isPremultiplied() [all …]
|
D | MeshSpecification.cpp | 108 jstring fragmentShader, jlong colorSpace, jint alphaType) { in MakeWithAlpha() argument 116 SkAlphaType(alphaType)); in MakeWithAlpha()
|
D | BitmapFactory.cpp | 216 SkAlphaType alphaType = codec->computeOutputAlphaType(false); in decodeGainmap() local 219 alphaType, decodeColorSpace); in decodeGainmap() 487 SkAlphaType alphaType = codec->computeOutputAlphaType(requireUnpremultiplied); in doDecode() local 490 decodeColorType, alphaType, decodeColorSpace); in doDecode()
|
D | ImageDecoder.cpp | 439 SkAlphaType newAlphaType = bm.alphaType(); in ImageDecoder_nDecodeBitmap() 456 if (newAlphaType != bm.alphaType()) { in ImageDecoder_nDecodeBitmap()
|
D | Gainmap.cpp | 41 if (bitmap->info().alphaType() == kPremul_SkAlphaType) { in getCreateFlags()
|
D | Graphics.cpp | 690 mRecycledBitmap->setAlphaType(bitmap->alphaType()); in allocPixelRef() 727 recycledPixels->setAlphaType(mSkiaBitmap->alphaType()); in copyIfNecessary()
|
/frameworks/base/libs/hwui/ |
D | Tonemapper.cpp | 109 .undoPremultipliedAlpha = source.alphaType() == kPremul_SkAlphaType, in tonemapPaint()
|
D | HardwareBitmapUploader.cpp | 456 bitmap.alphaType(), Bitmap::computePalette(bitmap)); in allocateHardwareBitmap()
|
/frameworks/base/native/graphics/jni/ |
D | imagedecoder.cpp | 323 switch (toDecoder(info)->mCodec->getInfo().alphaType()) { in AImageDecoderHeaderInfo_getAlphaFlags()
|