Home
last modified time | relevance | path

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

/third_party/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 …]
/third_party/flutter/skia/src/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()
/third_party/flutter/skia/src/gpu/glsl/
DGrGLSLBlend.cpp441 SkBlendModeCoeff srcCoeff, dstCoeff; in AppendMode() local
442 if (SkBlendMode_AsCoeff(mode, &srcCoeff, &dstCoeff)) { in AppendMode()
454 if(!append_porterduff_term(fsBuilder, dstCoeff, dstColor, srcColor, dstColor, didAppend)) { in AppendMode()
469 SkBlendModeCoeff srcCoeff, dstCoeff; in AppendRegionOp() local
473 dstCoeff = SkBlendModeCoeff::kZero; in AppendRegionOp()
477 dstCoeff = SkBlendModeCoeff::kZero; in AppendRegionOp()
481 dstCoeff = SkBlendModeCoeff::kISC; in AppendRegionOp()
485 dstCoeff = SkBlendModeCoeff::kISC; in AppendRegionOp()
489 dstCoeff = SkBlendModeCoeff::kISC; in AppendRegionOp()
493 dstCoeff = SkBlendModeCoeff::kZero; in AppendRegionOp()
[all …]
/third_party/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 …]
/third_party/flutter/skia/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 …]
/third_party/flutter/skia/src/gpu/vk/
DGrVkPipeline.cpp436 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in setup_color_blend_state() local
438 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff; in setup_color_blend_state()
444 attachmentState->dstColorBlendFactor = blend_coeff_to_vk_blend(dstCoeff); in setup_color_blend_state()
447 attachmentState->dstAlphaBlendFactor = blend_coeff_to_vk_blend(dstCoeff); in setup_color_blend_state()
631 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in SetDynamicBlendConstantState() local
633 if (blend_coeff_refs_constant(srcCoeff) || blend_coeff_refs_constant(dstCoeff)) { in SetDynamicBlendConstantState()
/third_party/skia/src/gpu/vk/
DGrVkPipeline.cpp394 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in setup_color_blend_state() local
395 bool blendOff = GrBlendShouldDisable(equation, srcCoeff, dstCoeff); in setup_color_blend_state()
401 attachmentState->dstColorBlendFactor = blend_coeff_to_vk_blend(dstCoeff); in setup_color_blend_state()
404 attachmentState->dstAlphaBlendFactor = blend_coeff_to_vk_blend(dstCoeff); in setup_color_blend_state()
658 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in SetDynamicBlendConstantState() local
660 if (GrBlendCoeffRefsConstant(srcCoeff) || GrBlendCoeffRefsConstant(dstCoeff)) { in SetDynamicBlendConstantState()
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlPipelineStateBuilder.mm284 GrBlendCoeff dstCoeff = blendInfo.fDstBlend;
286 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff;
291 mtlColorAttachment.destinationRGBBlendFactor = blend_coeff_to_mtl_blend(dstCoeff);
294 mtlColorAttachment.destinationAlphaBlendFactor = blend_coeff_to_mtl_blend(dstCoeff);
DGrMtlPipelineState.mm180 GrBlendCoeff dstCoeff = blendInfo.fDstBlend;
181 if (blend_coeff_refs_constant(srcCoeff) || blend_coeff_refs_constant(dstCoeff)) {
/third_party/skia/src/gpu/d3d/
DGrD3DPipelineStateBuilder.cpp359 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in fill_in_blend_state() local
360 bool blendOff = GrBlendShouldDisable(equation, srcCoeff, dstCoeff); in fill_in_blend_state()
366 rtBlend.DestBlend = blend_coeff_to_d3d_blend(dstCoeff); in fill_in_blend_state()
369 rtBlend.DestBlendAlpha = blend_coeff_to_d3d_blend_for_alpha(dstCoeff); in fill_in_blend_state()
DGrD3DOpsRenderPass.cpp98 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in set_blend_factor() local
100 if (GrBlendCoeffRefsConstant(srcCoeff) || GrBlendCoeffRefsConstant(dstCoeff)) { in set_blend_factor()
/third_party/flutter/skia/src/gpu/dawn/
DGrDawnProgramBuilder.cpp189 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in create_color_state() local
192 dawn::BlendFactor dstFactor = to_dawn_blend_factor(dstCoeff); in create_color_state()
194 dawn::BlendFactor dstFactorAlpha = to_dawn_blend_factor_for_alpha(dstCoeff); in create_color_state()
/third_party/skia/src/gpu/mtl/
DGrMtlPipelineState.mm169 GrBlendCoeff dstCoeff = blendInfo.fDstBlend;
170 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);
/third_party/skia/src/gpu/dawn/
DGrDawnProgramBuilder.cpp180 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in create_blend_state() local
183 wgpu::BlendFactor dstFactor = to_dawn_blend_factor(dstCoeff); in create_blend_state()
185 wgpu::BlendFactor dstFactorAlpha = to_dawn_blend_factor_for_alpha(dstCoeff); in create_blend_state()
/third_party/flutter/skia/src/gpu/gl/
DGrGLGpu.cpp2728 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in flushBlendAndColorWrite() local
2734 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff) || in flushBlendAndColorWrite()
2772 if (fHWBlendState.fSrcCoeff != srcCoeff || fHWBlendState.fDstCoeff != dstCoeff) { in flushBlendAndColorWrite()
2774 gXfermodeCoeff2Blend[dstCoeff])); in flushBlendAndColorWrite()
2776 fHWBlendState.fDstCoeff = dstCoeff; in flushBlendAndColorWrite()
2779 if ((BlendCoeffReferencesConstant(srcCoeff) || BlendCoeffReferencesConstant(dstCoeff))) { in flushBlendAndColorWrite()
/third_party/skia/src/gpu/gl/
DGrGLGpu.cpp2549 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; in flushBlendAndColorWrite() local
2553 bool blendOff = GrBlendShouldDisable(equation, srcCoeff, dstCoeff) || in flushBlendAndColorWrite()
2606 if (fHWBlendState.fSrcCoeff != srcCoeff || fHWBlendState.fDstCoeff != dstCoeff) { in flushBlendAndColorWrite()
2608 gXfermodeCoeff2Blend[dstCoeff])); in flushBlendAndColorWrite()
2610 fHWBlendState.fDstCoeff = dstCoeff; in flushBlendAndColorWrite()
2613 if (GrBlendCoeffRefsConstant(srcCoeff) || GrBlendCoeffRefsConstant(dstCoeff)) { in flushBlendAndColorWrite()