aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrPaint.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-01-30 12:43:44 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-30 12:43:44 -0800
commit8a8100349105c8c6de39fcb34e47679da7a67f54 (patch)
tree7e7fde3b1b233fff475019672723bacf6dff8ee3 /include/gpu/GrPaint.h
parentc8fcafb3f0d152fb92465451bdb2e4bd3ef37222 (diff)
Move npot resizing out of GrContext and simplify GrContext texture functions.
Diffstat (limited to 'include/gpu/GrPaint.h')
-rw-r--r--include/gpu/GrPaint.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/include/gpu/GrPaint.h b/include/gpu/GrPaint.h
index 8163f6e4d8..64b51d2c65 100644
--- a/include/gpu/GrPaint.h
+++ b/include/gpu/GrPaint.h
@@ -25,23 +25,15 @@
* created by subclassing GrProcessor.
*
* The primitive color computation starts with the color specified by setColor(). This color is the
- * input to the first color stage. Each color stage feeds its output to the next color stage. The
- * final color stage's output color is input to the color filter specified by
- * setXfermodeColorFilter which produces the final source color, S.
+ * input to the first color stage. Each color stage feeds its output to the next color stage.
*
* Fractional pixel coverage follows a similar flow. The coverage is initially the value specified
* by setCoverage(). This is input to the first coverage stage. Coverage stages are chained
* together in the same manner as color stages. The output of the last stage is modulated by any
* fractional coverage produced by anti-aliasing. This last step produces the final coverage, C.
*
- * setBlendFunc() specifies blending coefficients for S (described above) and D, the initial value
- * of the destination pixel, labeled Bs and Bd respectively. The final value of the destination
- * pixel is then D' = (1-C)*D + C*(Bd*D + Bs*S).
- *
- * Note that the coverage is applied after the blend. This is why they are computed as distinct
- * values.
- *
- * TODO: Encapsulate setXfermodeColorFilter in a GrProcessor and remove from GrPaint.
+ * setXPFactory is used to control blending between the output color and dest. It also implements
+ * the application of fractional coverage from the coverage pipeline.
*/
class GrPaint {
public: