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

123

/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);
42 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, argument
46 alphaType = kIgnore_SkAlphaType;
49 if (kUnpremul_SkAlphaType == alphaType) {
50 alphaType = kPremul_SkAlphaType;
57 if (kIgnore_SkAlphaType == alphaType) {
62 alphaType = kOpaque_SkAlphaType;
68 *canonical = alphaType;
[all...]
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 DSkPixelRef.cpp85 SkAlphaType newAlphaType = info.alphaType();
86 SkAssertResult(SkColorTypeValidateAlphaType(info.colorType(), info.alphaType(), &newAlphaType));
H A DSkBitmap.cpp108 SkAlphaType newAT = info.alphaType();
109 if (!SkColorTypeValidateAlphaType(info.colorType(), info.alphaType(), &newAT)) {
112 // don't look at info.alphaType(), since newAT is the real value...
146 if (fInfo.alphaType() != newAlphaType) {
184 switch (prInfo.alphaType()) {
186 SkASSERT(fInfo.alphaType() == kIgnore_SkAlphaType);
190 SkASSERT(fInfo.alphaType() == kOpaque_SkAlphaType ||
191 fInfo.alphaType() == kPremul_SkAlphaType);
194 SkASSERT(fInfo.alphaType() == kOpaque_SkAlphaType ||
195 fInfo.alphaType()
[all...]
/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());
H A DSkImageInfo.h127 * Return true if alphaType is supported by colorType. If there is a canonical
128 * alphaType for this colorType, return it in canonical.
130 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType,
202 SkAlphaType alphaType() const { return fAlphaType; } function in struct:SkImageInfo
/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/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/third_party/WebKit/Source/platform/graphics/gpu/
H A DAcceleratedImageBufferSurface.cpp55 SkAlphaType alphaType = (Opaque == opacityMode) ? kOpaque_SkAlphaType : kPremul_SkAlphaType;
56 SkImageInfo info = SkImageInfo::MakeN32(size.width(), size.height(), alphaType);
/external/chromium_org/third_party/skia/src/images/
H A DSkDecodingImageGenerator.cpp166 decoder->setRequireUnpremultipliedColors(info.alphaType() == kUnpremul_SkAlphaType);
186 SkASSERT(check_alpha(info.alphaType(), bm.alphaType()));
188 SkASSERT(check_alpha(info.alphaType(), bitmap.alphaType()));
241 if (opts.fRequireUnpremul && info.alphaType() != kOpaque_SkAlphaType) {
245 SkAlphaType newAlphaType = info.alphaType();
246 if (!SkColorTypeValidateAlphaType(info.colorType(), info.alphaType(), &newAlphaType)) {
H A DSkImageDecoder_astc.cpp131 SkAlphaType alphaType = kOpaque_SkAlphaType; local
133 alphaType = kUnpremul_SkAlphaType;
135 alphaType = kPremul_SkAlphaType;
139 bm->setInfo(SkImageInfo::MakeN32(sampler.scaledWidth(), sampler.scaledHeight(), alphaType));
H A DSkImageDecoder_ktx.cpp80 SkAlphaType alphaType = kOpaque_SkAlphaType; local
83 alphaType = kUnpremul_SkAlphaType;
90 alphaType = kPremul_SkAlphaType;
120 bm->setInfo(SkImageInfo::MakeN32(w, h, alphaType));
220 SkASSERT(bm->alphaType() == kPremul_SkAlphaType);
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/tools/
H A Dsk_tool_utils.cpp53 SkColorType colorType, SkAlphaType alphaType) {
57 const SkImageInfo info = SkImageInfo::Make(tmp.width(), tmp.height(), colorType, alphaType);
52 write_pixels(SkCanvas* canvas, const SkBitmap& bitmap, int x, int y, SkColorType colorType, SkAlphaType alphaType) argument
/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()));
/external/chromium_org/cc/resources/
H A Dui_resource_bitmap.cc65 SkAlphaType alphaType = is_opaque ? kOpaque_SkAlphaType : kPremul_SkAlphaType; local
67 SkImageInfo::MakeN32(size.width(), size.height(), alphaType);
/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/include/gpu/
H A DSkGr.h50 return SkImageInfo2GrPixelConfig(info.colorType(), info.alphaType());
/external/chromium_org/third_party/skia/tests/
H A DKtxTest.cpp66 REPORTER_ASSERT(reporter, decodedBitmap.alphaType() == bm8888.alphaType());
119 REPORTER_ASSERT(reporter, decodedBitmap.alphaType() == kPremul_SkAlphaType);
/external/skia/tests/
H A DKtxTest.cpp67 REPORTER_ASSERT(reporter, decodedBitmap.alphaType() == bm8888.alphaType());
120 REPORTER_ASSERT(reporter, decodedBitmap.alphaType() == kPremul_SkAlphaType);

Completed in 419 milliseconds

123