Home
last modified time | relevance | path

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

/frameworks/native/libs/renderengine/skia/compat/
DSkiaBackendTexture.h54 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()
DGraphiteBackendTexture.cpp71 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()
DGaneshBackendTexture.cpp87 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()
DGaneshBackendTexture.h38 sk_sp<SkImage> makeImage(SkAlphaType alphaType, ui::Dataspace dataspace,
DGraphiteBackendTexture.h43 sk_sp<SkImage> makeImage(SkAlphaType alphaType, ui::Dataspace dataspace,
/frameworks/base/libs/hwui/hwui/
DBitmap.cpp193 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()
DBitmap.h92 SkAlphaType alphaType,
104 void setAlphaType(SkAlphaType alphaType);
DImageDecoder.cpp329 info.fAlphaType = mCodec->codec()->getInfo().alphaType(); in getCurrentFrameInfo()
/frameworks/native/libs/renderengine/skia/
DAutoBackendTexture.h97 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);
DAutoBackendTexture.cpp65 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()
DSkiaRenderEngine.cpp996 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/
DColor.cpp34 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/
DMeshSpecification.java379 @AlphaType int alphaType) { in make() argument
382 fragmentShader, colorSpace.getNativeInstance(), alphaType); in make()
405 int alphaType); in nativeMakeWithAlpha() argument
/frameworks/base/libs/hwui/apex/
Dandroid_bitmap.cpp90 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/
DBitmap.cpp89 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 …]
DMeshSpecification.cpp108 jstring fragmentShader, jlong colorSpace, jint alphaType) { in MakeWithAlpha() argument
116 SkAlphaType(alphaType)); in MakeWithAlpha()
DBitmapFactory.cpp216 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()
DImageDecoder.cpp439 SkAlphaType newAlphaType = bm.alphaType(); in ImageDecoder_nDecodeBitmap()
456 if (newAlphaType != bm.alphaType()) { in ImageDecoder_nDecodeBitmap()
DGainmap.cpp41 if (bitmap->info().alphaType() == kPremul_SkAlphaType) { in getCreateFlags()
DGraphics.cpp690 mRecycledBitmap->setAlphaType(bitmap->alphaType()); in allocPixelRef()
727 recycledPixels->setAlphaType(mSkiaBitmap->alphaType()); in copyIfNecessary()
/frameworks/base/libs/hwui/
DTonemapper.cpp109 .undoPremultipliedAlpha = source.alphaType() == kPremul_SkAlphaType, in tonemapPaint()
DHardwareBitmapUploader.cpp456 bitmap.alphaType(), Bitmap::computePalette(bitmap)); in allocateHardwareBitmap()
/frameworks/base/native/graphics/jni/
Dimagedecoder.cpp323 switch (toDecoder(info)->mCodec->getInfo().alphaType()) { in AImageDecoderHeaderInfo_getAlphaFlags()