Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: include/core/SkColorFilter.h

Issue 961933003: udpate dox for colorfilter fragment processor requirements (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkColorFilter.h
diff --git a/include/core/SkColorFilter.h b/include/core/SkColorFilter.h
index 14d33069f01ae9a74c2ae04d15db5758a20ef58d..5a25814c6ba854932bc007f637708172e0486a8b 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 {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698