diff options
author | 2015-03-04 13:30:50 -0800 | |
---|---|---|
committer | 2015-03-04 13:30:50 -0800 | |
commit | b7affb56bb295d52e543d6f0e45ba45acf42dcd6 (patch) | |
tree | a1bd9ec02b40b9e3ec2bd974f67f9cab0d24f10e | |
parent | 94b4ee85f2692ac6e4e32cc9b4f3da23d6e21c31 (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.h | 3 |
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 { |