Home | History | Annotate | Download | only in gpu

Lines Matching refs:srcCoeff

56 static GrColor simplify_blend_term(GrBlendCoeff* srcCoeff,
61 SkASSERT(!GrBlendCoeffRefsSrc(*srcCoeff));
62 SkASSERT(NULL != srcCoeff);
64 // Check whether srcCoeff can be reduced to kOne or kZero based on known color inputs.
67 switch (*srcCoeff) {
73 *srcCoeff = kOne_GrBlendCoeff;
75 *srcCoeff = kZero_GrBlendCoeff;
85 *srcCoeff = kOne_GrBlendCoeff;
87 *srcCoeff = kZero_GrBlendCoeff;
96 *srcCoeff = kOne_GrBlendCoeff;
98 *srcCoeff = kZero_GrBlendCoeff;
106 *srcCoeff = kOne_GrBlendCoeff;
108 *srcCoeff = kZero_GrBlendCoeff;
118 if (kZero_GrBlendCoeff == *srcCoeff || (valid_color(srcCompFlags) && 0 == srcColor)) {
119 *srcCoeff = kZero_GrBlendCoeff;
123 if (kOne_GrBlendCoeff == *srcCoeff && valid_color(srcCompFlags)) {
130 GrColor GrSimplifyBlend(GrBlendCoeff* srcCoeff,
135 GrColor srcTermColor = simplify_blend_term(srcCoeff,