| Index: include/gpu/GrFragmentProcessor.h
|
| diff --git a/include/gpu/GrFragmentProcessor.h b/include/gpu/GrFragmentProcessor.h
|
| index 4b0e1e12d0568a5d6a213a863012dcbc126eea58..776e8931f9d7b4de17f805ca0eddc8c94a2a060c 100644
|
| --- a/include/gpu/GrFragmentProcessor.h
|
| +++ b/include/gpu/GrFragmentProcessor.h
|
| @@ -31,7 +31,21 @@ public:
|
| * does so by returning a parent FP that multiplies the passed in FPs output by the parent's
|
| * input alpha. The passed in FP will not receive an input color.
|
| */
|
| - static const GrFragmentProcessor* MulOuputByInputAlpha(const GrFragmentProcessor*);
|
| + static const GrFragmentProcessor* MulOutputByInputAlpha(const GrFragmentProcessor*);
|
| +
|
| + /**
|
| + * Similar to the above but it modulates the output r,g,b of the child processor by the input
|
| + * rgb and then multiplies all the components by the input alpha. This effectively modulates
|
| + * the child processor's premul color by a unpremul'ed input and produces a premul output
|
| + */
|
| + static const GrFragmentProcessor* MulOutputByInputUnpremulColor(const GrFragmentProcessor*);
|
| +
|
| + /**
|
| + * Returns a parent fragment processor that adopts the passed fragment processor as a child. The
|
| + * parent will ignore its input color and instead feed the passed in color as input to the
|
| + * child.
|
| + */
|
| + static const GrFragmentProcessor* OverrideInput(const GrFragmentProcessor*, GrColor);
|
|
|
| GrFragmentProcessor()
|
| : INHERITED()
|
|
|