Home
last modified time | relevance | path

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

/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 = kOpaque_SkAlphaType; in convertPixelFormat()
93 return SkImageInfo::Make(buffer.width, buffer.height, colorType, alphaType); in convertPixelFormat()
Dandroid_view_SurfaceControl.cpp155 SkAlphaType alphaType; in nativeScreenshotBitmap() local
159 alphaType = kOpaque_SkAlphaType; in nativeScreenshotBitmap()
164 alphaType = kPremul_SkAlphaType; in nativeScreenshotBitmap()
169 alphaType = kOpaque_SkAlphaType; in nativeScreenshotBitmap()
178 colorType, alphaType); in nativeScreenshotBitmap()
/frameworks/base/core/jni/android/graphics/
DBitmap.cpp66 SkAlphaType alphaType; in reconfigure() local
68 newInfo.colorType(), newInfo.alphaType(), &alphaType), in reconfigure()
78 changeAlphaType(alphaType); in reconfigure()
262 void Bitmap::setAlphaType(SkAlphaType alphaType) { in setAlphaType() argument
263 if (!SkColorTypeValidateAlphaType(info().colorType(), alphaType, &alphaType)) { in setAlphaType()
267 mPixelRef->changeAlphaType(alphaType); in setAlphaType()
484 return bitmap.alphaType() == kPremul_SkAlphaType ? FromColor_D32 : FromColor_D32_Raw; in ChooseFromColorProc()
486 return bitmap.alphaType() == kPremul_SkAlphaType ? FromColor_D4444 : in ChooseFromColorProc()
652 switch (src.alphaType()) { in ChooseToColorProc()
663 switch (src.alphaType()) { in ChooseToColorProc()
[all …]
DBitmap.h74 void setAlphaType(SkAlphaType alphaType);
DBitmapFactory.cpp386 SkAlphaType alphaType = codec->computeOutputAlphaType(requireUnpremultiplied); in doDecode() local
389 alphaType); in doDecode()
484 scaledColorType, decodingBitmap.alphaType())); in doDecode()
DGraphics.cpp403 SkASSERT(info.alphaType() != kUnpremul_SkAlphaType); in assert_premultiplied()
405 SkASSERT(info.alphaType() != kPremul_SkAlphaType); in assert_premultiplied()
725 mRecycledBitmap->setAlphaType(bitmap->alphaType()); in allocPixelRef()
/frameworks/base/libs/hwui/
DAssetAtlas.cpp118 texture->blend = !SkAlphaTypeIsOpaque(pixelRef->info().alphaType()); in createEntries()
DTexture.cpp241 bitmap.alphaType())); in upload()