Chromium Code Reviews| Index: include/gpu/GrFragmentProcessor.h |
| diff --git a/include/gpu/GrFragmentProcessor.h b/include/gpu/GrFragmentProcessor.h |
| index 4b0e1e12d0568a5d6a213a863012dcbc126eea58..784912662764665dd03caa92d2d28fa5d022a34a 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. |
| + */ |
|
robertphillips
2015/09/25 19:52:17
OverrideInputColor ?
bsalomon
2015/09/25 20:45:07
Made it OverrideInput
|
| + static const GrFragmentProcessor* ReplaceInput(const GrFragmentProcessor*, GrColor); |
| GrFragmentProcessor() |
| : INHERITED() |