aboutsummaryrefslogtreecommitdiffstats
path: root/include/effects
diff options
context:
space:
mode:
authorMike Reed <reed@google.com>2009-11-10 14:01:59 -0500
committerMike Reed <reed@google.com>2009-11-10 14:01:59 -0500
commit24fb8c7cc7b76134a25914d8f6346c89c359c621 (patch)
tree563507c03fbcfc0ff4862324c28b656217da6da7 /include/effects
parent27b953159488bb519b49751497a62eb837b9a881 (diff)
downloadexternal_skia-24fb8c7cc7b76134a25914d8f6346c89c359c621.zip
external_skia-24fb8c7cc7b76134a25914d8f6346c89c359c621.tar.gz
external_skia-24fb8c7cc7b76134a25914d8f6346c89c359c621.tar.bz2
refresh from skia/trunk
support for SSE2 blitrow optimizations fix flattening in 2-point gradient fix rotation in colormatrix
Diffstat (limited to 'include/effects')
-rw-r--r--include/effects/SkAvoidXfermode.h25
1 files changed, 15 insertions, 10 deletions
diff --git a/include/effects/SkAvoidXfermode.h b/include/effects/SkAvoidXfermode.h
index 32bc049..2803c07 100644
--- a/include/effects/SkAvoidXfermode.h
+++ b/include/effects/SkAvoidXfermode.h
@@ -31,16 +31,21 @@ public:
kTargetColor_Mode //!< draw only on top of the opColor
};
- /** This xfermode will draw the src everywhere except on top of the opColor
- or, depending on the Mode, draw only on top of the opColor.
- @param opColor the color to avoid (or to target depending on Mode).
- note: the alpha in opColor is ignored
- @param tolerance How closely we compare a pixel to the opColor.
- 0 - only operate if exact match
- 255 - maximum gradation (blending) based on how
- similar the pixel is to our opColor (max tolerance)
- @param mode If we should avoid or target the opColor
- */
+ /** This xfermode draws, or doesn't draw, based on the destination's
+ distance from an op-color.
+
+ There are two modes, and each mode interprets a tolerance value.
+
+ Avoid: In this mode, drawing is allowed only on destination pixels that
+ are different from the op-color.
+ Tolerance near 0: avoid anything close to the op-color
+ Tolerance near 255: avoid only colors very close to the op-color
+
+ Target: In this mode, drawing only occurs on destination pixels that
+ are similar to the op-color
+ Tolerance near 0: draw on colors that are very close to op-color
+ Tolerance near 255: draw on colors that to the op-color
+ */
SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode);
// overrides from SkXfermode