Searched refs:premul (Results 1 - 25 of 79) sorted by relevance

1234

/external/skia/src/gpu/effects/
H A DGrPremulInputFragmentProcessor.fp19 return input.premul();
H A DGrPremulInputFragmentProcessor.h20 return input.premul();
/external/skqp/src/gpu/effects/
H A DGrPremulInputFragmentProcessor.fp19 return input.premul();
H A DGrPremulInputFragmentProcessor.h20 return input.premul();
/external/skia/src/shaders/gradients/
H A DSk4fGradientPriv.h47 // - store() Store one Sk4f to dest. Optionally handles premul, color space
54 template <typename dst, ApplyPremul premul>
57 template <ApplyPremul premul>
58 struct DstTraits<SkPMColor, premul> {
59 using PM = PremulTraits<premul>;
61 // For L32, prescaling by 255 saves a per-pixel multiplication when premul is not needed.
63 return premul == ApplyPremul::False
69 if (premul == ApplyPremul::False) {
88 if (premul == ApplyPremul::False) {
101 return premul
[all...]
H A DSk4fLinearGradient.h28 template <typename dstType, ApplyPremul premul>
31 template <typename dstType, ApplyPremul premul, SkShader::TileMode tileMode>
H A DSk4fLinearGradient.cpp16 template<typename dstType, ApplyPremul premul>
24 Sk4f c0 = c + DstTraits<dstType, premul>::pre_lerp_bias(bias0),
25 c1 = c + dc + DstTraits<dstType, premul>::pre_lerp_bias(bias1),
30 DstTraits<dstType, premul>::store4x(c0, c1, c2, c3, dst, bias0, bias1);
40 DstTraits<dstType, premul>::store(c0, dst++, bias0);
41 DstTraits<dstType, premul>::store(c1, dst++, bias1);
45 DstTraits<dstType, premul>::store(c0, dst, bias0);
170 // In premul interpolation mode, components are pre-scaled by 255 and the store
199 template<typename dstType, ApplyPremul premul>
209 this->shadeSpanInternal<dstType, premul, kClamp_TileMod
[all...]
H A DSk4fGradientBase.cpp14 Sk4f pack_color(const SkColor4f& c4f, bool premul, const Sk4f& component_scale) { argument
15 const Sk4f pm4f = premul
16 ? c4f.premul().to4f()
/external/skqp/src/shaders/gradients/
H A DSk4fGradientPriv.h47 // - store() Store one Sk4f to dest. Optionally handles premul, color space
54 template <typename dst, ApplyPremul premul>
57 template <ApplyPremul premul>
58 struct DstTraits<SkPMColor, premul> {
59 using PM = PremulTraits<premul>;
61 // For L32, prescaling by 255 saves a per-pixel multiplication when premul is not needed.
63 return premul == ApplyPremul::False
69 if (premul == ApplyPremul::False) {
88 if (premul == ApplyPremul::False) {
101 return premul
[all...]
H A DSk4fLinearGradient.h28 template <typename dstType, ApplyPremul premul>
31 template <typename dstType, ApplyPremul premul, SkShader::TileMode tileMode>
H A DSk4fLinearGradient.cpp16 template<typename dstType, ApplyPremul premul>
24 Sk4f c0 = c + DstTraits<dstType, premul>::pre_lerp_bias(bias0),
25 c1 = c + dc + DstTraits<dstType, premul>::pre_lerp_bias(bias1),
30 DstTraits<dstType, premul>::store4x(c0, c1, c2, c3, dst, bias0, bias1);
40 DstTraits<dstType, premul>::store(c0, dst++, bias0);
41 DstTraits<dstType, premul>::store(c1, dst++, bias1);
45 DstTraits<dstType, premul>::store(c0, dst, bias0);
170 // In premul interpolation mode, components are pre-scaled by 255 and the store
199 template<typename dstType, ApplyPremul premul>
206 this->shadeSpanInternal<dstType, premul, kClamp_TileMod
[all...]
H A DSk4fGradientBase.cpp14 Sk4f pack_color(const SkColor4f& c4f, bool premul, const Sk4f& component_scale) { argument
15 const Sk4f pm4f = premul
16 ? c4f.premul().to4f()
/external/skia/tools/gdb/
H A Dbitmap.py37 premul = 2 variable in class:AlphaType
69 elif alpha_type == AlphaType.premul.value:
/external/skqp/tools/gdb/
H A Dbitmap.py37 premul = 2 variable in class:AlphaType
69 elif alpha_type == AlphaType.premul.value:
/external/skia/tests/
H A DSkColor4fTest.cpp49 // First just test opaque colors, so that the premul should be exact
53 SkPM4f pm4 = c4.premul();
59 // We compare with a tolerance, in case our premul multiply is implemented at slightly
62 pm4 = c4.premul();
H A DFloat16Test.cpp51 SkPM4f origpm4 = c4.premul();
/external/skqp/tests/
H A DSkColor4fTest.cpp49 // First just test opaque colors, so that the premul should be exact
53 SkPM4f pm4 = c4.premul();
59 // We compare with a tolerance, in case our premul multiply is implemented at slightly
62 pm4 = c4.premul();
H A DFloat16Test.cpp51 SkPM4f origpm4 = c4.premul();
/external/skia/src/shaders/
H A DSkColorShader.cpp59 fPM4f = c4.premul();
175 fPM4f = c4.premul();
222 return GrConstColorProcessor::Make(color.premul(),
260 rec.fAlloc, to_colorspace(fColor4, fColorSpace.get(), rec.fDstCS).premul());
/external/skqp/src/shaders/
H A DSkColorShader.cpp59 fPM4f = c4.premul();
175 fPM4f = c4.premul();
222 return GrConstColorProcessor::Make(color.premul(),
260 rec.fAlloc, to_colorspace(fColor4, fColorSpace.get(), rec.fDstCS).premul());
/external/skia/include/core/
H A DSkColor.h188 SkPM4f premul() const;
/external/skia/src/gpu/text/
H A DGrTextUtils.cpp25 fFilteredPremulColor = filteredColor.premul().toGrColor();
/external/skqp/include/core/
H A DSkColor.h188 SkPM4f premul() const;
/external/skia/src/core/
H A DSkColorFilter.cpp68 SkPM4f dst, src = c.premul();
248 p->append(SkRasterPipeline::premul);
/external/skqp/src/core/
H A DSkColorFilter.cpp68 SkPM4f dst, src = c.premul();
251 p->append(SkRasterPipeline::premul);

Completed in 274 milliseconds

1234