Home
last modified time | relevance | path

Searched refs:dstCoeff (Results 1 – 16 of 16) sorted by relevance

/external/skia/src/gpu/
DGrBlend.h92 static constexpr bool GrBlendCoeffsUseSrcColor(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in GrBlendCoeffsUseSrcColor() argument
93 return kZero_GrBlendCoeff != srcCoeff || GrBlendCoeffRefsSrc(dstCoeff); in GrBlendCoeffsUseSrcColor()
96 static constexpr bool GrBlendCoeffsUseDstColor(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff, in GrBlendCoeffsUseDstColor() argument
99 (dstCoeff != kZero_GrBlendCoeff && !(dstCoeff == kISA_GrBlendCoeff && srcColorIsOpaque)); in GrBlendCoeffsUseDstColor()
108 GrBlendCoeff dstCoeff) { in GrBlendModifiesDst() argument
110 kZero_GrBlendCoeff != srcCoeff || kOne_GrBlendCoeff != dstCoeff; in GrBlendModifiesDst()
118 GrBlendCoeff dstCoeff) { in GrBlendShouldDisable() argument
120 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff; in GrBlendShouldDisable()
152 GrBlendCoeff dstCoeff) { in GrBlendAllowsCoverageAsAlpha() argument
154 !GrBlendModifiesDst(equation, srcCoeff, dstCoeff) || in GrBlendAllowsCoverageAsAlpha()
[all …]
/external/skqp/include/gpu/
DGrBlend.h94 static constexpr bool GrBlendCoeffsUseSrcColor(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in GrBlendCoeffsUseSrcColor() argument
95 return kZero_GrBlendCoeff != srcCoeff || GrBlendCoeffRefsSrc(dstCoeff); in GrBlendCoeffsUseSrcColor()
98 static constexpr bool GrBlendCoeffsUseDstColor(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in GrBlendCoeffsUseDstColor() argument
99 return GrBlendCoeffRefsDst(srcCoeff) || kZero_GrBlendCoeff != dstCoeff; in GrBlendCoeffsUseDstColor()
108 GrBlendCoeff dstCoeff) { in GrBlendModifiesDst() argument
110 kZero_GrBlendCoeff != srcCoeff || kOne_GrBlendCoeff != dstCoeff; in GrBlendModifiesDst()
142 GrBlendCoeff dstCoeff) { in GrBlendAllowsCoverageAsAlpha() argument
144 !GrBlendModifiesDst(equation, srcCoeff, dstCoeff) || in GrBlendAllowsCoverageAsAlpha()
147 (kOne_GrBlendCoeff == dstCoeff || kISC_GrBlendCoeff == dstCoeff || in GrBlendAllowsCoverageAsAlpha()
148 kISA_GrBlendCoeff == dstCoeff)); in GrBlendAllowsCoverageAsAlpha()
/external/skqp/src/gpu/glsl/
DGrGLSLBlend.cpp442 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/
DGrPorterDuffXferProcessor.cpp47 GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) in BlendFormula() argument
52 , fDstCoeff(dstCoeff) in BlendFormula()
53 , fProps(GetProperties(primaryOut, secondaryOut, equation, srcCoeff, dstCoeff)) {} in BlendFormula()
98 GrBlendCoeff dstCoeff() const { in dstCoeff() function in BlendFormula
195 static constexpr BlendFormula MakeCoeffFormula(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in MakeCoeffFormula() argument
198 (kZero_GrBlendCoeff == dstCoeff || kOne_GrBlendCoeff == dstCoeff)) in MakeCoeffFormula()
200 kAdd_GrBlendEquation, kZero_GrBlendCoeff, dstCoeff) in MakeCoeffFormula()
202 kAdd_GrBlendEquation, srcCoeff, dstCoeff); in MakeCoeffFormula()
209 static constexpr BlendFormula MakeSAModulateFormula(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in MakeSAModulateFormula() argument
211 kAdd_GrBlendEquation, srcCoeff, dstCoeff); in MakeSAModulateFormula()
[all …]
/external/skia/src/gpu/effects/
DGrPorterDuffXferProcessor.cpp45 GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) in BlendFormula() argument
50 , fDstCoeff(dstCoeff) in BlendFormula()
51 , fProps(GetProperties(primaryOut, secondaryOut, equation, srcCoeff, dstCoeff)) {} in BlendFormula()
94 GrBlendCoeff dstCoeff() const { in dstCoeff() function in BlendFormula
184 static constexpr BlendFormula MakeCoeffFormula(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in MakeCoeffFormula() argument
187 (kZero_GrBlendCoeff == dstCoeff || kOne_GrBlendCoeff == dstCoeff)) in MakeCoeffFormula()
189 kAdd_GrBlendEquation, kZero_GrBlendCoeff, dstCoeff) in MakeCoeffFormula()
191 kAdd_GrBlendEquation, srcCoeff, dstCoeff); in MakeCoeffFormula()
198 static constexpr BlendFormula MakeSAModulateFormula(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in MakeSAModulateFormula() argument
200 kAdd_GrBlendEquation, srcCoeff, dstCoeff); in MakeSAModulateFormula()
[all …]
/external/skqp/src/gpu/vk/
DGrVkPipeline.cpp434 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in setup_color_blend_state() local
436 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff; in setup_color_blend_state()
442 attachmentState->dstColorBlendFactor = blend_coeff_to_vk_blend(dstCoeff); in setup_color_blend_state()
445 attachmentState->dstAlphaBlendFactor = blend_coeff_to_vk_blend(dstCoeff); in setup_color_blend_state()
623 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in SetDynamicBlendConstantState() local
625 if (blend_coeff_refs_constant(srcCoeff) || blend_coeff_refs_constant(dstCoeff)) { in SetDynamicBlendConstantState()
/external/skia/src/gpu/vk/
DGrVkPipeline.cpp417 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in setup_color_blend_state() local
418 bool blendOff = GrBlendShouldDisable(equation, srcCoeff, dstCoeff); in setup_color_blend_state()
424 attachmentState->dstColorBlendFactor = blend_coeff_to_vk_blend(dstCoeff); in setup_color_blend_state()
427 attachmentState->dstAlphaBlendFactor = blend_coeff_to_vk_blend(dstCoeff); in setup_color_blend_state()
690 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in SetDynamicBlendConstantState() local
692 if (GrBlendCoeffRefsConstant(srcCoeff) || GrBlendCoeffRefsConstant(dstCoeff)) { in SetDynamicBlendConstantState()
/external/skqp/src/gpu/mtl/
DGrMtlPipelineStateBuilder.mm285 GrBlendCoeff dstCoeff = blendInfo.fDstBlend;
287 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff;
292 mtlColorAttachment.destinationRGBBlendFactor = blend_coeff_to_mtl_blend(dstCoeff);
295 mtlColorAttachment.destinationAlphaBlendFactor = blend_coeff_to_mtl_blend(dstCoeff);
DGrMtlPipelineState.mm185 GrBlendCoeff dstCoeff = blendInfo.fDstBlend;
186 if (blend_coeff_refs_constant(srcCoeff) || blend_coeff_refs_constant(dstCoeff)) {
/external/skia/src/gpu/d3d/
DGrD3DPipelineStateBuilder.cpp364 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in fill_in_blend_state() local
365 bool blendOff = GrBlendShouldDisable(equation, srcCoeff, dstCoeff); in fill_in_blend_state()
371 rtBlend.DestBlend = blend_coeff_to_d3d_blend(dstCoeff); in fill_in_blend_state()
374 rtBlend.DestBlendAlpha = blend_coeff_to_d3d_blend_for_alpha(dstCoeff); in fill_in_blend_state()
DGrD3DOpsRenderPass.cpp97 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in set_blend_factor() local
99 if (GrBlendCoeffRefsConstant(srcCoeff) || GrBlendCoeffRefsConstant(dstCoeff)) { in set_blend_factor()
/external/skia/src/gpu/mtl/
DGrMtlPipelineState.mm164 GrBlendCoeff dstCoeff = blendInfo.fDstBlend;
165 if (GrBlendCoeffRefsConstant(srcCoeff) || GrBlendCoeffRefsConstant(dstCoeff)) {
DGrMtlPipelineStateBuilder.mm355 GrBlendCoeff dstCoeff = blendInfo.fDstBlend;
356 bool blendOn = !GrBlendShouldDisable(equation, srcCoeff, dstCoeff);
364 mtlColorAttachment.destinationRGBBlendFactor = blend_coeff_to_mtl_blend(dstCoeff);
367 mtlColorAttachment.destinationAlphaBlendFactor = blend_coeff_to_mtl_blend(dstCoeff);
/external/skia/src/gpu/dawn/
DGrDawnProgramBuilder.cpp179 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in create_blend_state() local
182 wgpu::BlendFactor dstFactor = to_dawn_blend_factor(dstCoeff); in create_blend_state()
184 wgpu::BlendFactor dstFactorAlpha = to_dawn_blend_factor_for_alpha(dstCoeff); in create_blend_state()
/external/skia/src/gpu/gl/
DGrGLGpu.cpp2534 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in flushBlendAndColorWrite() local
2538 bool blendOff = GrBlendShouldDisable(equation, srcCoeff, dstCoeff) || in flushBlendAndColorWrite()
2576 if (fHWBlendState.fSrcCoeff != srcCoeff || fHWBlendState.fDstCoeff != dstCoeff) { in flushBlendAndColorWrite()
2578 gXfermodeCoeff2Blend[dstCoeff])); in flushBlendAndColorWrite()
2580 fHWBlendState.fDstCoeff = dstCoeff; in flushBlendAndColorWrite()
2583 if ((GrBlendCoeffRefsConstant(srcCoeff) || GrBlendCoeffRefsConstant(dstCoeff))) { in flushBlendAndColorWrite()
/external/skqp/src/gpu/gl/
DGrGLGpu.cpp2865 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in flushBlend() local
2868 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff) || in flushBlend()
2907 if (fHWBlendState.fSrcCoeff != srcCoeff || fHWBlendState.fDstCoeff != dstCoeff) { in flushBlend()
2909 gXfermodeCoeff2Blend[dstCoeff])); in flushBlend()
2911 fHWBlendState.fDstCoeff = dstCoeff; in flushBlend()
2914 if ((BlendCoeffReferencesConstant(srcCoeff) || BlendCoeffReferencesConstant(dstCoeff))) { in flushBlend()