/external/skia/tests/ |
D | SkColorSpaceXformStepsTest.cpp | 19 auto premul = kPremul_SkAlphaType, in DEF_TEST() local 31 bool premul; in DEF_TEST() member 36 { adobe, srgb, premul, premul, in DEF_TEST() 44 { srgb, adobe, premul, premul, true,true,true,true,true }, in DEF_TEST() 47 { adobe, srgb, unpremul, premul, false,true,true,true,true }, in DEF_TEST() 48 { srgb, adobe, unpremul, premul, false,true,true,true,true }, in DEF_TEST() 51 { adobe, srgb, opaque, premul, false,true,true,true,false }, in DEF_TEST() 52 { srgb, adobe, opaque, premul, false,true,true,true,false }, in DEF_TEST() 56 { srgb, srgb22, premul, premul, in DEF_TEST() 64 { srgb22, srgb, premul, premul, true,true,false,true,true }, in DEF_TEST() [all …]
|
D | NonlinearBlendingTest.cpp | 32 premul = skcms_AlphaFormat_PremulAsEncoded; in DEF_TEST() local 36 &via_skcms, f32, premul, &dp3_profile, in DEF_TEST() 56 skcms_Transform(via_steps, f32, premul, &dp3_profile, in DEF_TEST() 57 steps_to_skcms, f32, premul, &srgb_profile, in DEF_TEST()
|
/external/skqp/tests/ |
D | SkColorSpaceXformStepsTest.cpp | 19 auto premul = kPremul_SkAlphaType, in DEF_TEST() local 31 bool premul; in DEF_TEST() member 36 { adobe, srgb, premul, premul, in DEF_TEST() 44 { srgb, adobe, premul, premul, true,true,true,true,true }, in DEF_TEST() 47 { adobe, srgb, unpremul, premul, false,true,true,true,true }, in DEF_TEST() 48 { srgb, adobe, unpremul, premul, false,true,true,true,true }, in DEF_TEST() 51 { adobe, srgb, opaque, premul, false,true,true,true,false }, in DEF_TEST() 52 { srgb, adobe, opaque, premul, false,true,true,true,false }, in DEF_TEST() 56 { srgb, srgb22, premul, premul, in DEF_TEST() 64 { srgb22, srgb, premul, premul, true,true,false,true,true }, in DEF_TEST() [all …]
|
D | NonlinearBlendingTest.cpp | 32 premul = skcms_AlphaFormat_PremulAsEncoded; in DEF_TEST() local 36 &via_skcms, f32, premul, &dp3_profile, in DEF_TEST() 56 skcms_Transform(via_steps, f32, premul, &dp3_profile, in DEF_TEST() 57 steps_to_skcms, f32, premul, &srgb_profile, in DEF_TEST()
|
/external/skqp/src/shaders/gradients/ |
D | Sk4fLinearGradient.cpp | 16 template<ApplyPremul premul> 24 Sk4f c0 = c + DstTraits<premul>::pre_lerp_bias(bias0), in ramp() 25 c1 = c + dc + DstTraits<premul>::pre_lerp_bias(bias1), in ramp() 30 DstTraits<premul>::store4x(c0, c1, c2, c3, dst, bias0, bias1); in ramp() 40 DstTraits<premul>::store(c0, dst++, bias0); in ramp() 41 DstTraits<premul>::store(c1, dst++, bias1); in ramp() 45 DstTraits<premul>::store(c0, dst, bias0); in ramp() 186 template<ApplyPremul premul> 196 this->shadeSpanInternal<premul, kClamp_TileMode >(x, y, dst, count, bias0, bias1); in shadePremulSpan() 199 this->shadeSpanInternal<premul, kRepeat_TileMode>(x, y, dst, count, bias0, bias1); in shadePremulSpan() [all …]
|
D | Sk4fGradientPriv.h | 54 template <ApplyPremul premul> 56 using PM = PremulTraits<premul>; 61 return premul == ApplyPremul::False 67 if (premul == ApplyPremul::False) { 86 if (premul == ApplyPremul::False) { 99 return premul == ApplyPremul::False ? bias : 0;
|
D | Sk4fLinearGradient.h | 27 template <ApplyPremul premul> 31 template <ApplyPremul premul, SkShader::TileMode tileMode>
|
D | Sk4fGradientBase.cpp | 14 Sk4f pack_color(const SkColor4f& c4f, bool premul, const Sk4f& component_scale) { in pack_color() argument 15 Sk4f pm4f = premul in pack_color() 16 ? Sk4f::Load(c4f.premul().vec()) in pack_color() 19 if (premul) { in pack_color()
|
/external/skia/src/shaders/gradients/ |
D | Sk4fLinearGradient.cpp | 16 template<ApplyPremul premul> 24 Sk4f c0 = c + DstTraits<premul>::pre_lerp_bias(bias0), in ramp() 25 c1 = c + dc + DstTraits<premul>::pre_lerp_bias(bias1), in ramp() 30 DstTraits<premul>::store4x(c0, c1, c2, c3, dst, bias0, bias1); in ramp() 40 DstTraits<premul>::store(c0, dst++, bias0); in ramp() 41 DstTraits<premul>::store(c1, dst++, bias1); in ramp() 45 DstTraits<premul>::store(c0, dst, bias0); in ramp() 186 template<ApplyPremul premul> 196 this->shadeSpanInternal<premul, kClamp_TileMode >(x, y, dst, count, bias0, bias1); in shadePremulSpan() 199 this->shadeSpanInternal<premul, kRepeat_TileMode>(x, y, dst, count, bias0, bias1); in shadePremulSpan() [all …]
|
D | Sk4fGradientPriv.h | 54 template <ApplyPremul premul> 56 using PM = PremulTraits<premul>; 61 return premul == ApplyPremul::False 67 if (premul == ApplyPremul::False) { 86 if (premul == ApplyPremul::False) { 99 return premul == ApplyPremul::False ? bias : 0;
|
D | Sk4fLinearGradient.h | 27 template <ApplyPremul premul> 31 template <ApplyPremul premul, SkShader::TileMode tileMode>
|
D | Sk4fGradientBase.cpp | 14 Sk4f pack_color(const SkColor4f& c4f, bool premul, const Sk4f& component_scale) { in pack_color() argument 15 Sk4f pm4f = premul in pack_color() 16 ? Sk4f::Load(c4f.premul().vec()) in pack_color() 19 if (premul) { in pack_color()
|
/external/skqp/src/core/ |
D | SkColorSpaceXformSteps.cpp | 37 this->flags.premul = srcAT != kOpaque_SkAlphaType && dstAT == kPremul_SkAlphaType; in SkColorSpaceXformSteps() 91 this->flags.premul) in SkColorSpaceXformSteps() 94 this->flags.premul = false; in SkColorSpaceXformSteps() 132 if (flags.premul) { in apply() 175 if (flags.premul) { p->append(SkRasterPipeline::premul); } in apply()
|
D | SkColorSpaceXformSteps.h | 22 bool premul = false; member 29 | (premul ? 16 : 0); in mask()
|
/external/skia/src/core/ |
D | SkColorSpaceXformSteps.cpp | 37 this->flags.premul = srcAT != kOpaque_SkAlphaType && dstAT == kPremul_SkAlphaType; in SkColorSpaceXformSteps() 91 this->flags.premul) in SkColorSpaceXformSteps() 94 this->flags.premul = false; in SkColorSpaceXformSteps() 132 if (flags.premul) { in apply() 175 if (flags.premul) { p->append(SkRasterPipeline::premul); } in apply()
|
D | SkColorSpaceXformSteps.h | 22 bool premul = false; member 29 | (premul ? 16 : 0); in mask()
|
/external/skqp/src/gpu/gradients/ |
D | GrGradientShader.cpp | 40 const SkScalar* positions, int count, bool premul, const GrFPArgs& args) { in make_textured_colorizer() argument 50 SkAlphaType alphaType = premul ? kPremul_SkAlphaType : kUnpremul_SkAlphaType; in make_textured_colorizer() 70 const SkScalar* positions, int count, bool premul, const GrFPArgs& args) { in make_colorizer() argument 146 return make_textured_colorizer(colors + offset, positions + offset, count, premul, args); in make_colorizer() 168 colors[i] = inputPremul ? upmColor.premul() in make_gradient()
|
/external/skia/src/gpu/gradients/ |
D | GrGradientShader.cpp | 42 const SkScalar* positions, int count, bool premul, const GrFPArgs& args) { in make_textured_colorizer() argument 52 SkAlphaType alphaType = premul ? kPremul_SkAlphaType : kUnpremul_SkAlphaType; in make_textured_colorizer() 72 const SkScalar* positions, int count, bool premul, const GrFPArgs& args) { in make_colorizer() argument 148 return make_textured_colorizer(colors + offset, positions + offset, count, premul, args); in make_colorizer() 170 colors[i] = inputPremul ? upmColor.premul() in make_gradient()
|
/external/skia/src/shaders/ |
D | SkColorShader.cpp | 88 rec.fPipeline->append_constant_color(rec.fAlloc, color.premul().vec()); in onAppendStages() 96 rec.fPipeline->append_constant_color(rec.fAlloc, color.premul().vec()); in onAppendStages() 119 return GrConstColorProcessor::Make(color.premul(), in asFragmentProcessor()
|
/external/skqp/src/shaders/ |
D | SkColorShader.cpp | 88 rec.fPipeline->append_constant_color(rec.fAlloc, color.premul().vec()); in onAppendStages() 96 rec.fPipeline->append_constant_color(rec.fAlloc, color.premul().vec()); in onAppendStages() 119 return GrConstColorProcessor::Make(color.premul(), in asFragmentProcessor()
|
/external/skqp/tools/gdb/ |
D | bitmap.py | 40 premul = 2 variable in AlphaType 74 elif alpha_type == AlphaType.premul.value:
|
/external/skia/tools/gdb/ |
D | bitmap.py | 40 premul = 2 variable in AlphaType 74 elif alpha_type == AlphaType.premul.value:
|
/external/skqp/src/gpu/ |
D | SkGr.cpp | 265 return color.premul(); in SkColorToPMColor4f() 412 SkPMColor4f shaderInput = origColor.makeOpaque().premul(); in skpaint_to_grpaint_impl() 441 SkPMColor4f opaqueColor = origColor.makeOpaque().premul(); in skpaint_to_grpaint_impl() 463 grPaint->setColor4f(origColor.premul()); in skpaint_to_grpaint_impl() 472 colorFilter->filterColor4f(origColor, colorSpaceInfo.colorSpace()).premul()); in skpaint_to_grpaint_impl()
|
/external/skia/src/gpu/ |
D | SkGr.cpp | 267 return color.premul(); in SkColorToPMColor4f() 420 SkPMColor4f shaderInput = origColor.makeOpaque().premul(); in skpaint_to_grpaint_impl() 449 SkPMColor4f opaqueColor = origColor.makeOpaque().premul(); in skpaint_to_grpaint_impl() 471 grPaint->setColor4f(origColor.premul()); in skpaint_to_grpaint_impl() 480 colorFilter->filterColor4f(origColor, colorSpaceInfo.colorSpace()).premul()); in skpaint_to_grpaint_impl()
|
/external/skqp/src/gpu/effects/ |
D | GrPremulInputFragmentProcessor.fp | 19 return SkColor4f { input.fR, input.fG, input.fB, input.fA }.premul();
|