Home
last modified time | relevance | path

Searched refs:unpremul (Results 1 – 25 of 38) sorted by relevance

12

/third_party/skia/tests/
DSkColorSpaceXformStepsTest.cpp21 unpremul = kUnpremul_SkAlphaType; in DEF_TEST() local
27 bool unpremul; in DEF_TEST() member
48 { adobe, srgb, unpremul, premul, false,true,true,true,true }, in DEF_TEST()
49 { srgb, adobe, unpremul, premul, false,true,true,true,true }, in DEF_TEST()
68 { srgb, srgb22, unpremul, premul, false,true,false,true,true }, in DEF_TEST()
69 { srgb22, srgb, unpremul, premul, false,true,false,true,true }, in DEF_TEST()
76 { srgb, srgb, unpremul, premul, false,false,false,false,true }, in DEF_TEST()
89 { adobe1, srgb1, unpremul, premul, false,false,true,false, true }, in DEF_TEST()
94 { srgb, srgb1, unpremul, premul, false, true,false,false, true }, in DEF_TEST()
96 { srgb, adobe1, unpremul, premul, false, true, true,false, true }, in DEF_TEST()
[all …]
DColorFilterTest.cpp107 SkAlphaType unpremul = kUnpremul_SkAlphaType; in DEF_TEST() local
111 &unpremul); in DEF_TEST()
123 SkAlphaType unpremul = kUnpremul_SkAlphaType; in DEF_TEST() local
127 &unpremul); in DEF_TEST()
DNonlinearBlendingTest.cpp31 auto unpremul = skcms_AlphaFormat_Unpremul, in DEF_TEST() local
35 skcms_Transform(&color, bgra, unpremul, &srgb_profile, in DEF_TEST()
DImageTest.cpp529 SkBitmap unpremul; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
530 unpremul.allocPixels(SkImageInfo::Make(256, 256, kRGBA_8888_SkColorType, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
532 if (!texImage->readPixels(dContext, unpremul.info(), unpremul.getPixels(), unpremul.rowBytes(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
539 if (*bmp.getAddr32(x, y) != *unpremul.getAddr32(x, y)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
541 *bmp.getAddr32(x, y), *unpremul.getAddr32(x, y), x, y); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/skia/src/core/
DSkColorSpaceXformSteps.cpp34 this->flags.unpremul = srcAT == kPremul_SkAlphaType; in SkColorSpaceXformSteps()
86 if ( this->flags.unpremul && in SkColorSpaceXformSteps()
91 this->flags.unpremul = false; in SkColorSpaceXformSteps()
97 if (flags.unpremul) { in apply()
133 if (flags.unpremul) { p->append(SkRasterPipeline::unpremul); } in apply()
201 if (flags.unpremul) { in program()
202 c = unpremul(c); in program()
DSkColorSpaceXformSteps.h21 bool unpremul = false; member
28 return (unpremul ? 1 : 0) in mask()
DSkColorFilter_Matrix.cpp70 if (!shaderIsOpaque) { p->append(SkRasterPipeline::unpremul); } in onAppendStages()
109 c = unpremul(c); in onProgram()
DSkColorFilter.cpp100 return as_CFB(this)->onFilterColor4f(color, dstCS).unpremul(); in filterColor4f()
272 rec.fPipeline->append(SkRasterPipeline::unpremul); in onAppendStages()
285 return premul(fSteps.program(p, uniforms, unpremul(c))); in onProgram()
DSkConvertPixels.cpp44 steps.flags.unpremul || in swizzle_or_premul()
DSkRasterPipeline.h43 M(unpremul) M(premul) M(premul_dst) \
/third_party/skia/resources/sksl/shared/
DDeadStripFunctions.sksl27 b = unpremul(half4(1));
29 // Dead stripping a built-in function. (This is a separate overload of `unpremul`.)
30 float4 unused = unpremul(float4(-1));
/third_party/skia/src/effects/
DSkHighContrastFilter.cpp63 SkAlphaType unpremul = kUnpremul_SkAlphaType; in Make() local
66 &linear, nullptr/*use dst gamut*/, &unpremul); in Make()
DSkTableColorFilter.cpp47 p->append(SkRasterPipeline::unpremul); in onAppendStages()
75 c = unpremul(c); in onProgram()
DSkLayerDrawLooper.cpp61 return SkBlendMode_Apply(mode, pmS, pmD).unpremul(); in xferColor()
/third_party/skia/tools/gdb/
Dbitmap.py41 unpremul = 3 variable in AlphaType
71 if alpha_type == AlphaType.unpremul.value:
/third_party/skia/gm/
Dlumafilter.cpp196 SkAlphaType unpremul = kUnpremul_SkAlphaType; variable
200 &unpremul));
Dunpremul.cpp20 DEF_SIMPLE_GM(unpremul, canvas, 200, 200) {
/third_party/skia/src/gpu/
DSurfaceContext.cpp108 bool unpremul = flags.unpremul, in readPixels() local
122 bool canvas2DFastPath = unpremul && !needColorConversion && in readPixels()
223 bool convert = unpremul || premul || needColorConversion || flip || makeTight || in readPixels()
367 bool unpremul = flags.unpremul, in internalWritePixels() local
486 unpremul || in internalWritePixels()
DSurfaceFillContext.h134 return color.unpremul().array();
DGrColorSpaceXform.cpp131 return this->fColorXform->apply(c0.unpremul()).premul(); in constantOutputForConstantInput()
/third_party/skia/src/gpu/glsl/
DGrGLSLColorSpaceXformHelper.h61 bool applyUnpremul() const { return fFlags.unpremul; } in applyUnpremul()
/third_party/skia/src/sksl/
DSkSLIntrinsicList.h106 SKSL_INTRINSIC(unpremul)
Dsksl_public.sksl232 half4 unpremul(half4 color) { return half4 (color.rgb / max(color.a, 0.0001), color.a); }
233 float4 unpremul(float4 color) { return float4(color.rgb / max(color.a, 0.0001), color.a); }
/third_party/mesa3d/src/freedreno/ci/
Dfreedreno-a630-skqp-gl_rendertests.txt243 unpremul,0
/third_party/skia/include/core/
DSkColor.h393 SkRGBA4f<kUnpremul_SkAlphaType> unpremul() const { in unpremul() function

12