/third_party/flutter/skia/src/gpu/effects/ |
D | GrBicubicEffect.h | 42 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/ |
D | SkImageInfo.cpp | 85 …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/ |
D | encode_srgb.cpp | 35 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()
|
D | encode_color_types.cpp | 24 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()
|
D | all_bitmap_configs.cpp | 194 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/ |
D | encode_srgb.cpp | 35 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()
|
D | all_bitmap_configs.cpp | 194 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/ |
D | GrBicubicEffect.cpp | 115 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/ |
D | SkImageInfo.cpp | 63 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/ |
D | GrSurfaceContext.cpp | 37 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 …]
|
D | GrRecordingContext.cpp | 149 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()
|
D | GrDataUtils.h | 35 : 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/ |
D | GrRecordingContextPriv.cpp | 92 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()
|
D | GrImageInfo.h | 48 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
|
D | GrColorInfo.cpp | 13 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()
|
D | SurfaceContext.cpp | 87 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/ |
D | CommonFlagsConfig.cpp | 360 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/ |
D | BackendTextureImageFactory.cpp | 34 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/ |
D | Image_alphaType.cpp | 9 SkAlphaType alphaType = image->alphaType(); 11 canvas->drawString(alphaTypeStr[(int) alphaType], 20, image->height() + 20, SkPaint());
|
D | ImageInfo_empty_constructor.cpp | 12 const char* alphaType[] = { "Unknown", "Opaque", "Premul", "Unpremul" }; 14 string.printf("k%s_SkAlphaType", alphaType[(int) imageInfo.alphaType()]);
|
/third_party/flutter/skia/docs/examples/ |
D | Image_alphaType.cpp | 9 SkAlphaType alphaType = image->alphaType(); 11 canvas->drawString(alphaTypeStr[(int) alphaType], 20, image->height() + 20, SkPaint());
|
D | ImageInfo_empty_constructor.cpp | 12 const char* alphaType[] = { "Unknown", "Opaque", "Premul", "Unpremul" }; 14 string.printf("k%s_SkAlphaType", alphaType[(int) imageInfo.alphaType()]);
|
D | Bitmap_setAlphaType.cpp | 25 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/ |
D | CommonFlagsConfig.cpp | 285 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/ |
D | SkPngEncoder.cpp | 145 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()
|