/external/skia/src/shaders/gradients/ |
D | Sk4fGradientPriv.h | 54 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 …]
|
D | Sk4fLinearGradient.cpp | 16 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 …]
|
D | Sk4fLinearGradient.h | 28 template <typename dstType, ApplyPremul premul> 31 template <typename dstType, 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 const Sk4f pm4f = premul in pack_color() 16 ? c4f.premul().to4f() in pack_color()
|
/external/skqp/src/shaders/gradients/ |
D | Sk4fGradientPriv.h | 54 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 …]
|
D | Sk4fLinearGradient.cpp | 16 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 …]
|
D | Sk4fLinearGradient.h | 28 template <typename dstType, ApplyPremul premul> 31 template <typename dstType, 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 const Sk4f pm4f = premul in pack_color() 16 ? c4f.premul().to4f() in pack_color()
|
/external/skia/src/shaders/ |
D | SkColorShader.cpp | 59 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/ |
D | SkColorShader.cpp | 59 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/ |
D | bitmap.py | 37 premul = 2 variable in AlphaType 69 elif alpha_type == AlphaType.premul.value:
|
/external/skqp/tools/gdb/ |
D | bitmap.py | 37 premul = 2 variable in AlphaType 69 elif alpha_type == AlphaType.premul.value:
|
/external/skia/tests/ |
D | SkColor4fTest.cpp | 53 SkPM4f pm4 = c4.premul(); in DEF_TEST() 62 pm4 = c4.premul(); in DEF_TEST()
|
/external/skqp/tests/ |
D | SkColor4fTest.cpp | 53 SkPM4f pm4 = c4.premul(); in DEF_TEST() 62 pm4 = c4.premul(); in DEF_TEST()
|
D | Float16Test.cpp | 51 SkPM4f origpm4 = c4.premul(); in DEF_TEST()
|
/external/skia/src/gpu/ |
D | SkGr.cpp | 219 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()
|
D | GrContext.cpp | 771 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/ |
D | GrPremulInputFragmentProcessor.fp | 19 return input.premul();
|
D | GrPremulInputFragmentProcessor.h | 20 return input.premul(); in constantOutputForConstantInput()
|
/external/skia/src/gpu/effects/ |
D | GrPremulInputFragmentProcessor.fp | 19 return input.premul();
|
D | GrPremulInputFragmentProcessor.h | 20 return input.premul(); in constantOutputForConstantInput()
|
/external/skqp/src/gpu/ |
D | SkGr.cpp | 246 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()
|
D | GrContext.cpp | 521 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/ |
D | SkColorFilter.cpp | 68 SkPM4f dst, src = c.premul(); in filterColor4f() 251 p->append(SkRasterPipeline::premul); in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
|
/external/skia/src/core/ |
D | SkColorFilter.cpp | 68 SkPM4f dst, src = c.premul(); in filterColor4f() 248 p->append(SkRasterPipeline::premul); in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
|