aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-01-26 11:25:12 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-01-28 21:26:34 +0000
commit22af73f2a5fd40fd9f991e35f7a216e924464cd4 (patch)
tree6c5cf2903e28d73fd2790cbed64f506cc46239b3 /include
parent0a84a343fd4e56029fb172c851630770c247cd2a (diff)
Rename GrFragmentProcessor::MulOutputByInputUnpremulColor to MakeInputPremulAndMulByOutput.
Change-Id: I33d74ddb8a7836e8f1922a5ae73f0adb74d59db3 Reviewed-on: https://skia-review.googlesource.com/7609 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrFragmentProcessor.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/gpu/GrFragmentProcessor.h b/include/gpu/GrFragmentProcessor.h
index 0d41a267de..2ed187d19e 100644
--- a/include/gpu/GrFragmentProcessor.h
+++ b/include/gpu/GrFragmentProcessor.h
@@ -35,11 +35,12 @@ public:
static sk_sp<GrFragmentProcessor> MulOutputByInputAlpha(sk_sp<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
+ * This assumes that the input color to the returned processor will be unpremul and that the
+ * passed processor (which becomes the returned processor's child) produces a premul output.
+ * The result of the returned processor is a premul of its input color modulated by the child
+ * processor's premul output.
*/
- static sk_sp<GrFragmentProcessor> MulOutputByInputUnpremulColor(sk_sp<GrFragmentProcessor>);
+ static sk_sp<GrFragmentProcessor> MakeInputPremulAndMulByOutput(sk_sp<GrFragmentProcessor>);
/**
* Returns a parent fragment processor that adopts the passed fragment processor as a child.