/external/skia/bench/ |
D | WritePixelsBench.cpp | 25 at == kPremul_SkAlphaType ? "pm" : "um", in WritePixelsBench() 59 DEF_BENCH(return new WritePixelsBench(kRGBA_8888_SkColorType, kPremul_SkAlphaType, nullptr);) 61 DEF_BENCH(return new WritePixelsBench(kRGBA_8888_SkColorType, kPremul_SkAlphaType, SkColorSpace::Ma… 64 DEF_BENCH(return new WritePixelsBench(kBGRA_8888_SkColorType, kPremul_SkAlphaType, nullptr);) 66 DEF_BENCH(return new WritePixelsBench(kBGRA_8888_SkColorType, kPremul_SkAlphaType, SkColorSpace::Ma…
|
D | ReadPixBench.cpp | 23 at == kPremul_SkAlphaType ? "pm" : "um", in ReadPixBench() 54 DEF_BENCH( return new ReadPixBench(kRGBA_8888_SkColorType, kPremul_SkAlphaType, nullptr); ) 56 DEF_BENCH( return new ReadPixBench(kRGBA_8888_SkColorType, kPremul_SkAlphaType, SkColorSpace::MakeS… 59 DEF_BENCH( return new ReadPixBench(kBGRA_8888_SkColorType, kPremul_SkAlphaType, nullptr); ) 61 DEF_BENCH( return new ReadPixBench(kBGRA_8888_SkColorType, kPremul_SkAlphaType, SkColorSpace::MakeS… 115 fBM.allocPixels(SkImageInfo::Make(1024, 1024, fCT, kPremul_SkAlphaType)); in onDelayedSetup()
|
/external/skia/tests/ |
D | ExtendedSkColorTypeTests.cpp | 57 { kAlpha_8_SkColorType, kPremul_SkAlphaType, kAlpha_SkColorChannelFlag, true }, 58 { kA16_unorm_SkColorType, kPremul_SkAlphaType, kAlpha_SkColorChannelFlag, false}, 59 { kA16_float_SkColorType, kPremul_SkAlphaType, kAlpha_SkColorChannelFlag, false}, 61 { kARGB_4444_SkColorType, kPremul_SkAlphaType, kRGBA_SkColorChannelFlags, true }, 62 { kRGBA_8888_SkColorType, kPremul_SkAlphaType, kRGBA_SkColorChannelFlags, true }, 64 { kBGRA_8888_SkColorType, kPremul_SkAlphaType, kRGBA_SkColorChannelFlags, true }, 65 { kRGBA_1010102_SkColorType, kPremul_SkAlphaType, kRGBA_SkColorChannelFlags, true }, 68 { kRGBA_F16Norm_SkColorType, kPremul_SkAlphaType, kRGBA_SkColorChannelFlags, true }, 69 { kRGBA_F16_SkColorType, kPremul_SkAlphaType, kRGBA_SkColorChannelFlags, true }, 70 { kRGBA_F32_SkColorType, kPremul_SkAlphaType, kRGBA_SkColorChannelFlags, true }, [all …]
|
D | ImageGeneratorTest.cpp | 98 { kRGBA_8888_SkColorType, kPremul_SkAlphaType }, in DEF_TEST() 99 { kBGRA_8888_SkColorType, kPremul_SkAlphaType }, in DEF_TEST() 100 { kRGBA_F16_SkColorType, kPremul_SkAlphaType }, in DEF_TEST() 101 { kRGBA_F32_SkColorType, kPremul_SkAlphaType }, in DEF_TEST() 102 { kRGBA_1010102_SkColorType, kPremul_SkAlphaType }, in DEF_TEST()
|
D | SurfaceTest.cpp | 46 static sk_sp<SkSurface> create_surface(SkAlphaType at = kPremul_SkAlphaType, in create_surface() 54 static sk_sp<SkSurface> create_direct_surface(SkAlphaType at = kPremul_SkAlphaType, in create_direct_surface() 67 SkAlphaType at = kPremul_SkAlphaType, in create_gpu_surface() 76 SkAlphaType at = kPremul_SkAlphaType, in create_gpu_scratch_surface() 86 const SkImageInfo info = SkImageInfo::Make(0, 0, kN32_SkColorType, kPremul_SkAlphaType); in DEF_TEST() 92 const SkImageInfo info = SkImageInfo::Make(0, 0, kN32_SkColorType, kPremul_SkAlphaType); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 246 auto surface(surface_func(kPremul_SkAlphaType, &requestInfo)); in DEF_TEST() 253 auto surface(surface_func(ctxInfo.directContext(), kPremul_SkAlphaType, &requestInfo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 271 for (auto& at: { kOpaque_SkAlphaType, kPremul_SkAlphaType, kUnpremul_SkAlphaType }) { in DEF_TEST() 280 for (auto& at : { kOpaque_SkAlphaType, kPremul_SkAlphaType }) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | NonlinearBlendingTest.cpp | 40 dp3.get(), kPremul_SkAlphaType); in DEF_TEST() 61 SkColorSpaceXformSteps inv_steps(dp3.get(), kPremul_SkAlphaType, in DEF_TEST() 62 srgb.get(), kPremul_SkAlphaType); in DEF_TEST()
|
D | RepeatedClippedBlurTest.cpp | 31 kPremul_SkAlphaType); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 47 kPremul_SkAlphaType); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 65 kPremul_SkAlphaType); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | TestUtils.cpp | 32 kPremul_SkAlphaType); in TestReadPixels() 58 kPremul_SkAlphaType); in TestWritePixels() 97 {colorType, kPremul_SkAlphaType, nullptr}); in TestCopyFromSurface() 170 if ((a.alphaType() == kPremul_SkAlphaType || b.alphaType() == kPremul_SkAlphaType) && in ComparePixels() 172 floatAlphaType = kPremul_SkAlphaType; in ComparePixels()
|
/external/skqp/src/effects/ |
D | SkToSRGBColorFilter.cpp | 25 alloc->make<SkColorSpaceXformSteps>(fSrcColorSpace.get(), kPremul_SkAlphaType, in onAppendStages() 26 sk_srgb_singleton() , kPremul_SkAlphaType) in onAppendStages() 55 return GrColorSpaceXformEffect::Make(fSrcColorSpace.get(), kPremul_SkAlphaType, in asFragmentProcessor() 56 sk_srgb_singleton(), kPremul_SkAlphaType); in asFragmentProcessor()
|
/external/skia/docs/examples/ |
D | UnpremulBugs.cpp | 30 doCell(canvas, 0, 0, kPremul_SkAlphaType, 0x80404040, 2); in draw() 32 doCell(canvas, 50, 0, kPremul_SkAlphaType, 0x80808080, 2); in draw() 35 doCell(canvas, 110, 0, kPremul_SkAlphaType, 0x80404040, 1); in draw() 37 doCell(canvas, 160, 0, kPremul_SkAlphaType, 0x80808080, 1); in draw()
|
D | ImageInfo_MakeS32.cpp | 16 bitmap.allocPixels(SkImageInfo::MakeN32(width, height, kPremul_SkAlphaType)); in draw() 20 bitmap.allocPixels(SkImageInfo::MakeS32(width, height, kPremul_SkAlphaType)); in draw() 25 noColorSpaceBitmap.setInfo(SkImageInfo::MakeN32(width, height, kPremul_SkAlphaType)); in draw()
|
D | ImageInfo_refColorSpace.cpp | 7 SkImageInfo info1 = SkImageInfo::MakeN32(16, 32, kPremul_SkAlphaType, in draw() 9 SkImageInfo info2 = SkImageInfo::MakeN32(16, 32, kPremul_SkAlphaType, in draw()
|
D | Bitmap_refColorSpace.cpp | 8 bitmap1.setInfo(SkImageInfo::MakeN32(16, 32, kPremul_SkAlphaType, in draw() 10 bitmap2.setInfo(SkImageInfo::MakeN32(16, 32, kPremul_SkAlphaType, in draw()
|
D | ImageInfo_equal1_operator.cpp | 7 SkImageInfo info1 = SkImageInfo::Make(10, 20, kGray_8_SkColorType, kPremul_SkAlphaType); in draw() 14 info2 = info2.makeAlphaType(kPremul_SkAlphaType); in draw()
|
D | ImageInfo_notequal1_operator.cpp | 7 SkImageInfo info1 = SkImageInfo::Make(10, 20, kGray_8_SkColorType, kPremul_SkAlphaType); in draw() 14 info2 = info2.makeAlphaType(kPremul_SkAlphaType); in draw()
|
/external/skqp/tests/ |
D | ImageGeneratorTest.cpp | 113 { kRGBA_8888_SkColorType, kPremul_SkAlphaType }, in DEF_TEST() 114 { kBGRA_8888_SkColorType, kPremul_SkAlphaType }, in DEF_TEST() 115 { kRGBA_F16_SkColorType, kPremul_SkAlphaType }, in DEF_TEST() 116 { kRGBA_F32_SkColorType, kPremul_SkAlphaType }, in DEF_TEST() 117 { kRGBA_1010102_SkColorType, kPremul_SkAlphaType }, in DEF_TEST()
|
D | GrUploadPixelsTests.cpp | 37 SkImageInfo dstInfo = SkImageInfo::Make(kWidth, kHeight, ct, kPremul_SkAlphaType); in basic_texture_test() 46 dstInfo = SkImageInfo::Make(10, 2, ct, kPremul_SkAlphaType); in basic_texture_test() 67 SkImageInfo dstInfo = SkImageInfo::Make(kWidth, kHeight, ct, kPremul_SkAlphaType); in basic_texture_test() 76 dstInfo = SkImageInfo::Make(4, 5, ct, kPremul_SkAlphaType); in basic_texture_test()
|
D | SurfaceTest.cpp | 41 static sk_sp<SkSurface> create_surface(SkAlphaType at = kPremul_SkAlphaType, in create_surface() 49 static sk_sp<SkSurface> create_direct_surface(SkAlphaType at = kPremul_SkAlphaType, in create_direct_surface() 61 static sk_sp<SkSurface> create_gpu_surface(GrContext* context, SkAlphaType at = kPremul_SkAlphaType, in create_gpu_surface() 70 SkAlphaType at = kPremul_SkAlphaType, in create_gpu_scratch_surface() 80 const SkImageInfo info = SkImageInfo::Make(0, 0, kN32_SkColorType, kPremul_SkAlphaType); in DEF_TEST() 86 const SkImageInfo info = SkImageInfo::Make(0, 0, kN32_SkColorType, kPremul_SkAlphaType); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 251 auto surface(surface_func(kPremul_SkAlphaType, &requestInfo)); in DEF_TEST() 258 auto surface(surface_func(ctxInfo.grContext(), kPremul_SkAlphaType, &requestInfo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 276 for (auto& at: { kOpaque_SkAlphaType, kPremul_SkAlphaType, kUnpremul_SkAlphaType }) { in DEF_TEST() 285 for (auto& at : { kOpaque_SkAlphaType, kPremul_SkAlphaType }) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | NonlinearBlendingTest.cpp | 40 dp3.get(), kPremul_SkAlphaType); in DEF_TEST() 61 SkColorSpaceXformSteps inv_steps(dp3.get(), kPremul_SkAlphaType, in DEF_TEST() 62 srgb.get(), kPremul_SkAlphaType); in DEF_TEST()
|
D | GrMipMappedTest.cpp | 65 kPremul_SkAlphaType, nullptr, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 116 kPremul_SkAlphaType, nullptr, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 137 kPremul_SkAlphaType, nullptr); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 146 kPremul_SkAlphaType); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 248 kPremul_SkAlphaType); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 295 SkImageInfo info = SkImageInfo::MakeN32(16, 16, kPremul_SkAlphaType); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | GrTextureMipMapInvalidationTest.cpp | 68 SkImageInfo::Make(100, 100, kRGBA_8888_SkColorType, kPremul_SkAlphaType), 1, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 90 kPremul_SkAlphaType, nullptr); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 92 SkImageInfo::Make(1, 1, kRGBA_8888_SkColorType, kPremul_SkAlphaType, nullptr); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/external/skqp/src/images/ |
D | SkWebpEncoder.cpp | 52 case kPremul_SkAlphaType: in choose_proc() 63 case kPremul_SkAlphaType: in choose_proc() 78 case kPremul_SkAlphaType: in choose_proc() 90 case kPremul_SkAlphaType: in choose_proc()
|
/external/skqp/src/core/ |
D | SkSpecialImage.h | 89 SkAlphaType at = kPremul_SkAlphaType); 97 SkAlphaType at = kPremul_SkAlphaType, 106 SkAlphaType at = kPremul_SkAlphaType) const;
|
/external/skia/src/images/ |
D | SkPngEncoder.cpp | 246 case kPremul_SkAlphaType: in choose_proc() 258 case kPremul_SkAlphaType: in choose_proc() 272 case kPremul_SkAlphaType: in choose_proc() 287 case kPremul_SkAlphaType: in choose_proc() 298 case kPremul_SkAlphaType: in choose_proc() 309 case kPremul_SkAlphaType: in choose_proc() 320 case kPremul_SkAlphaType: in choose_proc()
|
/external/skqp/bench/ |
D | BitmapBench.cpp | 226 : INHERITED(ct, kPremul_SkAlphaType, forceUpdate, bitmapVolatile, false) in SourceAlphaBitmapBench() 303 DEF_BENCH( return new BitmapBench(kN32_SkColorType, kPremul_SkAlphaType, false, false, false); ) 311 DEF_BENCH( return new FilterBitmapBench(kN32_SkColorType, kPremul_SkAlphaType, false, false, kScale… 321 DEF_BENCH( return new FilterBitmapBench(kN32_SkColorType, kPremul_SkAlphaType, false, false, kScale… 326 DEF_BENCH( return new FilterBitmapBench(kN32_SkColorType, kPremul_SkAlphaType, false, false, kScale… 327 DEF_BENCH( return new FilterBitmapBench(kN32_SkColorType, kPremul_SkAlphaType, false, false, kScale…
|