/third_party/skia/src/gpu/ |
D | GrBlend.h | 92 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/ |
D | GrBlend.h | 94 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/ |
D | GrGLSLBlend.cpp | 441 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/ |
D | GrPorterDuffXferProcessor.cpp | 45 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/ |
D | GrPorterDuffXferProcessor.cpp | 47 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/ |
D | GrVkPipeline.cpp | 436 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/ |
D | GrVkPipeline.cpp | 394 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/ |
D | GrMtlPipelineStateBuilder.mm | 284 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);
|
D | GrMtlPipelineState.mm | 180 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; 181 if (blend_coeff_refs_constant(srcCoeff) || blend_coeff_refs_constant(dstCoeff)) {
|
/third_party/skia/src/gpu/d3d/ |
D | GrD3DPipelineStateBuilder.cpp | 359 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()
|
D | GrD3DOpsRenderPass.cpp | 98 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/ |
D | GrDawnProgramBuilder.cpp | 189 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/ |
D | GrMtlPipelineState.mm | 169 GrBlendCoeff dstCoeff = blendInfo.fDstBlend; 170 if (GrBlendCoeffRefsConstant(srcCoeff) || GrBlendCoeffRefsConstant(dstCoeff)) {
|
D | GrMtlPipelineStateBuilder.mm | 355 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/ |
D | GrDawnProgramBuilder.cpp | 180 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/ |
D | GrGLGpu.cpp | 2728 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/ |
D | GrGLGpu.cpp | 2549 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()
|