udpate dox for colorfilter fragment processor requirements
authorreed <reed@google.com>
Wed, 4 Mar 2015 21:30:50 +0000 (13:30 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 4 Mar 2015 21:30:50 +0000 (13:30 -0800)
BUG=skia:
NOTRY=True

Review URL: https://codereview.chromium.org/961933003

include/core/SkColorFilter.h

index 14d3306..5a25814 100644 (file)
@@ -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 {