udpate dox for colorfilter fragment processor requirements

BUG=skia:
NOTRY=True

Review URL: https://codereview.chromium.org/961933003
This commit is contained in:
reed 2015-03-04 13:30:50 -08:00 committed by Commit bot
parent 94b4ee85f2
commit b7affb56bb

View File

@ -144,6 +144,9 @@ public:
* on them when they are finished. If more than one processor is appended, they will be * on them when they are finished. If more than one processor is appended, they will be
* applied in FIFO order. * 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. * If the subclass returns false, then it should not modify the array at all.
*/ */
virtual bool asFragmentProcessors(GrContext*, SkTDArray<GrFragmentProcessor*>*) const { virtual bool asFragmentProcessors(GrContext*, SkTDArray<GrFragmentProcessor*>*) const {