Lines Matching defs:equation
99 static constexpr bool GrBlendEquationIsAdvanced(GrBlendEquation equation) {
100 return equation >= kFirstAdvancedGrBlendEquation;
103 static constexpr bool GrBlendModifiesDst(GrBlendEquation equation, GrBlendCoeff srcCoeff,
105 return (kAdd_GrBlendEquation != equation && kReverseSubtract_GrBlendEquation != equation) ||
112 * For "add" and "reverse subtract" the blend equation with f=coverage is:
136 static constexpr bool GrBlendAllowsCoverageAsAlpha(GrBlendEquation equation,
139 return GrBlendEquationIsAdvanced(equation) ||
140 !GrBlendModifiesDst(equation, srcCoeff, dstCoeff) ||
141 ((kAdd_GrBlendEquation == equation || kReverseSubtract_GrBlendEquation == equation) &&