Home
last modified time | relevance | path

Searched refs:srcCoeff (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
98 return GrBlendCoeffRefsDst(srcCoeff) || in GrBlendCoeffsUseDstColor()
107 static constexpr bool GrBlendModifiesDst(GrBlendEquation equation, GrBlendCoeff srcCoeff, in GrBlendModifiesDst() argument
110 kZero_GrBlendCoeff != srcCoeff || kOne_GrBlendCoeff != dstCoeff; in GrBlendModifiesDst()
117 static constexpr bool GrBlendShouldDisable(GrBlendEquation equation, GrBlendCoeff srcCoeff, in GrBlendShouldDisable() argument
120 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff; in GrBlendShouldDisable()
151 GrBlendCoeff srcCoeff, 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()
107 static constexpr bool GrBlendModifiesDst(GrBlendEquation equation, GrBlendCoeff srcCoeff, in GrBlendModifiesDst() argument
110 kZero_GrBlendCoeff != srcCoeff || kOne_GrBlendCoeff != dstCoeff; in GrBlendModifiesDst()
141 GrBlendCoeff srcCoeff, in GrBlendAllowsCoverageAsAlpha() argument
144 !GrBlendModifiesDst(equation, srcCoeff, dstCoeff) || in GrBlendAllowsCoverageAsAlpha()
146 !GrBlendCoeffRefsSrc(srcCoeff) && 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()
451 bool didAppend = append_porterduff_term(fsBuilder, srcCoeff, srcColor, srcColor, dstColor, in AppendMode()
469 SkBlendModeCoeff srcCoeff, dstCoeff; in AppendRegionOp() local
472 srcCoeff = SkBlendModeCoeff::kOne; in AppendRegionOp()
476 srcCoeff = SkBlendModeCoeff::kDC; in AppendRegionOp()
480 srcCoeff = SkBlendModeCoeff::kOne; in AppendRegionOp()
484 srcCoeff = SkBlendModeCoeff::kIDC; in AppendRegionOp()
488 srcCoeff = SkBlendModeCoeff::kZero; in AppendRegionOp()
492 srcCoeff = SkBlendModeCoeff::kIDC; in AppendRegionOp()
[all …]
/third_party/skia/src/gpu/effects/
DGrPorterDuffXferProcessor.cpp45 GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) in BlendFormula() argument
49 , fSrcCoeff(srcCoeff) in BlendFormula()
51 , fProps(GetProperties(primaryOut, secondaryOut, equation, srcCoeff, dstCoeff)) {} in BlendFormula()
90 GrBlendCoeff srcCoeff() const { in srcCoeff() function in BlendFormula
184 static constexpr BlendFormula MakeCoeffFormula(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in MakeCoeffFormula() argument
186 return (kZero_GrBlendCoeff == srcCoeff && 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()
218 BlendFormula::OutputType oneMinusDstCoeffModulateOutput, GrBlendCoeff srcCoeff) { in MakeCoverageFormula() argument
[all …]
/third_party/flutter/skia/src/gpu/effects/
DGrPorterDuffXferProcessor.cpp47 GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) in BlendFormula() argument
51 , fSrcCoeff(srcCoeff) in BlendFormula()
53 , fProps(GetProperties(primaryOut, secondaryOut, equation, srcCoeff, dstCoeff)) {} in BlendFormula()
93 GrBlendCoeff srcCoeff() const { in srcCoeff() function in BlendFormula
195 static constexpr BlendFormula MakeCoeffFormula(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in MakeCoeffFormula() argument
197 return (kZero_GrBlendCoeff == srcCoeff && 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()
229 BlendFormula::OutputType oneMinusDstCoeffModulateOutput, GrBlendCoeff srcCoeff) { in MakeCoverageFormula() argument
[all …]
/third_party/skia/src/gpu/vk/
DGrVkPipeline.cpp393 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in setup_color_blend_state() local
395 bool blendOff = GrBlendShouldDisable(equation, srcCoeff, dstCoeff); in setup_color_blend_state()
400 attachmentState->srcColorBlendFactor = blend_coeff_to_vk_blend(srcCoeff); in setup_color_blend_state()
403 attachmentState->srcAlphaBlendFactor = blend_coeff_to_vk_blend(srcCoeff); in setup_color_blend_state()
657 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in SetDynamicBlendConstantState() local
660 if (GrBlendCoeffRefsConstant(srcCoeff) || GrBlendCoeffRefsConstant(dstCoeff)) { in SetDynamicBlendConstantState()
/third_party/flutter/skia/src/gpu/vk/
DGrVkPipeline.cpp435 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in setup_color_blend_state() local
438 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff; in setup_color_blend_state()
443 attachmentState->srcColorBlendFactor = blend_coeff_to_vk_blend(srcCoeff); in setup_color_blend_state()
446 attachmentState->srcAlphaBlendFactor = blend_coeff_to_vk_blend(srcCoeff); in setup_color_blend_state()
630 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in SetDynamicBlendConstantState() local
633 if (blend_coeff_refs_constant(srcCoeff) || blend_coeff_refs_constant(dstCoeff)) { in SetDynamicBlendConstantState()
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlPipelineStateBuilder.mm283 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend;
286 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff;
290 mtlColorAttachment.sourceRGBBlendFactor = blend_coeff_to_mtl_blend(srcCoeff);
293 mtlColorAttachment.sourceAlphaBlendFactor = blend_coeff_to_mtl_blend(srcCoeff);
DGrMtlPipelineState.mm179 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend;
181 if (blend_coeff_refs_constant(srcCoeff) || blend_coeff_refs_constant(dstCoeff)) {
/third_party/skia/src/gpu/d3d/
DGrD3DPipelineStateBuilder.cpp358 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in fill_in_blend_state() local
360 bool blendOff = GrBlendShouldDisable(equation, srcCoeff, dstCoeff); in fill_in_blend_state()
365 rtBlend.SrcBlend = blend_coeff_to_d3d_blend(srcCoeff); in fill_in_blend_state()
368 rtBlend.SrcBlendAlpha = blend_coeff_to_d3d_blend_for_alpha(srcCoeff); in fill_in_blend_state()
DGrD3DOpsRenderPass.cpp97 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in set_blend_factor() local
100 if (GrBlendCoeffRefsConstant(srcCoeff) || GrBlendCoeffRefsConstant(dstCoeff)) { in set_blend_factor()
/third_party/flutter/skia/src/gpu/dawn/
DGrDawnProgramBuilder.cpp188 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in create_color_state() local
191 dawn::BlendFactor srcFactor = to_dawn_blend_factor(srcCoeff); in create_color_state()
193 dawn::BlendFactor srcFactorAlpha = to_dawn_blend_factor_for_alpha(srcCoeff); in create_color_state()
/third_party/skia/src/gpu/mtl/
DGrMtlPipelineState.mm168 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend;
170 if (GrBlendCoeffRefsConstant(srcCoeff) || GrBlendCoeffRefsConstant(dstCoeff)) {
DGrMtlPipelineStateBuilder.mm354 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend;
356 bool blendOn = !GrBlendShouldDisable(equation, srcCoeff, dstCoeff);
363 mtlColorAttachment.sourceRGBBlendFactor = blend_coeff_to_mtl_blend(srcCoeff);
366 mtlColorAttachment.sourceAlphaBlendFactor = blend_coeff_to_mtl_blend(srcCoeff);
/third_party/skia/src/gpu/dawn/
DGrDawnProgramBuilder.cpp179 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in create_blend_state() local
182 wgpu::BlendFactor srcFactor = to_dawn_blend_factor(srcCoeff); in create_blend_state()
184 wgpu::BlendFactor srcFactorAlpha = to_dawn_blend_factor_for_alpha(srcCoeff); in create_blend_state()
/third_party/flutter/skia/src/gpu/gl/
DGrGLGpu.cpp2727 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in flushBlendAndColorWrite() local
2734 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff) || in flushBlendAndColorWrite()
2772 if (fHWBlendState.fSrcCoeff != srcCoeff || fHWBlendState.fDstCoeff != dstCoeff) { in flushBlendAndColorWrite()
2773 GL_CALL(BlendFunc(gXfermodeCoeff2Blend[srcCoeff], in flushBlendAndColorWrite()
2775 fHWBlendState.fSrcCoeff = srcCoeff; in flushBlendAndColorWrite()
2779 if ((BlendCoeffReferencesConstant(srcCoeff) || BlendCoeffReferencesConstant(dstCoeff))) { in flushBlendAndColorWrite()
/third_party/skia/src/gpu/gl/
DGrGLGpu.cpp2548 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in flushBlendAndColorWrite() local
2553 bool blendOff = GrBlendShouldDisable(equation, srcCoeff, dstCoeff) || in flushBlendAndColorWrite()
2606 if (fHWBlendState.fSrcCoeff != srcCoeff || fHWBlendState.fDstCoeff != dstCoeff) { in flushBlendAndColorWrite()
2607 GL_CALL(BlendFunc(gXfermodeCoeff2Blend[srcCoeff], in flushBlendAndColorWrite()
2609 fHWBlendState.fSrcCoeff = srcCoeff; in flushBlendAndColorWrite()
2613 if (GrBlendCoeffRefsConstant(srcCoeff) || GrBlendCoeffRefsConstant(dstCoeff)) { in flushBlendAndColorWrite()