Home
last modified time | relevance | path

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

1234

/external/skia/include/core/
DSkImageInfo.h22 enum SkAlphaType { enum
51 static inline bool SkAlphaTypeIsOpaque(SkAlphaType at) { in SkAlphaTypeIsOpaque()
149 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType,
150 SkAlphaType* canonical = NULL);
191 static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at,
199 static SkImageInfo MakeN32(int width, int height, SkAlphaType at,
207 static SkImageInfo MakeS32(int width, int height, SkAlphaType at);
235 SkAlphaType alphaType() const { return fAlphaType; } in alphaType()
260 SkImageInfo makeAlphaType(SkAlphaType newAlphaType) const { in makeAlphaType()
341 SkAlphaType fAlphaType;
[all …]
DSkImage.h99 SkAlphaType at) { in MakeFromTexture()
113 SkAlphaType at, TextureReleaseProc trp, in MakeFromTexture()
125 static sk_sp<SkImage> MakeFromTexture(GrContext*, const GrBackendTextureDesc&, SkAlphaType,
135 SkAlphaType = kPremul_SkAlphaType,
179 SkAlphaType alphaType() const;
DSkCrossContextImageData.h43 SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace) in SkCrossContextImageData()
59 SkAlphaType fAlphaType;
DSkColorSpaceXform.h59 SkAlphaType alphaType) const;
/external/skia/src/core/
DSkSpecialImage.cpp60 const SkISize& size, SkAlphaType at) const = 0;
65 const SkISize& size, SkAlphaType at) const = 0;
156 const SkISize& size, SkAlphaType at) const { in makeSurface()
161 const SkISize& size, SkAlphaType at) const { in makeTightSurface()
228 SkAlphaType alphaType() const override { return fBitmap.alphaType(); } in alphaType()
265 const SkISize& size, SkAlphaType at) const override { in onMakeSurface()
305 const SkISize& size, SkAlphaType at) const override { in onMakeTightSurface()
350 SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace) { in wrap_proxy_in_image()
358 uint32_t uniqueID, sk_sp<GrTextureProxy> proxy, SkAlphaType at, in SkSpecialImage_Gpu()
374 SkAlphaType alphaType() const override { return fAlphaType; } in alphaType()
[all …]
DSkImageInfo.cpp12 static bool alpha_type_is_valid(SkAlphaType alphaType) { in alpha_type_is_valid()
20 SkImageInfo SkImageInfo::MakeS32(int width, int height, SkAlphaType at) { in MakeS32()
34 fAlphaType = (SkAlphaType)((packed >> 8) & kAlphaTypeMask); in unflatten()
63 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, in SkColorTypeValidateAlphaType()
64 SkAlphaType* canonical) { in SkColorTypeValidateAlphaType()
DSkSpecialImage.h59 virtual SkAlphaType alphaType() const = 0;
88 SkAlphaType at = kPremul_SkAlphaType);
96 SkAlphaType at = kPremul_SkAlphaType) const;
104 SkAlphaType at = kPremul_SkAlphaType) const;
DSkColorSpaceXform_Base.h27 int count, SkAlphaType alphaType) const = 0;
60 int count, SkAlphaType alphaType) const override;
64 int count, SkAlphaType alphaType) const;
/external/skia/src/gpu/
DGrTextureAdjuster.h39 GrTextureAdjuster(GrContext*, sk_sp<GrTextureProxy>, SkAlphaType, const SkIRect& area,
43 SkAlphaType alphaType() const override { return fAlphaType; } in alphaType()
58 SkAlphaType fAlphaType;
DGrBitmapTextureMaker.h29 SkAlphaType alphaType() const override;
/external/skia/src/codec/
DSkCodecPriv.h85 static inline bool valid_alpha(SkAlphaType dstAlpha, SkAlphaType srcAlpha) { in valid_alpha()
122 static inline uint64_t get_color_table_fill_value(SkColorType dstColorType, SkAlphaType alphaType, in get_color_table_fill_value()
322 static inline SkAlphaType select_xform_alpha(SkAlphaType dstAlphaType, SkAlphaType srcAlphaType) { in select_xform_alpha()
DSkBmpStandardCodec.cpp68 bool SkBmpStandardCodec::createColorTable(SkColorType dstColorType, SkAlphaType dstAlphaType, in createColorTable()
95 SkAlphaType packAlphaType = dstAlphaType; in createColorTable()
130 SkAlphaType xformAlphaType = select_xform_alpha(dstAlphaType, in createColorTable()
/external/skia/gm/
Dreadpixels.cpp128 SkAlphaType dstAlphaType, sk_sp<SkColorSpace> dstColorSpace, in draw_image()
179 const SkAlphaType alphaTypes[] = { in onDraw()
203 for (SkAlphaType dstAlphaType : alphaTypes) { in onDraw()
240 const SkAlphaType alphaTypes[] = { in onDraw()
263 for (SkAlphaType dstAlphaType : alphaTypes) { in onDraw()
306 const SkAlphaType alphaTypes[] = { in onDraw()
329 for (SkAlphaType dstAlphaType : alphaTypes) { in onDraw()
Dencode-srgb.cpp40 static void make_index8(SkBitmap* bitmap, SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace) { in make_index8()
82 static void make(SkBitmap* bitmap, SkColorType colorType, SkAlphaType alphaType, in make()
175 const SkAlphaType alphaTypes[] = { in onDraw()
184 for (SkAlphaType alphaType : alphaTypes) { in onDraw()
/external/skia/src/image/
DSkImage_Gpu.h25 SkImage_Gpu(GrContext*, uint32_t uniqueID, SkAlphaType, sk_sp<GrTextureProxy>,
30 SkAlphaType onAlphaType() const override { return fAlphaType; } in onAlphaType()
70 const SkAlphaType fAlphaType;
DSkImage_Gpu.cpp39 SkImage_Gpu::SkImage_Gpu(GrContext* context, uint32_t uniqueID, SkAlphaType at, in SkImage_Gpu()
65 static SkImageInfo make_info(int w, int h, SkAlphaType at, sk_sp<SkColorSpace> colorSpace) { in make_info()
249 SkAlphaType at, sk_sp<SkColorSpace> colorSpace, in new_wrapped_texture_common()
273 SkAlphaType at, sk_sp<SkColorSpace> cs, in MakeFromTexture()
280 SkAlphaType at, sk_sp<SkColorSpace> cs) { in MakeFromAdoptedTexture()
396 SkAlphaType at, uint32_t id, in create_image_from_maker()
524 SkAlphaType fAlphaType;
722 SkAlphaType alphaType = info.alphaType(); in getDeferredTextureImageData()
/external/skia/bench/
DCodecBench.h24 CodecBench(SkString basename, SkData* encoded, SkColorType colorType, SkAlphaType alphaType);
35 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.cpp85 const SkAlphaType fAlphaType;
90 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()
/external/skia/tests/
DReadPixelsTest.cpp68 static SkPMColor convert_to_pmcolor(SkColorType ct, SkAlphaType at, const uint32_t* addr, in convert_to_pmcolor()
183 SkAlphaType at) { in check_read()
279 SkAlphaType at) { in init_bitmap()
308 SkAlphaType fAlphaType;
610 const SkAlphaType kAlphaTypes[] = { in DEF_TEST()
623 for (SkAlphaType dstAT: kAlphaTypes) { in DEF_TEST()
626 for (SkAlphaType srcAT: kAlphaTypes) { in DEF_TEST()
DWritePixelsTest.cpp80 static uint32_t get_bitmap_color(int x, int y, int w, SkColorType ct, SkAlphaType at) { in get_bitmap_color()
146 static SkPMColor convert_to_PMColor(SkColorType ct, SkAlphaType at, uint32_t color) { in convert_to_PMColor()
275 static bool setup_bitmap(SkBitmap* bm, SkColorType ct, SkAlphaType at, int w, int h, int tightRB) { in setup_bitmap()
357 SkAlphaType fAlphaType; in test_write_pixels()
369 const SkAlphaType at = gSrcConfigs[c].fAlphaType; in test_write_pixels()
DImageIsOpaqueTest.cpp33 SkImageInfo info2 = SkImageInfo::Make(0xB8, 0xB8, (SkColorType) 0xB8, (SkAlphaType) 0xB8); in test_flatten()
67 static_cast<SkAlphaType>(at), in DEF_TEST()
/external/skia/dm/
DDMSrcSink.h134 CodecSrc(Path, Mode, DstColorType, SkAlphaType, float);
145 SkAlphaType fDstAlphaType;
152 AndroidCodecSrc(Path, CodecSrc::DstColorType, SkAlphaType, int sampleSize);
162 SkAlphaType fDstAlphaType;
199 ImageGenSrc(Path, Mode, SkAlphaType, bool);
209 SkAlphaType fDstAlphaType;

1234