Home | History | Annotate | Download | only in effects

Lines Matching defs:color

16  * This is a simple GrFragmentProcessor that outputs a constant color. It may do one of the
17 * following with its input color: ignore it, or multiply it by the constant color, multiply its
18 * alpha by the constant color and ignore the input color's r, g, and b.
31 static GrFragmentProcessor* Create(GrColor color, InputMode mode) {
32 return SkNEW_ARGS(GrConstColorProcessor, (color, mode));
37 const char* name() const override { return "Color"; }
43 GrColor color() const { return fColor; }
48 GrConstColorProcessor(GrColor color, InputMode mode) : fColor(color), fMode(mode) {