Searched refs:alphaType (Results 1 - 25 of 57) sorted by relevance

123

/external/chromium_org/third_party/skia/include/core/
H A DSkColorTable.h30 SkAlphaType alphaType = kPremul_SkAlphaType);
33 SkAlphaType alphaType() const { return (SkAlphaType)fAlphaType; } function in class:SkColorTable
36 return SkAlphaTypeIsOpaque(this->alphaType());
/external/chromium_org/third_party/skia/src/core/
H A DSkImageInfo.cpp12 static bool alpha_type_is_valid(SkAlphaType alphaType) { argument
13 return (alphaType >= 0) && (alphaType <= kLastEnum_SkAlphaType);
H A DSkConfig8888.cpp154 dstPI.fAlphaType = dstInfo.alphaType();
160 srcPI.fAlphaType = srcInfo.alphaType();
176 if (srcInfo.alphaType() != dstInfo.alphaType()) {
195 if (srcInfo.alphaType() == kUnpremul_SkAlphaType) {
232 if (dstInfo.alphaType() == kUnpremul_SkAlphaType) {
H A DSkBitmap.cpp155 static bool validate_alphaType(SkColorType colorType, SkAlphaType alphaType, argument
159 alphaType = kIgnore_SkAlphaType;
162 if (kUnpremul_SkAlphaType == alphaType) {
163 alphaType = kPremul_SkAlphaType;
170 if (kIgnore_SkAlphaType == alphaType) {
175 alphaType = kOpaque_SkAlphaType;
181 *canonical = alphaType;
224 SkAlphaType alphaType) {
226 return this->setInfo(SkImageInfo::Make(width, height, ct, alphaType), rowBytes);
230 bool SkBitmap::setAlphaType(SkAlphaType alphaType) { argument
223 setConfig(Config config, int width, int height, size_t rowBytes, SkAlphaType alphaType) argument
[all...]
/external/skia/include/core/
H A DSkColorTable.h30 SkAlphaType alphaType = kPremul_SkAlphaType);
33 SkAlphaType alphaType() const { return (SkAlphaType)fAlphaType; } function in class:SkColorTable
36 return SkAlphaTypeIsOpaque(this->alphaType());
/external/skia/src/core/
H A DSkImageInfo.cpp12 static bool alpha_type_is_valid(SkAlphaType alphaType) { argument
13 return (alphaType >= 0) && (alphaType <= kLastEnum_SkAlphaType);
H A DSkBitmap.cpp155 static bool validate_alphaType(SkColorType colorType, SkAlphaType alphaType, argument
159 alphaType = kIgnore_SkAlphaType;
162 if (kUnpremul_SkAlphaType == alphaType) {
163 alphaType = kPremul_SkAlphaType;
170 if (kIgnore_SkAlphaType == alphaType) {
175 alphaType = kOpaque_SkAlphaType;
181 *canonical = alphaType;
224 SkAlphaType alphaType) {
226 return this->setInfo(SkImageInfo::Make(width, height, ct, alphaType), rowBytes);
230 bool SkBitmap::setAlphaType(SkAlphaType alphaType) { argument
223 setConfig(Config config, int width, int height, size_t rowBytes, SkAlphaType alphaType) argument
[all...]
H A DSkBitmapDevice.cpp32 switch (info.alphaType()) {
40 SkAlphaType canonicalAlphaType = info.alphaType();
179 dstPI.fAlphaType = dstInfo.alphaType();
185 srcPI.fAlphaType = srcInfo.alphaType();
197 if (srcInfo.alphaType() != dstInfo.alphaType()) {
/external/chromium_org/third_party/skia/tools/
H A Dsk_tool_utils.cpp21 SkColorType colorType, SkAlphaType alphaType) {
27 info.fAlphaType = alphaType;
20 write_pixels(SkCanvas* canvas, const SkBitmap& bitmap, int x, int y, SkColorType colorType, SkAlphaType alphaType) argument
/external/skia/tools/
H A Dsk_tool_utils.cpp21 SkColorType colorType, SkAlphaType alphaType) {
27 info.fAlphaType = alphaType;
20 write_pixels(SkCanvas* canvas, const SkBitmap& bitmap, int x, int y, SkColorType colorType, SkAlphaType alphaType) argument
/external/chromium_org/cc/resources/
H A Dui_resource_bitmap.cc45 SkAlphaType alphaType = is_opaque ? kOpaque_SkAlphaType : kPremul_SkAlphaType; local
47 SkImageInfo::MakeN32(size.width(), size.height(), alphaType);
/external/chromium_org/third_party/skia/src/images/
H A DSkImageDecoder_ktx.cpp80 SkAlphaType alphaType = kOpaque_SkAlphaType; local
83 alphaType = kUnpremul_SkAlphaType;
90 alphaType = kPremul_SkAlphaType;
95 bm->setInfo(SkImageInfo::MakeN32(sampler.scaledWidth(), sampler.scaledHeight(), alphaType));
163 SkASSERT(bm->alphaType() == kPremul_SkAlphaType);
H A DSkDecodingImageGenerator.cpp191 SkASSERT(check_alpha(info.alphaType(), bm.alphaType()));
193 SkASSERT(check_alpha(info.alphaType(), bitmap.alphaType()));
H A DSkImageDecoder_libpng.cpp328 SkAlphaType alphaType = this->getRequireUnpremultipliedColors() ? local
333 colorType, alphaType));
712 SkAlphaType alphaType = kOpaque_SkAlphaType; local
715 alphaType = kUnpremul_SkAlphaType;
717 alphaType = kPremul_SkAlphaType;
722 (colorStorage, colorCount, alphaType));
970 SkAlphaType alphaType = kOpaque_SkAlphaType; local
973 alphaType = kUnpremul_SkAlphaType;
975 alphaType = kPremul_SkAlphaType;
978 decodedBitmap.setAlphaType(alphaType);
[all...]
/external/skia/src/images/
H A DSkImageDecoder_ktx.cpp80 SkAlphaType alphaType = kOpaque_SkAlphaType; local
83 alphaType = kUnpremul_SkAlphaType;
90 alphaType = kPremul_SkAlphaType;
95 bm->setInfo(SkImageInfo::MakeN32(sampler.scaledWidth(), sampler.scaledHeight(), alphaType));
163 SkASSERT(bm->alphaType() == kPremul_SkAlphaType);
H A DSkDecodingImageGenerator.cpp191 SkASSERT(check_alpha(info.alphaType(), bm.alphaType()));
193 SkASSERT(check_alpha(info.alphaType(), bitmap.alphaType()));
H A DSkImageDecoder_libpng.cpp328 SkAlphaType alphaType = this->getRequireUnpremultipliedColors() ? local
333 colorType, alphaType));
712 SkAlphaType alphaType = kOpaque_SkAlphaType; local
715 alphaType = kUnpremul_SkAlphaType;
717 alphaType = kPremul_SkAlphaType;
722 (colorStorage, colorCount, alphaType));
968 SkAlphaType alphaType = kOpaque_SkAlphaType; local
971 alphaType = kUnpremul_SkAlphaType;
973 alphaType = kPremul_SkAlphaType;
976 decodedBitmap.setAlphaType(alphaType);
[all...]
/external/chromium_org/third_party/skia/src/utils/mac/
H A DSkCreateCGImageRef.cpp76 *info = ComputeCGAlphaInfo_RGBA(bm.alphaType());
80 *info = ComputeCGAlphaInfo_BGRA(bm.alphaType());
257 cg_bitmap_info = ComputeCGAlphaInfo_RGBA(info.alphaType());
261 cg_bitmap_info = ComputeCGAlphaInfo_BGRA(info.alphaType());
/external/skia/src/utils/mac/
H A DSkCreateCGImageRef.cpp76 *info = ComputeCGAlphaInfo_RGBA(bm.alphaType());
80 *info = ComputeCGAlphaInfo_BGRA(bm.alphaType());
257 cg_bitmap_info = ComputeCGAlphaInfo_RGBA(info.alphaType());
261 cg_bitmap_info = ComputeCGAlphaInfo_BGRA(info.alphaType());
/external/chromium_org/third_party/skia/tests/
H A DKtxTest.cpp67 REPORTER_ASSERT(reporter, decodedBitmap.alphaType() == bm8888.alphaType());
120 REPORTER_ASSERT(reporter, decodedBitmap.alphaType() == kPremul_SkAlphaType);
H A DBitmapCopyTest.cpp64 static SkColorTable* init_ctable(SkAlphaType alphaType) { argument
68 return new SkColorTable(colors, SK_ARRAY_COUNT(colors), alphaType);
232 REPORTER_ASSERT(reporter, subset.alphaType() == bitmap.alphaType());
266 REPORTER_ASSERT(reporter, subset.alphaType() == bitmap.alphaType());
/external/skia/tests/
H A DKtxTest.cpp67 REPORTER_ASSERT(reporter, decodedBitmap.alphaType() == bm8888.alphaType());
120 REPORTER_ASSERT(reporter, decodedBitmap.alphaType() == kPremul_SkAlphaType);
H A DBitmapCopyTest.cpp64 static SkColorTable* init_ctable(SkAlphaType alphaType) { argument
68 return new SkColorTable(colors, SK_ARRAY_COUNT(colors), alphaType);
232 REPORTER_ASSERT(reporter, subset.alphaType() == bitmap.alphaType());
266 REPORTER_ASSERT(reporter, subset.alphaType() == bitmap.alphaType());
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
H A DImageBuffer.cpp325 SkAlphaType alphaType = (multiplied == Premultiplied) ? kPremul_SkAlphaType : kUnpremul_SkAlphaType; local
326 SkImageInfo info = SkImageInfo::Make(rect.width(), rect.height(), kRGBA_8888_SkColorType, alphaType);
370 const SkAlphaType alphaType = (multiplied == Premultiplied) ? kPremul_SkAlphaType : kUnpremul_SkAlphaType; local
371 SkImageInfo info = SkImageInfo::Make(sourceRect.width(), sourceRect.height(), kRGBA_8888_SkColorType, alphaType);
/external/chromium_org/third_party/skia/include/gpu/
H A DSkGr.h58 return SkImageInfo2GrPixelConfig(info.colorType(), info.alphaType());

Completed in 3892 milliseconds

123