Home
last modified time | relevance | path

Searched refs:SkAlphaType (Results 1 – 25 of 71) sorted by relevance

123

/external/skia/include/core/
DSkImageInfo.h21 enum SkAlphaType { enum
50 static inline bool SkAlphaTypeIsOpaque(SkAlphaType at) { in SkAlphaTypeIsOpaque()
134 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType,
135 SkAlphaType* canonical = NULL);
178 static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at,
186 static SkImageInfo MakeN32(int width, int height, SkAlphaType at,
224 SkAlphaType alphaType() const { return fAlphaType; } in alphaType()
247 SkImageInfo makeAlphaType(SkAlphaType newAlphaType) const { in makeAlphaType()
309 SkAlphaType fAlphaType;
312 SkImageInfo(int width, int height, SkColorType ct, SkAlphaType at, SkColorProfileType pt) in SkImageInfo()
DSkImage.h101 static SkImage* NewFromTexture(GrContext* ctx, const GrBackendTextureDesc& de, SkAlphaType at) { in NewFromTexture()
114 static SkImage* NewFromTexture(GrContext*, const GrBackendTextureDesc&, SkAlphaType,
124 SkAlphaType = kPremul_SkAlphaType);
133 SkAlphaType = kPremul_SkAlphaType);
/external/skia/src/core/
DSkImageInfo.cpp16 static bool alpha_type_is_valid(SkAlphaType alphaType) { in alpha_type_is_valid()
31 fAlphaType = (SkAlphaType)((packed >> 8) & 0xFF); in unflatten()
49 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, in SkColorTypeValidateAlphaType()
50 SkAlphaType* canonical) { in SkColorTypeValidateAlphaType()
DSkSpecialImage.cpp246 uint32_t uniqueID, GrTexture* tex, SkAlphaType at) in SkSpecialImage_Gpu()
296 const SkAlphaType fAlphaType;
305 SkAlphaType at) { in NewFromGpu()
316 SkAlphaType at) { in NewFromGpu()
DSkBitmapDevice.cpp27 SkAlphaType* newAlphaType) { in valid_for_bitmap_device()
48 SkAlphaType canonicalAlphaType = info.alphaType(); in valid_for_bitmap_device()
88 SkAlphaType newAT = origInfo.alphaType(); in Create()
DSkConfig8888.h17 SkAlphaType fAlphaType;
DSkPixelRef.cpp34 SkAlphaType newAlphaType = info.alphaType(); in validate_info()
281 void SkPixelRef::changeAlphaType(SkAlphaType at) { in changeAlphaType()
DSkBitmapProvider.cpp48 SkAlphaType at = fImage->isOpaque() ? kOpaque_SkAlphaType : kPremul_SkAlphaType; in info()
/external/skia/src/image/
DSkImage_Gpu.cpp22 SkImage_Gpu::SkImage_Gpu(int w, int h, uint32_t uniqueID, SkAlphaType at, GrTexture* tex, in SkImage_Gpu()
155 SkAlphaType at, GrWrapOwnership ownership, in new_wrapped_texture_common()
173 SkImage* SkImage::NewFromTexture(GrContext* ctx, const GrBackendTextureDesc& desc, SkAlphaType at, in NewFromTexture()
179 SkAlphaType at) { in NewFromAdoptedTexture()
184 SkAlphaType at) { in NewFromTextureCopy()
282 static SkImage* create_image_from_maker(GrTextureMaker* maker, SkAlphaType at, uint32_t id) { in create_image_from_maker()
299 SkAlphaType at = this->isOpaque() ? kOpaque_SkAlphaType : kPremul_SkAlphaType; in newTextureImage()
DSkImage_Gpu.h25 SkImage_Gpu(int w, int h, uint32_t uniqueID, SkAlphaType, GrTexture*, SkBudgeted);
55 const SkAlphaType fAlphaType;
DSkImage.cpp346 SkImage* SkImage::NewFromTexture(GrContext*, const GrBackendTextureDesc&, SkAlphaType, in NewFromTexture() argument
351 SkImage* SkImage::NewFromAdoptedTexture(GrContext*, const GrBackendTextureDesc&, SkAlphaType) { in NewFromAdoptedTexture() argument
355 SkImage* SkImage::NewFromTextureCopy(GrContext*, const GrBackendTextureDesc&, SkAlphaType) { in NewFromTextureCopy() argument
/external/skia/bench/
DCodecBench.h23 CodecBench(SkString basename, SkData* encoded, SkColorType colorType, SkAlphaType alphaType);
34 const SkAlphaType fAlphaType;
DWritePixelsBench.cpp14 WritePixelsBench(SkColorType ct, SkAlphaType at) in WritePixelsBench()
66 SkAlphaType fAlphaType;
DBitmapBench.cpp33 static void convertToIndex666(const SkBitmap& src, SkBitmap* dst, SkAlphaType aType) { in convertToIndex666()
75 const SkAlphaType fAlphaType;
87 BitmapBench(SkColorType ct, SkAlphaType at, bool forceUpdate, bool isVolatile, bool doScale) in BitmapBench()
204 FilterBitmapBench(SkColorType ct, SkAlphaType at, in FilterBitmapBench()
DRepeatTileBench.cpp86 const SkAlphaType fAlphaType;
91 RepeatTileBench(SkColorType ct, SkAlphaType at = kPremul_SkAlphaType) in RepeatTileBench()
DCodecBenchPriv.h30 inline const char* alpha_type_to_str(SkAlphaType alphaType) { in alpha_type_to_str()
Dnanobench.h28 SkAlphaType alpha;
DCodecBench.cpp19 SkAlphaType alphaType) in CodecBench()
/external/skia/tests/
DWritePixelsTest.cpp81 static uint32_t get_bitmap_color(int x, int y, int w, SkColorType ct, SkAlphaType at) { in get_bitmap_color()
147 static SkPMColor convert_to_PMColor(SkColorType ct, SkAlphaType at, uint32_t color) { in convert_to_PMColor()
274 static bool setup_bitmap(SkBitmap* bm, SkColorType ct, SkAlphaType at, int w, int h, int tightRB) { in setup_bitmap()
356 SkAlphaType fAlphaType; in test_write_pixels()
368 const SkAlphaType at = gSrcConfigs[c].fAlphaType; in test_write_pixels()
/external/skia/dm/
DDMSrcSink.h122 CodecSrc(Path, Mode, DstColorType, SkAlphaType, float);
133 SkAlphaType fDstAlphaType;
147 AndroidCodecSrc(Path, Mode, CodecSrc::DstColorType, SkAlphaType, int sampleSize);
158 SkAlphaType fDstAlphaType;
/external/skia/src/codec/
DSkCodecPriv.h82 inline bool valid_alpha(SkAlphaType dstAlpha, SkAlphaType srcAlpha) { in valid_alpha()
DSkBmpStandardCodec.h73 bool createColorTable(SkAlphaType alphaType, int* colorCount);
/external/skia/src/utils/
DSkImageGeneratorUtils.cpp92 const SkAlphaType at = kPremul_SkAlphaType; // take isOpaque from caller? in NewFromTexture()
127 const SkAlphaType at = image->isOpaque() ? kOpaque_SkAlphaType : kPremul_SkAlphaType; in NewFromImage()
/external/skia/src/gpu/
DGrSurfacePriv.h39 SkImageInfo info(SkAlphaType alphaType) const { return fSurface->info(alphaType); } in info()
/external/skia/src/utils/mac/
DSkCreateCGImageRef.cpp16 static CGBitmapInfo ComputeCGAlphaInfo_RGBA(SkAlphaType at) { in ComputeCGAlphaInfo_RGBA()
34 static CGBitmapInfo ComputeCGAlphaInfo_BGRA(SkAlphaType at) { in ComputeCGAlphaInfo_BGRA()

123