/external/skia/gm/ |
D | encode-srgb.cpp | 25 static void make(SkBitmap* bitmap, SkColorType colorType, SkAlphaType alphaType, in make() argument 31 alphaType = kOpaque_SkAlphaType; in make() 35 alphaType = kOpaque_SkAlphaType; in make() 38 resource = (kOpaque_SkAlphaType == alphaType) ? "images/color_wheel.jpg" in make() 49 .makeAlphaType(alphaType) in make() 120 for (SkAlphaType alphaType : alphaTypes) { in onDraw() local 123 make(&bitmap, colorType, alphaType, colorSpace); in onDraw()
|
D | all_bitmap_configs.cpp | 185 static uint32_t make_pixel(int x, int y, SkAlphaType alphaType) { in make_pixel() argument 198 switch (alphaType) { in make_pixel() 214 SkAlphaType alphaType, in make_color_test_bitmap_variant() argument 219 SkASSERT(alphaType == kPremul_SkAlphaType || alphaType == kUnpremul_SkAlphaType); in make_color_test_bitmap_variant() 221 SkImageInfo::Make(SCALE, SCALE, colorType, alphaType, colorSpace)); in make_color_test_bitmap_variant() 225 *pm.writable_addr32(x, y) = make_pixel(x, y, alphaType); in make_color_test_bitmap_variant() 239 for (auto alphaType : {kPremul_SkAlphaType, kUnpremul_SkAlphaType}) { 243 make_color_test_bitmap_variant(colorType, alphaType, colorSpace, &bm);
|
/external/skqp/gm/ |
D | encode-srgb.cpp | 25 static void make(SkBitmap* bitmap, SkColorType colorType, SkAlphaType alphaType, in make() argument 31 alphaType = kOpaque_SkAlphaType; in make() 35 alphaType = kOpaque_SkAlphaType; in make() 38 resource = (kOpaque_SkAlphaType == alphaType) ? "images/color_wheel.jpg" in make() 49 .makeAlphaType(alphaType) in make() 120 for (SkAlphaType alphaType : alphaTypes) { in onDraw() local 123 make(&bitmap, colorType, alphaType, colorSpace); in onDraw()
|
D | all_bitmap_configs.cpp | 186 static uint32_t make_pixel(int x, int y, SkAlphaType alphaType) { in make_pixel() argument 199 switch (alphaType) { in make_pixel() 215 SkAlphaType alphaType, in make_color_test_bitmap_variant() argument 220 SkASSERT(alphaType == kPremul_SkAlphaType || alphaType == kUnpremul_SkAlphaType); in make_color_test_bitmap_variant() 222 SkImageInfo::Make(SCALE, SCALE, colorType, alphaType, colorSpace)); in make_color_test_bitmap_variant() 226 *pm.writable_addr32(x, y) = make_pixel(x, y, alphaType); in make_color_test_bitmap_variant() 240 for (auto alphaType : {kPremul_SkAlphaType, kUnpremul_SkAlphaType}) { 244 make_color_test_bitmap_variant(colorType, alphaType, colorSpace, &bm);
|
/external/skqp/src/core/ |
D | SkImageInfo.cpp | 62 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, in SkColorTypeValidateAlphaType() argument 66 alphaType = kUnknown_SkAlphaType; in SkColorTypeValidateAlphaType() 69 if (kUnpremul_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 70 alphaType = kPremul_SkAlphaType; in SkColorTypeValidateAlphaType() 79 if (kUnknown_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 87 alphaType = kOpaque_SkAlphaType; in SkColorTypeValidateAlphaType() 93 *canonical = alphaType; in SkColorTypeValidateAlphaType()
|
/external/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()
|
/external/skia/tools/flags/ |
D | SkCommonFlagsConfig.cpp | 287 SkAlphaType* alphaType, in parse_option_gpu_color() argument 290 *alphaType = kPremul_SkAlphaType; in parse_option_gpu_color() 303 *alphaType = kOpaque_SkAlphaType; in parse_option_gpu_color() 378 SkAlphaType* alphaType, in get_option_gpu_color() argument 385 return parse_option_gpu_color(*optionValue, outColorType, alphaType, outColorSpace); in get_option_gpu_color() 430 bool useNVPR, bool useDIText, int samples, SkColorType colorType, SkAlphaType alphaType, in SkCommandLineConfigGpu() argument 439 , fAlphaType(alphaType) in SkCommandLineConfigGpu() 465 SkAlphaType alphaType = kPremul_SkAlphaType; in parse_command_line_config_gpu() local 483 extendedOptions.get_option_gpu_color("color", &colorType, &alphaType, &colorSpace) && in parse_command_line_config_gpu() 495 colorType, alphaType, colorSpace, useStencils, testThreading, in parse_command_line_config_gpu()
|
/external/skqp/tools/flags/ |
D | SkCommonFlagsConfig.cpp | 286 SkAlphaType* alphaType, in parse_option_gpu_color() argument 289 *alphaType = kPremul_SkAlphaType; in parse_option_gpu_color() 302 *alphaType = kOpaque_SkAlphaType; in parse_option_gpu_color() 374 SkAlphaType* alphaType, in get_option_gpu_color() argument 381 return parse_option_gpu_color(*optionValue, outColorType, alphaType, outColorSpace); in get_option_gpu_color() 426 bool useNVPR, bool useDIText, int samples, SkColorType colorType, SkAlphaType alphaType, in SkCommandLineConfigGpu() argument 435 , fAlphaType(alphaType) in SkCommandLineConfigGpu() 461 SkAlphaType alphaType = kPremul_SkAlphaType; in parse_command_line_config_gpu() local 479 extendedOptions.get_option_gpu_color("color", &colorType, &alphaType, &colorSpace) && in parse_command_line_config_gpu() 491 colorType, alphaType, colorSpace, useStencils, testThreading, in parse_command_line_config_gpu()
|
/external/skia/src/gpu/ |
D | GrImageTextureMaker.cpp | 39 SkAlphaType GrImageTextureMaker::alphaType() const { in alphaType() function in GrImageTextureMaker 40 return fImage->alphaType(); in alphaType() 80 SkAlphaType GrYUVAImageTextureMaker::alphaType() const { in alphaType() function in GrYUVAImageTextureMaker 81 return fImage->alphaType(); in alphaType() 120 fImage->alphaType(), fImage->fTargetColorSpace.get()); in createFragmentProcessor()
|
D | SkGpuDevice_drawTexture.cpp | 178 SkAlphaType alphaType, SkColorSpace* colorSpace) { in draw_texture() argument 181 GrColorSpaceXform::Make(colorSpace , alphaType, in draw_texture() 249 std::move(proxy), producer->alphaType(), producer->colorSpace()); in draw_texture_producer() 305 fp = GrColorSpaceXformEffect::Make(std::move(fp), producer->colorSpace(), producer->alphaType(), in draw_texture_producer() 404 SkAlphaType alphaType = image->alphaType(); in drawImageQuad() local 409 dstClip, aa, aaFlags, constraint, std::move(proxy), alphaType, colorSpace); in drawImageQuad() 413 GrTextureAdjuster adjuster(fContext.get(), std::move(proxy), alphaType, pinnedUniqueID, in drawImageQuad() 498 set[base].fImage->colorSpace(), set[base].fImage->alphaType(), in tmp_drawImageSetV3() 560 set[i].fImage->alphaType() != set[base].fImage->alphaType() || in tmp_drawImageSetV3()
|
/external/skia/src/utils/mac/ |
D | SkCreateCGImageRef.cpp | 83 *info = ComputeCGAlphaInfo_RGBA(bm.alphaType()); in getBitmapInfo() 87 *info = ComputeCGAlphaInfo_BGRA(bm.alphaType()); in getBitmapInfo() 187 cg_bitmap_info = ComputeCGAlphaInfo_RGBA(pmap.alphaType()); in SkCreateCGContext() 191 cg_bitmap_info = ComputeCGAlphaInfo_BGRA(pmap.alphaType()); in SkCreateCGContext() 212 cg_bitmap_info = ComputeCGAlphaInfo_RGBA(info.alphaType()); in SkCopyPixelsFromCGImage() 216 cg_bitmap_info = ComputeCGAlphaInfo_BGRA(info.alphaType()); in SkCopyPixelsFromCGImage()
|
/external/skqp/src/utils/mac/ |
D | SkCreateCGImageRef.cpp | 83 *info = ComputeCGAlphaInfo_RGBA(bm.alphaType()); in getBitmapInfo() 87 *info = ComputeCGAlphaInfo_BGRA(bm.alphaType()); in getBitmapInfo() 187 cg_bitmap_info = ComputeCGAlphaInfo_RGBA(pmap.alphaType()); in SkCreateCGContext() 191 cg_bitmap_info = ComputeCGAlphaInfo_BGRA(pmap.alphaType()); in SkCreateCGContext() 212 cg_bitmap_info = ComputeCGAlphaInfo_RGBA(info.alphaType()); in SkCopyPixelsFromCGImage() 216 cg_bitmap_info = ComputeCGAlphaInfo_BGRA(info.alphaType()); in SkCopyPixelsFromCGImage()
|
/external/skqp/include/core/ |
D | SkImage.h | 227 SkAlphaType alphaType, in MakeFromTexture() argument 229 return MakeFromTexture(context, backendTexture, origin, colorType, alphaType, colorSpace, in MakeFromTexture() 262 SkAlphaType alphaType, 351 SkAlphaType alphaType = kPremul_SkAlphaType, 564 SkAlphaType alphaType = kPremul_SkAlphaType, 610 SkAlphaType alphaType() const; 655 bool isOpaque() const { return SkAlphaTypeIsOpaque(this->alphaType()); } in isOpaque()
|
/external/skqp/src/images/ |
D | SkPngEncoder.cpp | 143 if (kUnpremul_SkAlphaType == srcInfo.alphaType()) { in setHeader() 236 switch (info.alphaType()) { in choose_proc() 248 switch (info.alphaType()) { in choose_proc() 264 switch (info.alphaType()) { in choose_proc() 276 switch (info.alphaType()) { in choose_proc() 287 switch (info.alphaType()) { in choose_proc() 298 switch (info.alphaType()) { in choose_proc() 356 kOpaque_SkAlphaType == srcInfo.alphaType()) in writeInfo()
|
D | SkWebpEncoder.cpp | 47 switch (info.alphaType()) { in choose_proc() 58 switch (info.alphaType()) { in choose_proc() 75 switch (info.alphaType()) { in choose_proc() 86 switch (info.alphaType()) { in choose_proc()
|
/external/skia/src/images/ |
D | SkPngEncoder.cpp | 144 if (kUnpremul_SkAlphaType == srcInfo.alphaType()) { in setHeader() 240 switch (info.alphaType()) { in choose_proc() 252 switch (info.alphaType()) { in choose_proc() 268 switch (info.alphaType()) { in choose_proc() 282 switch (info.alphaType()) { in choose_proc() 293 switch (info.alphaType()) { in choose_proc() 304 switch (info.alphaType()) { in choose_proc() 361 kOpaque_SkAlphaType == srcInfo.alphaType()) in writeInfo()
|
D | SkWebpEncoder.cpp | 47 switch (info.alphaType()) { in choose_proc() 58 switch (info.alphaType()) { in choose_proc() 75 switch (info.alphaType()) { in choose_proc() 86 switch (info.alphaType()) { in choose_proc()
|
/external/skqp/src/gpu/ |
D | GrImageTextureMaker.cpp | 38 SkAlphaType GrImageTextureMaker::alphaType() const { in alphaType() function in GrImageTextureMaker 39 return fImage->alphaType(); in alphaType() 78 SkAlphaType GrYUVAImageTextureMaker::alphaType() const { in alphaType() function in GrYUVAImageTextureMaker 79 return fImage->alphaType(); in alphaType()
|
D | SkGpuDevice_drawTexture.cpp | 102 sk_sp<GrTextureProxy> proxy, SkAlphaType alphaType, in draw_texture() argument 116 GrColorSpaceXform::Make(colorSpace , alphaType, in draw_texture() 145 SkColorSpace* colorSpace, SkAlphaType alphaType, in drawPinnedTextureProxy() argument 152 alphaType, colorSpace, this->clip(), fRenderTargetContext.get()); in drawPinnedTextureProxy() 155 GrTextureAdjuster adjuster(this->context(), std::move(proxy), alphaType, pinnedUniqueID, in drawPinnedTextureProxy() 176 producer->alphaType(), producer->colorSpace(), this->clip(), in drawTextureProducer() 295 fp = GrColorSpaceXformEffect::Make(std::move(fp), producer->colorSpace(), producer->alphaType(), in drawTextureProducerImpl()
|
/external/skia/include/core/ |
D | SkImage.h | 229 SkAlphaType alphaType, in MakeFromTexture() argument 231 return MakeFromTexture(context, backendTexture, origin, colorType, alphaType, colorSpace, in MakeFromTexture() 264 SkAlphaType alphaType, 353 SkAlphaType alphaType = kPremul_SkAlphaType, 566 SkAlphaType alphaType = kPremul_SkAlphaType, 628 SkAlphaType alphaType() const; 673 bool isOpaque() const { return SkAlphaTypeIsOpaque(this->alphaType()); } in isOpaque()
|
/external/skia/src/ports/ |
D | SkImageGeneratorCG.cpp | 84 SkAlphaType alphaType = hasAlpha ? kPremul_SkAlphaType : kOpaque_SkAlphaType; in MakeFromEncodedCG() local 85 SkImageInfo info = SkImageInfo::MakeS32(width, height, alphaType); in MakeFromEncodedCG() 127 switch (info.alphaType()) { in onGetPixels() 129 if (kOpaque_SkAlphaType != this->getInfo().alphaType()) { in onGetPixels()
|
/external/skqp/src/ports/ |
D | SkImageGeneratorCG.cpp | 84 SkAlphaType alphaType = hasAlpha ? kPremul_SkAlphaType : kOpaque_SkAlphaType; in MakeFromEncodedCG() local 85 SkImageInfo info = SkImageInfo::MakeS32(width, height, alphaType); in MakeFromEncodedCG() 127 switch (info.alphaType()) { in onGetPixels() 129 if (kOpaque_SkAlphaType != this->getInfo().alphaType()) { in onGetPixels()
|
D | SkImageGeneratorWIC.cpp | 108 SkAlphaType alphaType = kPremul_SkAlphaType; in MakeFromEncodedWIC() local 146 alphaType = kOpaque_SkAlphaType; in MakeFromEncodedWIC() 151 SkImageInfo info = SkImageInfo::MakeS32(width, height, alphaType); in MakeFromEncodedWIC() 183 if (kUnpremul_SkAlphaType == info.alphaType()) { in onGetPixels()
|
/external/skia/bench/ |
D | CodecBench.cpp | 19 SkAlphaType alphaType) in CodecBench() argument 21 , fAlphaType(alphaType) in CodecBench() 26 alpha_type_to_str(alphaType)); in CodecBench()
|
/external/skqp/bench/ |
D | CodecBench.cpp | 19 SkAlphaType alphaType) in CodecBench() argument 21 , fAlphaType(alphaType) in CodecBench() 26 alpha_type_to_str(alphaType)); in CodecBench()
|