Lines Matching refs:equation
102 static constexpr bool GrBlendEquationIsAdvanced(GrBlendEquation equation) { in GrBlendEquationIsAdvanced() argument
103 return equation >= kFirstAdvancedGrBlendEquation in GrBlendEquationIsAdvanced()
104 && equation != kIllegal_GrBlendEquation; in GrBlendEquationIsAdvanced()
107 static constexpr bool GrBlendModifiesDst(GrBlendEquation equation, GrBlendCoeff srcCoeff, in GrBlendModifiesDst() argument
109 return (kAdd_GrBlendEquation != equation && kReverseSubtract_GrBlendEquation != equation) || in GrBlendModifiesDst()
117 static constexpr bool GrBlendShouldDisable(GrBlendEquation equation, GrBlendCoeff srcCoeff, in GrBlendShouldDisable() argument
119 return (kAdd_GrBlendEquation == equation || kSubtract_GrBlendEquation == equation) && in GrBlendShouldDisable()
150 static constexpr bool GrBlendAllowsCoverageAsAlpha(GrBlendEquation equation, in GrBlendAllowsCoverageAsAlpha() argument
153 return GrBlendEquationIsAdvanced(equation) || in GrBlendAllowsCoverageAsAlpha()
154 !GrBlendModifiesDst(equation, srcCoeff, dstCoeff) || in GrBlendAllowsCoverageAsAlpha()
155 ((kAdd_GrBlendEquation == equation || kReverseSubtract_GrBlendEquation == equation) && in GrBlendAllowsCoverageAsAlpha()