Home
last modified time | relevance | path

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

/external/skqp/include/gpu/
DGrBlend.h91 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()
103 static constexpr bool GrBlendModifiesDst(GrBlendEquation equation, GrBlendCoeff srcCoeff, in GrBlendModifiesDst() argument
106 kZero_GrBlendCoeff != srcCoeff || kOne_GrBlendCoeff != dstCoeff; in GrBlendModifiesDst()
137 GrBlendCoeff srcCoeff, in GrBlendAllowsCoverageAsAlpha() argument
140 !GrBlendModifiesDst(equation, srcCoeff, dstCoeff) || in GrBlendAllowsCoverageAsAlpha()
142 !GrBlendCoeffRefsSrc(srcCoeff) && in GrBlendAllowsCoverageAsAlpha()
/external/skia/include/gpu/
DGrBlend.h91 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()
103 static constexpr bool GrBlendModifiesDst(GrBlendEquation equation, GrBlendCoeff srcCoeff, in GrBlendModifiesDst() argument
106 kZero_GrBlendCoeff != srcCoeff || kOne_GrBlendCoeff != dstCoeff; in GrBlendModifiesDst()
137 GrBlendCoeff srcCoeff, in GrBlendAllowsCoverageAsAlpha() argument
140 !GrBlendModifiesDst(equation, srcCoeff, dstCoeff) || in GrBlendAllowsCoverageAsAlpha()
142 !GrBlendCoeffRefsSrc(srcCoeff) && in GrBlendAllowsCoverageAsAlpha()
/external/skqp/src/gpu/glsl/
DGrGLSLBlend.cpp442 SkBlendModeCoeff srcCoeff, dstCoeff; in AppendMode() local
443 if (SkBlendMode_AsCoeff(mode, &srcCoeff, &dstCoeff)) { in AppendMode()
452 bool didAppend = append_porterduff_term(fsBuilder, srcCoeff, srcColor, srcColor, dstColor, in AppendMode()
470 SkBlendModeCoeff srcCoeff, dstCoeff; in AppendRegionOp() local
473 srcCoeff = SkBlendModeCoeff::kOne; in AppendRegionOp()
477 srcCoeff = SkBlendModeCoeff::kDC; in AppendRegionOp()
481 srcCoeff = SkBlendModeCoeff::kOne; in AppendRegionOp()
485 srcCoeff = SkBlendModeCoeff::kIDC; in AppendRegionOp()
489 srcCoeff = SkBlendModeCoeff::kZero; in AppendRegionOp()
493 srcCoeff = SkBlendModeCoeff::kIDC; in AppendRegionOp()
[all …]
/external/skia/src/gpu/glsl/
DGrGLSLBlend.cpp442 SkBlendModeCoeff srcCoeff, dstCoeff; in AppendMode() local
443 if (SkBlendMode_AsCoeff(mode, &srcCoeff, &dstCoeff)) { in AppendMode()
452 bool didAppend = append_porterduff_term(fsBuilder, srcCoeff, srcColor, srcColor, dstColor, in AppendMode()
470 SkBlendModeCoeff srcCoeff, dstCoeff; in AppendRegionOp() local
473 srcCoeff = SkBlendModeCoeff::kOne; in AppendRegionOp()
477 srcCoeff = SkBlendModeCoeff::kDC; in AppendRegionOp()
481 srcCoeff = SkBlendModeCoeff::kOne; in AppendRegionOp()
485 srcCoeff = SkBlendModeCoeff::kIDC; in AppendRegionOp()
489 srcCoeff = SkBlendModeCoeff::kZero; in AppendRegionOp()
493 srcCoeff = SkBlendModeCoeff::kIDC; in AppendRegionOp()
[all …]
/external/skqp/src/gpu/effects/
DGrPorterDuffXferProcessor.cpp46 GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) in BlendFormula() argument
50 , fSrcCoeff(srcCoeff) in BlendFormula()
52 , fProps(GetProperties(primaryOut, secondaryOut, equation, srcCoeff, dstCoeff)) {} in BlendFormula()
92 GrBlendCoeff srcCoeff() const { in srcCoeff() function in BlendFormula
194 static constexpr BlendFormula MakeCoeffFormula(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in MakeCoeffFormula() argument
196 return (kZero_GrBlendCoeff == srcCoeff && 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()
228 BlendFormula::OutputType oneMinusDstCoeffModulateOutput, GrBlendCoeff srcCoeff) { in MakeCoverageFormula() argument
[all …]
/external/skia/src/gpu/effects/
DGrPorterDuffXferProcessor.cpp46 GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) in BlendFormula() argument
50 , fSrcCoeff(srcCoeff) in BlendFormula()
52 , fProps(GetProperties(primaryOut, secondaryOut, equation, srcCoeff, dstCoeff)) {} in BlendFormula()
92 GrBlendCoeff srcCoeff() const { in srcCoeff() function in BlendFormula
194 static constexpr BlendFormula MakeCoeffFormula(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { in MakeCoeffFormula() argument
196 return (kZero_GrBlendCoeff == srcCoeff && 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()
228 BlendFormula::OutputType oneMinusDstCoeffModulateOutput, GrBlendCoeff srcCoeff) { in MakeCoverageFormula() argument
[all …]
/external/skia/src/gpu/vk/
DGrVkPipeline.cpp359 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in setup_color_blend_state() local
362 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff; in setup_color_blend_state()
367 attachmentState->srcColorBlendFactor = blend_coeff_to_vk_blend(srcCoeff); in setup_color_blend_state()
370 attachmentState->srcAlphaBlendFactor = blend_coeff_to_vk_blend(srcCoeff); in setup_color_blend_state()
549 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in SetDynamicBlendConstantState() local
552 if (blend_coeff_refs_constant(srcCoeff) || blend_coeff_refs_constant(dstCoeff)) { in SetDynamicBlendConstantState()
/external/skqp/src/gpu/vk/
DGrVkPipeline.cpp359 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in setup_color_blend_state() local
362 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff; in setup_color_blend_state()
367 attachmentState->srcColorBlendFactor = blend_coeff_to_vk_blend(srcCoeff); in setup_color_blend_state()
370 attachmentState->srcAlphaBlendFactor = blend_coeff_to_vk_blend(srcCoeff); in setup_color_blend_state()
549 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in SetDynamicBlendConstantState() local
552 if (blend_coeff_refs_constant(srcCoeff) || blend_coeff_refs_constant(dstCoeff)) { in SetDynamicBlendConstantState()
/external/skia/src/gpu/
DGrBlend.cpp111 void GrGetCoeffBlendKnownComponents(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff, in GrGetCoeffBlendKnownComponents() argument
119 MaskedColor srcTerm = get_term(srcCoeff, src, dst, src); in GrGetCoeffBlendKnownComponents()
/external/skqp/src/gpu/
DGrBlend.cpp110 void GrGetCoeffBlendKnownComponents(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff, in GrGetCoeffBlendKnownComponents() argument
118 MaskedColor srcTerm = get_term(srcCoeff, src, dst, src); in GrGetCoeffBlendKnownComponents()
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorShuffling.h163 return m_impl.coeff(srcCoeff(index));
191 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index srcCoeff(Index index) const {
245 return this->m_impl.coeffRef(this->srcCoeff(index));
DTensorMorphing.h390 Index offset = srcCoeff(i);
405 return m_impl.coeff(srcCoeff(index));
498 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index srcCoeff(Index index) const
558 return this->m_impl.coeffRef(this->srcCoeff(index));
803 return m_impl.coeff(srcCoeff(index));
815 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index srcCoeff(Index index) const
881 return this->m_impl.coeffRef(this->srcCoeff(index));
DTensorStriding.h161 return m_impl.coeff(srcCoeff(index));
228 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index srcCoeff(Index index) const
286 return this->m_impl.coeffRef(this->srcCoeff(index));
DTensorChipping.h199 return m_impl.coeff(srcCoeff(index));
278 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index srcCoeff(Index index) const
338 return this->m_impl.coeffRef(this->srcCoeff(index));
/external/skqp/src/gpu/gl/
DGrGLGpu.cpp2899 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in flushBlend() local
2902 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff; in flushBlend()
2940 if (fHWBlendState.fSrcCoeff != srcCoeff || fHWBlendState.fDstCoeff != dstCoeff) { in flushBlend()
2941 GL_CALL(BlendFunc(gXfermodeCoeff2Blend[srcCoeff], in flushBlend()
2943 fHWBlendState.fSrcCoeff = srcCoeff; in flushBlend()
2947 if ((BlendCoeffReferencesConstant(srcCoeff) || BlendCoeffReferencesConstant(dstCoeff))) { in flushBlend()
/external/skia/src/gpu/gl/
DGrGLGpu.cpp2879 GrBlendCoeff srcCoeff = blendInfo.fSrcBlend; in flushBlend() local
2882 kOne_GrBlendCoeff == srcCoeff && kZero_GrBlendCoeff == dstCoeff; in flushBlend()
2920 if (fHWBlendState.fSrcCoeff != srcCoeff || fHWBlendState.fDstCoeff != dstCoeff) { in flushBlend()
2921 GL_CALL(BlendFunc(gXfermodeCoeff2Blend[srcCoeff], in flushBlend()
2923 fHWBlendState.fSrcCoeff = srcCoeff; in flushBlend()
2927 if ((BlendCoeffReferencesConstant(srcCoeff) || BlendCoeffReferencesConstant(dstCoeff))) { in flushBlend()