/external/skia/src/core/ |
H A D | SkImageInfo.cpp | 12 static bool alpha_type_is_valid(SkAlphaType alphaType) { argument 13 return (alphaType >= 0) && (alphaType <= kLastEnum_SkAlphaType);
|
H A D | SkBitmap.cpp | 155 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/chromium_org/third_party/skia/include/core/ |
H A D | SkColorTable.h | 30 SkAlphaType alphaType = kPremul_SkAlphaType); 33 SkAlphaType alphaType() const { return (SkAlphaType)fAlphaType; } function in class:SkColorTable 36 return SkAlphaTypeIsOpaque(this->alphaType());
|
H A D | SkImageInfo.h | 127 * 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
|
H A D | SkBitmap.h | 84 SkAlphaType alphaType() const { return fInfo.alphaType(); } function in class:SkBitmap 127 * Set the bitmap's alphaType, returning true on success. If false is 128 * returned, then the specified new alphaType is incompatible with the 129 * colortype, and the current alphaType is unchanged. 185 return SkAlphaTypeIsOpaque(this->alphaType());
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkImageInfo.cpp | 12 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...] |
/external/skia/include/core/ |
H A D | SkColorTable.h | 30 SkAlphaType alphaType = kPremul_SkAlphaType); 33 SkAlphaType alphaType() const { return (SkAlphaType)fAlphaType; } function in class:SkColorTable 36 return SkAlphaTypeIsOpaque(this->alphaType());
|
H A D | SkImageInfo.h | 189 SkAlphaType alphaType() const { return fAlphaType; } function in struct:SkImageInfo
|
H A D | SkBitmap.h | 97 SkAlphaType alphaType() const { return fInfo.fAlphaType; } function in class:SkBitmap 153 * Set the bitmap's alphaType, returning true on success. If false is 154 * returned, then the specified new alphaType is incompatible with the 155 * colortype, and the current alphaType is unchanged. 211 return SkAlphaTypeIsOpaque(this->alphaType());
|
/external/skia/tools/ |
H A D | sk_tool_utils.cpp | 21 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 D | ui_resource_bitmap.cc | 65 SkAlphaType alphaType = is_opaque ? kOpaque_SkAlphaType : kPremul_SkAlphaType; local 67 SkImageInfo::MakeN32(size.width(), size.height(), alphaType);
|
/external/chromium_org/third_party/skia/tools/ |
H A D | sk_tool_utils.cpp | 53 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/chromium_org/third_party/skia/src/images/ |
H A D | SkImageDecoder_astc.cpp | 131 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 D | SkImageDecoder_ktx.cpp | 80 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 D | SkImageDecoder_libgif.cpp | 335 SkAlphaType alphaType = kOpaque_SkAlphaType; local 358 alphaType = kPremul_SkAlphaType; 367 alphaType)));
|
H A D | SkImageDecoder_libwebp.cpp | 301 SkAlphaType alphaType = kOpaque_SkAlphaType; local 304 alphaType = kUnpremul_SkAlphaType; 306 alphaType = kPremul_SkAlphaType; 309 return decodedBitmap->setInfo(SkImageInfo::Make(width, height, colorType, alphaType));
|
H A D | SkImageDecoder_libjpeg.cpp | 573 const SkAlphaType alphaType = kAlpha_8_SkColorType == colorType ? local 584 colorType, alphaType)); 609 colorType, alphaType)); 629 colorType, alphaType));
|
H A D | SkImageDecoder_libpng.cpp | 328 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/skia/src/images/ |
H A D | SkImageDecoder_ktx.cpp | 80 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 D | SkImageDecoder_libgif.cpp | 336 SkAlphaType alphaType = kOpaque_SkAlphaType; local 359 alphaType = kPremul_SkAlphaType; 368 alphaType)));
|
H A D | SkImageDecoder_libwebp.cpp | 312 SkAlphaType alphaType = kOpaque_SkAlphaType; local 315 alphaType = kUnpremul_SkAlphaType; 317 alphaType = kPremul_SkAlphaType; 320 return decodedBitmap->setInfo(SkImageInfo::Make(width, height, colorType, alphaType));
|
H A D | SkImageDecoder_libjpeg.cpp | 587 const SkAlphaType alphaType = kAlpha_8_SkColorType == colorType ? local 598 colorType, alphaType)); 624 colorType, alphaType)); 645 colorType, alphaType));
|
/external/chromium_org/third_party/skia/tests/ |
H A D | BitmapCopyTest.cpp | 64 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 D | BitmapCopyTest.cpp | 64 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 D | ImageBuffer.cpp | 356 SkAlphaType alphaType = (multiplied == Premultiplied) ? kPremul_SkAlphaType : kUnpremul_SkAlphaType; local 357 SkImageInfo info = SkImageInfo::Make(rect.width(), rect.height(), kRGBA_8888_SkColorType, alphaType); 388 SkAlphaType alphaType = (multiplied == Premultiplied) ? kPremul_SkAlphaType : kUnpremul_SkAlphaType; local 389 SkImageInfo info = SkImageInfo::Make(sourceRect.width(), sourceRect.height(), kRGBA_8888_SkColorType, alphaType);
|