Lines Matching refs:equation
102 static constexpr bool GrBlendEquationIsAdvanced(GrBlendEquation equation) {
103 return equation >= kFirstAdvancedGrBlendEquation
104 && equation != kIllegal_GrBlendEquation;
107 static constexpr bool GrBlendModifiesDst(GrBlendEquation equation, GrBlendCoeff srcCoeff,
109 return (kAdd_GrBlendEquation != equation && kReverseSubtract_GrBlendEquation != equation) ||
117 static constexpr bool GrBlendShouldDisable(GrBlendEquation equation, GrBlendCoeff srcCoeff,
119 return (kAdd_GrBlendEquation == equation || kSubtract_GrBlendEquation == equation) &&
126 * For "add" and "reverse subtract" the blend equation with f=coverage is:
150 static constexpr bool GrBlendAllowsCoverageAsAlpha(GrBlendEquation equation,
153 return GrBlendEquationIsAdvanced(equation) ||
154 !GrBlendModifiesDst(equation, srcCoeff, dstCoeff) ||
155 ((kAdd_GrBlendEquation == equation || kReverseSubtract_GrBlendEquation == equation) &&