Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/hwui/
DBitmap.cpp137 sk_sp<SkColorSpace> colorSpace, SkAlphaType alphaType, in createFrom() argument
140 colorType, alphaType, colorSpace); in createFrom()
175 SkAlphaType alphaType; in validateAlpha() local
177 !SkColorTypeValidateAlphaType(info.colorType(), info.alphaType(), &alphaType), in validateAlpha()
179 return info.makeAlphaType(alphaType); in validateAlpha()
231 mInfo.alphaType(), mInfo.refColorSpace()); in Bitmap()
301 void Bitmap::setAlphaType(SkAlphaType alphaType) { in setAlphaType() argument
302 if (!SkColorTypeValidateAlphaType(info().colorType(), alphaType, &alphaType)) { in setAlphaType()
306 mInfo = mInfo.makeAlphaType(alphaType); in setAlphaType()
410 (int)info.alphaType()); in computePalette()
DBitmap.h77 SkAlphaType alphaType = kPremul_SkAlphaType,
88 void setAlphaType(SkAlphaType alphaType);
/frameworks/base/core/jni/
Dandroid_view_TextureView.cpp76 SkAlphaType alphaType = kOpaque_SkAlphaType; in convertPixelFormat() local
80 alphaType = kPremul_SkAlphaType; in convertPixelFormat()
84 alphaType = kOpaque_SkAlphaType; in convertPixelFormat()
88 alphaType = kPremul_SkAlphaType; in convertPixelFormat()
92 alphaType = kOpaque_SkAlphaType; in convertPixelFormat()
97 return SkImageInfo::Make(buffer.width, buffer.height, colorType, alphaType); in convertPixelFormat()
/frameworks/base/core/jni/android/graphics/
DBitmap.cpp90 void setAlphaType(SkAlphaType alphaType) { in setAlphaType() argument
92 mBitmap->setAlphaType(alphaType); in setAlphaType()
178 SkASSERT(info.alphaType() != kUnpremul_SkAlphaType); in assert_premultiplied()
180 SkASSERT(info.alphaType() != kPremul_SkAlphaType); in assert_premultiplied()
497 SkAlphaType alphaType; in Bitmap_reconfigure() local
499 && bitmap->info().alphaType() == kOpaque_SkAlphaType) { in Bitmap_reconfigure()
502 alphaType = kOpaque_SkAlphaType; in Bitmap_reconfigure()
505 alphaType = requestPremul ? kPremul_SkAlphaType : kUnpremul_SkAlphaType; in Bitmap_reconfigure()
507 bitmap->bitmap().reconfigure(SkImageInfo::Make(width, height, colorType, alphaType, in Bitmap_reconfigure()
616 if (bitmap->info().alphaType() == kPremul_SkAlphaType) { in Bitmap_isPremultiplied()
[all …]
DImageDecoder.cpp215 if (scale && requireUnpremul && kOpaque_SkAlphaType != decodeInfo.alphaType()) { in ImageDecoder_nDecodeBitmap()
220 switch (decodeInfo.alphaType()) { in ImageDecoder_nDecodeBitmap()
247 if (decodeInfo.alphaType() == kOpaque_SkAlphaType && !jpostProcess) { in ImageDecoder_nDecodeBitmap()
427 SkAlphaType newAlphaType = bm.alphaType(); in ImageDecoder_nDecodeBitmap()
444 if (newAlphaType != bm.alphaType()) { in ImageDecoder_nDecodeBitmap()
DBitmapFactory.cpp359 SkAlphaType alphaType = codec->computeOutputAlphaType(requireUnpremultiplied); in doDecode() local
362 decodeColorType, alphaType, decodeColorSpace); in doDecode()
DGraphics.cpp551 mRecycledBitmap->setAlphaType(bitmap->alphaType()); in allocPixelRef()
/frameworks/base/libs/hwui/
DHardwareBitmapUploader.cpp407 bitmap.alphaType(), Bitmap::computePalette(bitmap)); in allocateHardwareBitmap()