aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-03-04 13:30:50 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-04 13:30:50 -0800
commitb7affb56bb295d52e543d6f0e45ba45acf42dcd6 (patch)
treea1bd9ec02b40b9e3ec2bd974f67f9cab0d24f10e
parent94b4ee85f2692ac6e4e32cc9b4f3da23d6e21c31 (diff)
udpate dox for colorfilter fragment processor requirements
BUG=skia: NOTRY=True Review URL: https://codereview.chromium.org/961933003
-rw-r--r--include/core/SkColorFilter.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkColorFilter.h b/include/core/SkColorFilter.h
index 14d33069f0..5a25814c6b 100644
--- a/include/core/SkColorFilter.h
+++ b/include/core/SkColorFilter.h
@@ -144,6 +144,9 @@ public:
* on them when they are finished. If more than one processor is appended, they will be
* applied in FIFO order.
*
+ * The fragment processor(s) must each return their color as a premul normalized value
+ * e.g. each component between [0..1] and each color component <= alpha.
+ *
* If the subclass returns false, then it should not modify the array at all.
*/
virtual bool asFragmentProcessors(GrContext*, SkTDArray<GrFragmentProcessor*>*) const {