Home
last modified time | relevance | path

Searched refs:premul (Results 1 – 25 of 81) sorted by relevance

1234

/external/skia/src/shaders/gradients/
DSk4fGradientPriv.h54 template <typename dst, ApplyPremul premul>
57 template <ApplyPremul premul>
58 struct DstTraits<SkPMColor, premul> {
59 using PM = PremulTraits<premul>;
63 return premul == ApplyPremul::False
69 if (premul == ApplyPremul::False) {
88 if (premul == ApplyPremul::False) {
101 return premul == ApplyPremul::False ? bias : 0;
105 template <ApplyPremul premul>
106 struct DstTraits<SkPM4f, premul> {
[all …]
DSk4fLinearGradient.cpp16 template<typename dstType, ApplyPremul premul>
24 Sk4f c0 = c + DstTraits<dstType, premul>::pre_lerp_bias(bias0), in ramp()
25 c1 = c + dc + DstTraits<dstType, premul>::pre_lerp_bias(bias1), in ramp()
30 DstTraits<dstType, premul>::store4x(c0, c1, c2, c3, dst, bias0, bias1); in ramp()
40 DstTraits<dstType, premul>::store(c0, dst++, bias0); in ramp()
41 DstTraits<dstType, premul>::store(c1, dst++, bias1); in ramp()
45 DstTraits<dstType, premul>::store(c0, dst, bias0); in ramp()
199 template<typename dstType, ApplyPremul premul>
209 this->shadeSpanInternal<dstType, premul, kClamp_TileMode >(x, y, dst, count, bias0, bias1); in shadePremulSpan()
212 this->shadeSpanInternal<dstType, premul, kRepeat_TileMode>(x, y, dst, count, bias0, bias1); in shadePremulSpan()
[all …]
DSk4fLinearGradient.h28 template <typename dstType, ApplyPremul premul>
31 template <typename dstType, ApplyPremul premul, SkShader::TileMode tileMode>
DSk4fGradientBase.cpp14 Sk4f pack_color(const SkColor4f& c4f, bool premul, const Sk4f& component_scale) { in pack_color() argument
15 const Sk4f pm4f = premul in pack_color()
16 ? c4f.premul().to4f() in pack_color()
/external/skqp/src/shaders/gradients/
DSk4fGradientPriv.h54 template <typename dst, ApplyPremul premul>
57 template <ApplyPremul premul>
58 struct DstTraits<SkPMColor, premul> {
59 using PM = PremulTraits<premul>;
63 return premul == ApplyPremul::False
69 if (premul == ApplyPremul::False) {
88 if (premul == ApplyPremul::False) {
101 return premul == ApplyPremul::False ? bias : 0;
105 template <ApplyPremul premul>
106 struct DstTraits<SkPM4f, premul> {
[all …]
DSk4fLinearGradient.cpp16 template<typename dstType, ApplyPremul premul>
24 Sk4f c0 = c + DstTraits<dstType, premul>::pre_lerp_bias(bias0), in ramp()
25 c1 = c + dc + DstTraits<dstType, premul>::pre_lerp_bias(bias1), in ramp()
30 DstTraits<dstType, premul>::store4x(c0, c1, c2, c3, dst, bias0, bias1); in ramp()
40 DstTraits<dstType, premul>::store(c0, dst++, bias0); in ramp()
41 DstTraits<dstType, premul>::store(c1, dst++, bias1); in ramp()
45 DstTraits<dstType, premul>::store(c0, dst, bias0); in ramp()
199 template<typename dstType, ApplyPremul premul>
206 this->shadeSpanInternal<dstType, premul, kClamp_TileMode >(x, y, dst, count, bias0, bias1); in shadePremulSpan()
209 this->shadeSpanInternal<dstType, premul, kRepeat_TileMode>(x, y, dst, count, bias0, bias1); in shadePremulSpan()
[all …]
DSk4fLinearGradient.h28 template <typename dstType, ApplyPremul premul>
31 template <typename dstType, ApplyPremul premul, SkShader::TileMode tileMode>
DSk4fGradientBase.cpp14 Sk4f pack_color(const SkColor4f& c4f, bool premul, const Sk4f& component_scale) { in pack_color() argument
15 const Sk4f pm4f = premul in pack_color()
16 ? c4f.premul().to4f() in pack_color()
/external/skia/src/shaders/
DSkColorShader.cpp59 fPM4f = c4.premul(); in ColorShaderContext()
175 fPM4f = c4.premul(); in Color4Context()
222 return GrConstColorProcessor::Make(color.premul(), in asFragmentProcessor()
260 rec.fAlloc, to_colorspace(fColor4, fColorSpace.get(), rec.fDstCS).premul()); in onAppendStages()
/external/skqp/src/shaders/
DSkColorShader.cpp59 fPM4f = c4.premul(); in ColorShaderContext()
175 fPM4f = c4.premul(); in Color4Context()
222 return GrConstColorProcessor::Make(color.premul(), in asFragmentProcessor()
260 rec.fAlloc, to_colorspace(fColor4, fColorSpace.get(), rec.fDstCS).premul()); in onAppendStages()
/external/skia/tools/gdb/
Dbitmap.py37 premul = 2 variable in AlphaType
69 elif alpha_type == AlphaType.premul.value:
/external/skqp/tools/gdb/
Dbitmap.py37 premul = 2 variable in AlphaType
69 elif alpha_type == AlphaType.premul.value:
/external/skia/tests/
DSkColor4fTest.cpp53 SkPM4f pm4 = c4.premul(); in DEF_TEST()
62 pm4 = c4.premul(); in DEF_TEST()
/external/skqp/tests/
DSkColor4fTest.cpp53 SkPM4f pm4 = c4.premul(); in DEF_TEST()
62 pm4 = c4.premul(); in DEF_TEST()
DFloat16Test.cpp51 SkPM4f origpm4 = c4.premul(); in DEF_TEST()
/external/skia/src/gpu/
DSkGr.cpp219 return SkColorToUnpremulGrColor4f(c, colorSpaceInfo).premul(); in SkColorToPremulGrColor4f()
223 return GrColor4f::FromGrColor(SkColorToUnpremulGrColor(c)).premul(); in SkColorToPremulGrColor4fLegacy()
438 grPaint->setColor4f(origColor.premul()); in skpaint_to_grpaint_impl()
450 colorFilter->filterColor4f(origColor.toSkColor4f())).premul()); in skpaint_to_grpaint_impl()
DGrContext.cpp771 const bool premul = SkToBool(kUnpremul_PixelOpsFlag & pixelOpsFlags); in writeSurfacePixels() local
773 if (!valid_pixel_conversion(srcColorType, dstProxy->config(), premul)) { in writeSurfacePixels()
780 premul && pm_upm_must_round_trip(srcColorType, srcColorSpace) && in writeSurfacePixels()
785 bool premulOnGpu = premul && in writeSurfacePixels()
826 if (premul && (!tempProxy || !premulOnGpu)) { in writeSurfacePixels()
1102 bool premul = SkToBool(kUnpremul_PixelOpsFlag & pixelOpsFlags); in writeSurfacePixels2() local
1103 bool convert = premul; in writeSurfacePixels2()
1105 if (!valid_pixel_conversion(srcColorType, dstProxy->config(), premul)) { in writeSurfacePixels2()
1126 auto srcAlphaType = premul ? kUnpremul_SkAlphaType : kPremul_SkAlphaType; in writeSurfacePixels2()
/external/skqp/src/gpu/effects/
DGrPremulInputFragmentProcessor.fp19 return input.premul();
DGrPremulInputFragmentProcessor.h20 return input.premul(); in constantOutputForConstantInput()
/external/skia/src/gpu/effects/
DGrPremulInputFragmentProcessor.fp19 return input.premul();
DGrPremulInputFragmentProcessor.h20 return input.premul(); in constantOutputForConstantInput()
/external/skqp/src/gpu/
DSkGr.cpp246 return SkColorToUnpremulGrColor4f(c, colorSpaceInfo).premul(); in SkColorToPremulGrColor4f()
250 return GrColor4f::FromGrColor(SkColorToUnpremulGrColor(c)).premul(); in SkColorToPremulGrColor4fLegacy()
459 grPaint->setColor4f(origColor.premul()); in skpaint_to_grpaint_impl()
471 colorFilter->filterColor4f(origColor.toSkColor4f())).premul()); in skpaint_to_grpaint_impl()
DGrContext.cpp521 const bool premul = SkToBool(kUnpremul_PixelOpsFlag & pixelOpsFlags); in writeSurfacePixels() local
522 if (!valid_pixel_conversion(srcConfig, dstProxy->config(), premul)) { in writeSurfacePixels()
529 premul && pm_upm_must_round_trip(srcConfig, srcColorSpace) && in writeSurfacePixels()
534 bool premulOnGpu = premul && in writeSurfacePixels()
571 if (premul && (!tempProxy || !premulOnGpu)) { in writeSurfacePixels()
/external/skqp/src/core/
DSkColorFilter.cpp68 SkPM4f dst, src = c.premul(); in filterColor4f()
251 p->append(SkRasterPipeline::premul); in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
/external/skia/src/core/
DSkColorFilter.cpp68 SkPM4f dst, src = c.premul(); in filterColor4f()
248 p->append(SkRasterPipeline::premul); in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()

1234