Home
last modified time | relevance | path

Searched refs:alphaType (Results 1 – 25 of 356) sorted by relevance

12345678910>>...15

/third_party/flutter/skia/src/gpu/effects/
DGrBicubicEffect.h42 SkAlphaType alphaType() const { return fAlphaType; } in alphaType() function
50 SkAlphaType alphaType) { in Make() argument
54 GrTextureDomain::kIgnore_Mode, direction, alphaType); in Make()
64 SkAlphaType alphaType) { in Make() argument
68 GrTextureDomain::kIgnore_Mode, direction, alphaType); in Make()
82 SkAlphaType alphaType,
88 modeY, direction, alphaType));
98 SkAlphaType alphaType) { in Make() argument
102 GrTextureDomain::kClamp_Mode, direction, alphaType, &domain); in Make()
118 GrTextureDomain::Mode modeY, Direction direction, SkAlphaType alphaType);
/third_party/skia/src/core/
DSkImageInfo.cpp85 …desc += split + "\t fAlphaType: " + std::to_string(static_cast<int>(fColorInfo.alphaType())) + "\n… in dump()
94 SkASSERT(SkAlphaTypeIsValid(this->alphaType())); in validate()
98 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, in SkColorTypeValidateAlphaType() argument
102 alphaType = kUnknown_SkAlphaType; in SkColorTypeValidateAlphaType()
107 if (kUnpremul_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType()
108 alphaType = kPremul_SkAlphaType; in SkColorTypeValidateAlphaType()
121 if (kUnknown_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType()
133 alphaType = kOpaque_SkAlphaType; in SkColorTypeValidateAlphaType()
137 *canonical = alphaType; in SkColorTypeValidateAlphaType()
/third_party/skia/gm/
Dencode_srgb.cpp35 static void make(SkBitmap* bitmap, SkColorType colorType, SkAlphaType alphaType, in make() argument
41 alphaType = kOpaque_SkAlphaType; in make()
45 alphaType = kOpaque_SkAlphaType; in make()
48 resource = (kOpaque_SkAlphaType == alphaType) ? "images/color_wheel.jpg" in make()
59 .makeAlphaType(alphaType) in make()
130 for (SkAlphaType alphaType : alphaTypes) { in onDraw() local
133 make(&bitmap, colorType, alphaType, colorSpace); in onDraw()
Dencode_color_types.cpp24 static sk_sp<SkImage> make_image(SkColorType colorType, SkAlphaType alphaType) { in make_image() argument
28 if (alphaType != kOpaque_SkAlphaType) { in make_image()
37 if (alphaType != kOpaque_SkAlphaType) { in make_image()
43 resource = (kOpaque_SkAlphaType == alphaType) ? "images/color_wheel.jpg" in make_image()
54 colorType, alphaType, image->refColorSpace())); in make_image()
130 for (SkAlphaType alphaType : alphaTypes) { in onDraw() local
131 auto src = make_image(colorType, alphaType); in onDraw()
Dall_bitmap_configs.cpp194 static uint32_t make_pixel(int x, int y, SkAlphaType alphaType) { in make_pixel() argument
207 switch (alphaType) { in make_pixel()
222 SkAlphaType alphaType, in make_color_test_bitmap_variant() argument
227 SkASSERT(alphaType == kPremul_SkAlphaType || alphaType == kUnpremul_SkAlphaType); in make_color_test_bitmap_variant()
229 SkImageInfo::Make(SCALE, SCALE, colorType, alphaType, colorSpace)); in make_color_test_bitmap_variant()
233 *pm.writable_addr32(x, y) = make_pixel(x, y, alphaType); in make_color_test_bitmap_variant()
247 for (auto alphaType : {kPremul_SkAlphaType, kUnpremul_SkAlphaType}) {
251 make_color_test_bitmap_variant(colorType, alphaType, colorSpace, &bm);
/third_party/flutter/skia/gm/
Dencode_srgb.cpp35 static void make(SkBitmap* bitmap, SkColorType colorType, SkAlphaType alphaType, in make() argument
41 alphaType = kOpaque_SkAlphaType; in make()
45 alphaType = kOpaque_SkAlphaType; in make()
48 resource = (kOpaque_SkAlphaType == alphaType) ? "images/color_wheel.jpg" in make()
59 .makeAlphaType(alphaType) in make()
130 for (SkAlphaType alphaType : alphaTypes) { in onDraw() local
133 make(&bitmap, colorType, alphaType, colorSpace); in onDraw()
Dall_bitmap_configs.cpp194 static uint32_t make_pixel(int x, int y, SkAlphaType alphaType) { in make_pixel() argument
207 switch (alphaType) { in make_pixel()
222 SkAlphaType alphaType, in make_color_test_bitmap_variant() argument
227 SkASSERT(alphaType == kPremul_SkAlphaType || alphaType == kUnpremul_SkAlphaType); in make_color_test_bitmap_variant()
229 SkImageInfo::Make(SCALE, SCALE, colorType, alphaType, colorSpace)); in make_color_test_bitmap_variant()
233 *pm.writable_addr32(x, y) = make_pixel(x, y, alphaType); in make_color_test_bitmap_variant()
247 for (auto alphaType : {kPremul_SkAlphaType, kUnpremul_SkAlphaType}) {
251 make_color_test_bitmap_variant(colorType, alphaType, colorSpace, &bm);
/third_party/skia/src/gpu/effects/
DGrBicubicEffect.cpp115 SkAlphaType alphaType, in Make() argument
119 auto fp = GrTextureEffect::Make(std::move(view), alphaType, SkMatrix::I()); in Make()
120 auto clamp = kPremul_SkAlphaType == alphaType ? Clamp::kPremul : Clamp::kUnpremul; in Make()
126 SkAlphaType alphaType, in Make() argument
135 fp = GrTextureEffect::Make(std::move(view), alphaType, SkMatrix::I(), sampler, caps); in Make()
136 auto clamp = kPremul_SkAlphaType == alphaType ? Clamp::kPremul : Clamp::kUnpremul; in Make()
143 SkAlphaType alphaType, in MakeSubset() argument
154 std::move(view), alphaType, SkMatrix::I(), sampler, subset, caps); in MakeSubset()
155 auto clamp = kPremul_SkAlphaType == alphaType ? Clamp::kPremul : Clamp::kUnpremul; in MakeSubset()
162 SkAlphaType alphaType, in MakeSubset() argument
[all …]
/third_party/flutter/skia/src/core/
DSkImageInfo.cpp63 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, in SkColorTypeValidateAlphaType() argument
67 alphaType = kUnknown_SkAlphaType; in SkColorTypeValidateAlphaType()
70 if (kUnpremul_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType()
71 alphaType = kPremul_SkAlphaType; in SkColorTypeValidateAlphaType()
81 if (kUnknown_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType()
89 alphaType = kOpaque_SkAlphaType; in SkColorTypeValidateAlphaType()
95 *canonical = alphaType; in SkColorTypeValidateAlphaType()
/third_party/flutter/skia/src/gpu/
DGrSurfaceContext.cpp37 SkAlphaType alphaType, in GrSurfaceContext() argument
39 : fContext(context), fColorSpaceInfo(colorType, alphaType, std::move(colorSpace)) {} in GrSurfaceContext()
103 bool premul = this->colorSpaceInfo().alphaType() == kUnpremul_SkAlphaType && in readPixels()
104 dstInfo.alphaType() == kPremul_SkAlphaType; in readPixels()
105 bool unpremul = this->colorSpaceInfo().alphaType() == kPremul_SkAlphaType && in readPixels()
106 dstInfo.alphaType() == kUnpremul_SkAlphaType; in readPixels()
192 tmpInfo = {supportedRead.fColorType, this->colorSpaceInfo().alphaType(), in readPixels()
262 bool premul = this->colorSpaceInfo().alphaType() == kPremul_SkAlphaType && in writePixels()
263 srcInfo.alphaType() == kUnpremul_SkAlphaType; in writePixels()
264 bool unpremul = this->colorSpaceInfo().alphaType() == kUnpremul_SkAlphaType && in writePixels()
[all …]
DGrRecordingContext.cpp149 SkAlphaType alphaType, in makeWrappedSurfaceContext() argument
157 SkASSERT(kPremul_SkAlphaType == alphaType || kOpaque_SkAlphaType == alphaType); in makeWrappedSurfaceContext()
163 return this->drawingManager()->makeTextureContext(std::move(proxy), colorType, alphaType, in makeWrappedSurfaceContext()
173 SkAlphaType alphaType, in makeDeferredTextureContext() argument
207 return drawingManager->makeTextureContext(std::move(texture), colorType, alphaType, in makeDeferredTextureContext()
331 SkAlphaType alphaType, in makeWrappedSurfaceContext() argument
334 return fContext->makeWrappedSurfaceContext(std::move(proxy), colorType, alphaType, in makeWrappedSurfaceContext()
343 SkAlphaType alphaType, in makeDeferredTextureContext() argument
349 return fContext->makeDeferredTextureContext(fit, width, height, colorType, alphaType, in makeDeferredTextureContext()
DGrDataUtils.h35 : fColorInfo(SkColorTypeToGrColorType(info.colorType()), info.alphaType(), in GrPixelInfo()
49 return {ct, this->alphaType(), this->refColorSpace(), this->width(), this->height()}; in makeColorType()
57 return {this->colorType(), this->alphaType(), this->refColorSpace(), width, height}; in makeWH()
62 SkAlphaType alphaType() const { return fColorInfo.alphaType(); } in alphaType() function
/third_party/skia/src/gpu/
DGrRecordingContextPriv.cpp92 if (info.alphaType() == kPremul_SkAlphaType || in makeSC()
93 info.alphaType() == kOpaque_SkAlphaType) { in makeSC()
161 if (info.alphaType() == kPremul_SkAlphaType || info.alphaType() == kOpaque_SkAlphaType) { in makeSFC()
205 SkAlphaType alphaType, in makeSFC() argument
222 if (alphaType == kPremul_SkAlphaType || alphaType == kOpaque_SkAlphaType) { in makeSFC()
249 GrImageInfo info(GrColorType::kUnknown, alphaType, std::move(colorSpace), dimensions); in makeSFC()
274 if (info.alphaType() == kPremul_SkAlphaType || info.alphaType() == kOpaque_SkAlphaType) { in makeSFCWithFallback()
316 if (info.alphaType() == kPremul_SkAlphaType || info.alphaType() == kOpaque_SkAlphaType) { in makeSFCFromBackendTexture()
DGrImageInfo.h48 return {this->colorType(), this->alphaType(), std::move(cs), this->width(), this->height()}; in makeColorSpace()
52 return {this->colorType(), this->alphaType(), this->refColorSpace(), dimensions}; in makeDimensions()
56 return {this->colorType(), this->alphaType(), this->refColorSpace(), width, height}; in makeWH()
63 SkAlphaType alphaType() const { return fColorInfo.alphaType(); } in alphaType() function
DGrColorInfo.cpp13 GrColorType colorType, SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace) in GrColorInfo() argument
14 : fColorSpace(std::move(colorSpace)), fColorType(colorType), fAlphaType(alphaType) { in GrColorInfo()
22 ci.alphaType(), in GrColorInfo()
DSurfaceContext.cpp87 if (!alpha_types_compatible(this->colorInfo().alphaType(), dst.alphaType())) { in readPixels()
147 SkAlphaType alphaType = canvas2DFastPath ? dst.alphaType() in readPixels() local
148 : this->colorInfo().alphaType(); in readPixels()
150 alphaType, in readPixels()
161 this->readSurfaceView(), this->colorInfo().alphaType())); in readPixels()
169 fp = GrTextureEffect::Make(this->readSurfaceView(), this->colorInfo().alphaType()); in readPixels()
232 this->colorInfo().alphaType(), in readPixels()
349 if (!alpha_types_compatible(src[0].alphaType(), this->colorInfo().alphaType())) { in internalWritePixels()
453 GrTextureEffect::Make(std::move(tempView), tempColorInfo.alphaType())); in internalWritePixels()
459 fp = GrTextureEffect::Make(std::move(tempView), tempColorInfo.alphaType()); in internalWritePixels()
[all …]
/third_party/skia/tools/flags/
DCommonFlagsConfig.cpp360 SkAlphaType* alphaType) { in parse_option_gpu_color() argument
362 *alphaType = kPremul_SkAlphaType; in parse_option_gpu_color()
374 *alphaType = kOpaque_SkAlphaType; in parse_option_gpu_color()
435 SkAlphaType* alphaType, in get_option_gpu_color() argument
441 return parse_option_gpu_color(*optionValue, outColorType, alphaType); in get_option_gpu_color()
523 SkAlphaType alphaType, in SkCommandLineConfigGpu() argument
538 , fAlphaType(alphaType) in SkCommandLineConfigGpu()
566 SkAlphaType alphaType = kPremul_SkAlphaType; in parse_command_line_config_gpu() local
588 extendedOptions.get_option_gpu_color("color", &colorType, &alphaType) && in parse_command_line_config_gpu()
618 alphaType, in parse_command_line_config_gpu()
[all …]
/third_party/skia/tools/gpu/
DBackendTextureImageFactory.cpp34 pixmap.alphaType(), in MakeBackendTextureImage()
46 if (info.alphaType() == kOpaque_SkAlphaType) { in MakeBackendTextureImage()
48 } else if (info.alphaType() == kPremul_SkAlphaType) { in MakeBackendTextureImage()
67 info.alphaType(), in MakeBackendTextureImage()
/third_party/skia/docs/examples/
DImage_alphaType.cpp9 SkAlphaType alphaType = image->alphaType();
11 canvas->drawString(alphaTypeStr[(int) alphaType], 20, image->height() + 20, SkPaint());
DImageInfo_empty_constructor.cpp12 const char* alphaType[] = { "Unknown", "Opaque", "Premul", "Unpremul" };
14 string.printf("k%s_SkAlphaType", alphaType[(int) imageInfo.alphaType()]);
/third_party/flutter/skia/docs/examples/
DImage_alphaType.cpp9 SkAlphaType alphaType = image->alphaType();
11 canvas->drawString(alphaTypeStr[(int) alphaType], 20, image->height() + 20, SkPaint());
DImageInfo_empty_constructor.cpp12 const char* alphaType[] = { "Unknown", "Opaque", "Premul", "Unpremul" };
14 string.printf("k%s_SkAlphaType", alphaType[(int) imageInfo.alphaType()]);
DBitmap_setAlphaType.cpp25 for (SkAlphaType alphaType : alphaTypes) { in draw() local
27 bool result = bitmap.setAlphaType(alphaType); in draw()
28 SkDebugf("%s %s ", result ? "true " : "false", alphas[(int) bitmap.alphaType()]); in draw()
/third_party/flutter/skia/tools/flags/
DCommonFlagsConfig.cpp285 SkAlphaType* alphaType, in parse_option_gpu_color() argument
288 *alphaType = kPremul_SkAlphaType; in parse_option_gpu_color()
310 *alphaType = kOpaque_SkAlphaType; in parse_option_gpu_color()
385 SkAlphaType* alphaType, in get_option_gpu_color() argument
392 return parse_option_gpu_color(*optionValue, outColorType, alphaType, outColorSpace); in get_option_gpu_color()
441 SkAlphaType alphaType, in SkCommandLineConfigGpu() argument
453 , fAlphaType(alphaType) in SkCommandLineConfigGpu()
471 SkAlphaType alphaType = kPremul_SkAlphaType; in parse_command_line_config_gpu() local
488 extendedOptions.get_option_gpu_color("color", &colorType, &alphaType, &colorSpace) && in parse_command_line_config_gpu()
505 alphaType, in parse_command_line_config_gpu()
/third_party/skia/src/images/
DSkPngEncoder.cpp145 if (kUnpremul_SkAlphaType == srcInfo.alphaType()) { in setHeader()
246 switch (info.alphaType()) { in choose_proc()
258 switch (info.alphaType()) { in choose_proc()
274 switch (info.alphaType()) { in choose_proc()
288 switch (info.alphaType()) { in choose_proc()
299 switch (info.alphaType()) { in choose_proc()
310 switch (info.alphaType()) { in choose_proc()
321 switch (info.alphaType()) { in choose_proc()
386 kOpaque_SkAlphaType == srcInfo.alphaType()) in writeInfo()

12345678910>>...15