/external/skqp/include/gpu/ |
D | GrBlend.h | 91 static constexpr bool GrBlendCoeffsUseSrcColor(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in GrBlendCoeffsUseSrcColor() argument 92 return kZero_GrBlendCoeff != srcCoeff || GrBlendCoeffRefsSrc(dstCoeff); in GrBlendCoeffsUseSrcColor() 95 static constexpr bool GrBlendCoeffsUseDstColor(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in GrBlendCoeffsUseDstColor() argument 96 return GrBlendCoeffRefsDst(srcCoeff) || kZero_GrBlendCoeff != dstCoeff; in GrBlendCoeffsUseDstColor() 104 GrBlendCoeff dstCoeff) { in GrBlendModifiesDst() argument 106 kZero_GrBlendCoeff != srcCoeff || kOne_GrBlendCoeff != dstCoeff; in GrBlendModifiesDst() 138 GrBlendCoeff dstCoeff) { in GrBlendAllowsCoverageAsAlpha() argument 140 !GrBlendModifiesDst(equation, srcCoeff, dstCoeff) || in GrBlendAllowsCoverageAsAlpha() 143 (kOne_GrBlendCoeff == dstCoeff || kISC_GrBlendCoeff == dstCoeff || in GrBlendAllowsCoverageAsAlpha() 144 kISA_GrBlendCoeff == dstCoeff)); in GrBlendAllowsCoverageAsAlpha()
|
/external/skia/include/gpu/ |
D | GrBlend.h | 91 static constexpr bool GrBlendCoeffsUseSrcColor(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in GrBlendCoeffsUseSrcColor() argument 92 return kZero_GrBlendCoeff != srcCoeff || GrBlendCoeffRefsSrc(dstCoeff); in GrBlendCoeffsUseSrcColor() 95 static constexpr bool GrBlendCoeffsUseDstColor(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in GrBlendCoeffsUseDstColor() argument 96 return GrBlendCoeffRefsDst(srcCoeff) || kZero_GrBlendCoeff != dstCoeff; in GrBlendCoeffsUseDstColor() 104 GrBlendCoeff dstCoeff) { in GrBlendModifiesDst() argument 106 kZero_GrBlendCoeff != srcCoeff || kOne_GrBlendCoeff != dstCoeff; in GrBlendModifiesDst() 138 GrBlendCoeff dstCoeff) { in GrBlendAllowsCoverageAsAlpha() argument 140 !GrBlendModifiesDst(equation, srcCoeff, dstCoeff) || in GrBlendAllowsCoverageAsAlpha() 143 (kOne_GrBlendCoeff == dstCoeff || kISC_GrBlendCoeff == dstCoeff || in GrBlendAllowsCoverageAsAlpha() 144 kISA_GrBlendCoeff == dstCoeff)); in GrBlendAllowsCoverageAsAlpha()
|
/external/skqp/src/gpu/glsl/ |
D | GrGLSLBlend.cpp | 442 SkBlendModeCoeff srcCoeff, dstCoeff; in AppendMode() local 443 if (SkBlendMode_AsCoeff(mode, &srcCoeff, &dstCoeff)) { in AppendMode() 455 if(!append_porterduff_term(fsBuilder, dstCoeff, dstColor, srcColor, dstColor, didAppend)) { in AppendMode() 470 SkBlendModeCoeff srcCoeff, dstCoeff; in AppendRegionOp() local 474 dstCoeff = SkBlendModeCoeff::kZero; in AppendRegionOp() 478 dstCoeff = SkBlendModeCoeff::kZero; in AppendRegionOp() 482 dstCoeff = SkBlendModeCoeff::kISC; in AppendRegionOp() 486 dstCoeff = SkBlendModeCoeff::kISC; in AppendRegionOp() 490 dstCoeff = SkBlendModeCoeff::kISC; in AppendRegionOp() 494 dstCoeff = SkBlendModeCoeff::kZero; in AppendRegionOp() [all …]
|
/external/skia/src/gpu/glsl/ |
D | GrGLSLBlend.cpp | 442 SkBlendModeCoeff srcCoeff, dstCoeff; in AppendMode() local 443 if (SkBlendMode_AsCoeff(mode, &srcCoeff, &dstCoeff)) { in AppendMode() 455 if(!append_porterduff_term(fsBuilder, dstCoeff, dstColor, srcColor, dstColor, didAppend)) { in AppendMode() 470 SkBlendModeCoeff srcCoeff, dstCoeff; in AppendRegionOp() local 474 dstCoeff = SkBlendModeCoeff::kZero; in AppendRegionOp() 478 dstCoeff = SkBlendModeCoeff::kZero; in AppendRegionOp() 482 dstCoeff = SkBlendModeCoeff::kISC; in AppendRegionOp() 486 dstCoeff = SkBlendModeCoeff::kISC; in AppendRegionOp() 490 dstCoeff = SkBlendModeCoeff::kISC; in AppendRegionOp() 494 dstCoeff = SkBlendModeCoeff::kZero; in AppendRegionOp() [all …]
|
/external/skqp/src/gpu/effects/ |
D | GrPorterDuffXferProcessor.cpp | 46 GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) in BlendFormula() argument 51 , fDstCoeff(dstCoeff) in BlendFormula() 52 , fProps(GetProperties(primaryOut, secondaryOut, equation, srcCoeff, dstCoeff)) {} in BlendFormula() 97 GrBlendCoeff dstCoeff() const { in dstCoeff() function in BlendFormula 194 static constexpr BlendFormula MakeCoeffFormula(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in MakeCoeffFormula() argument 197 (kZero_GrBlendCoeff == dstCoeff || kOne_GrBlendCoeff == dstCoeff)) in MakeCoeffFormula() 199 kAdd_GrBlendEquation, kZero_GrBlendCoeff, dstCoeff) in MakeCoeffFormula() 201 kAdd_GrBlendEquation, srcCoeff, dstCoeff); in MakeCoeffFormula() 208 static constexpr BlendFormula MakeSAModulateFormula(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in MakeSAModulateFormula() argument 210 kAdd_GrBlendEquation, srcCoeff, dstCoeff); in MakeSAModulateFormula() [all …]
|
/external/skia/src/gpu/effects/ |
D | GrPorterDuffXferProcessor.cpp | 46 GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) in BlendFormula() argument 51 , fDstCoeff(dstCoeff) in BlendFormula() 52 , fProps(GetProperties(primaryOut, secondaryOut, equation, srcCoeff, dstCoeff)) {} in BlendFormula() 97 GrBlendCoeff dstCoeff() const { in dstCoeff() function in BlendFormula 194 static constexpr BlendFormula MakeCoeffFormula(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in MakeCoeffFormula() argument 197 (kZero_GrBlendCoeff == dstCoeff || kOne_GrBlendCoeff == dstCoeff)) in MakeCoeffFormula() 199 kAdd_GrBlendEquation, kZero_GrBlendCoeff, dstCoeff) in MakeCoeffFormula() 201 kAdd_GrBlendEquation, srcCoeff, dstCoeff); in MakeCoeffFormula() 208 static constexpr BlendFormula MakeSAModulateFormula(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in MakeSAModulateFormula() argument 210 kAdd_GrBlendEquation, srcCoeff, dstCoeff); in MakeSAModulateFormula() [all …]
|
/external/skia/src/gpu/vk/ |
D | GrVkPipeline.cpp | 360 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in setup_color_blend_state() local 362 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff; in setup_color_blend_state() 368 attachmentState->dstColorBlendFactor = blend_coeff_to_vk_blend(dstCoeff); in setup_color_blend_state() 371 attachmentState->dstAlphaBlendFactor = blend_coeff_to_vk_blend(dstCoeff); in setup_color_blend_state() 550 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in SetDynamicBlendConstantState() local 552 if (blend_coeff_refs_constant(srcCoeff) || blend_coeff_refs_constant(dstCoeff)) { in SetDynamicBlendConstantState()
|
/external/skqp/src/gpu/vk/ |
D | GrVkPipeline.cpp | 360 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in setup_color_blend_state() local 362 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff; in setup_color_blend_state() 368 attachmentState->dstColorBlendFactor = blend_coeff_to_vk_blend(dstCoeff); in setup_color_blend_state() 371 attachmentState->dstAlphaBlendFactor = blend_coeff_to_vk_blend(dstCoeff); in setup_color_blend_state() 550 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in SetDynamicBlendConstantState() local 552 if (blend_coeff_refs_constant(srcCoeff) || blend_coeff_refs_constant(dstCoeff)) { in SetDynamicBlendConstantState()
|
/external/skia/src/gpu/ |
D | GrBlend.cpp | 111 void GrGetCoeffBlendKnownComponents(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff, in GrGetCoeffBlendKnownComponents() argument 120 MaskedColor dstTerm = get_term(dstCoeff, src, dst, dst); in GrGetCoeffBlendKnownComponents()
|
/external/skqp/src/gpu/ |
D | GrBlend.cpp | 110 void GrGetCoeffBlendKnownComponents(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff, in GrGetCoeffBlendKnownComponents() argument 119 MaskedColor dstTerm = get_term(dstCoeff, src, dst, dst); in GrGetCoeffBlendKnownComponents()
|
/external/skqp/src/gpu/gl/ |
D | GrGLGpu.cpp | 2900 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in flushBlend() local 2902 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff; in flushBlend() 2940 if (fHWBlendState.fSrcCoeff != srcCoeff || fHWBlendState.fDstCoeff != dstCoeff) { in flushBlend() 2942 gXfermodeCoeff2Blend[dstCoeff])); in flushBlend() 2944 fHWBlendState.fDstCoeff = dstCoeff; in flushBlend() 2947 if ((BlendCoeffReferencesConstant(srcCoeff) || BlendCoeffReferencesConstant(dstCoeff))) { in flushBlend()
|
/external/skia/src/gpu/gl/ |
D | GrGLGpu.cpp | 2880 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in flushBlend() local 2882 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff; in flushBlend() 2920 if (fHWBlendState.fSrcCoeff != srcCoeff || fHWBlendState.fDstCoeff != dstCoeff) { in flushBlend() 2922 gXfermodeCoeff2Blend[dstCoeff])); in flushBlend() 2924 fHWBlendState.fDstCoeff = dstCoeff; in flushBlend() 2927 if ((BlendCoeffReferencesConstant(srcCoeff) || BlendCoeffReferencesConstant(dstCoeff))) { in flushBlend()
|