aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-05-09 12:20:02 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-09 18:37:09 +0000
commit443531126ac7d281c49fca48674ec7e14436c2b6 (patch)
tree25b80958d27bf53ef63c288f1d96c943d1a9cb28 /include
parent7120b2d577d3aab1f51c5af1530a68c57ca51696 (diff)
update dox for dithering
Bug: skia:6604 Change-Id: I21b505c54c1d43abf62b7c577e7dd88e53ed30fd Reviewed-on: https://skia-review.googlesource.com/16156 Reviewed-by: Cary Clark <caryclark@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/core/SkPaint.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index 0fc4f5cae5..43bacbed8c 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -100,7 +100,7 @@ public:
*/
enum Flags {
kAntiAlias_Flag = 0x01, //!< mask to enable antialiasing
- kDither_Flag = 0x04, //!< mask to enable dithering
+ kDither_Flag = 0x04, //!< mask to enable dithering. see setDither()
kFakeBoldText_Flag = 0x20, //!< mask to enable fake-bold text
kLinearText_Flag = 0x40, //!< mask to enable linear-text
kSubpixelText_Flag = 0x80, //!< mask to enable subpixel text positioning
@@ -154,9 +154,12 @@ public:
return SkToBool(this->getFlags() & kDither_Flag);
}
- /** Helper for setFlags(), setting or clearing the kDither_Flag bit
- @param dither true to enable dithering, false to disable it
- */
+ /**
+ * Helper for setFlags(), setting or clearing the kDither_Flag bit
+ * @param dither true to enable dithering, false to disable it
+ *
+ * Note: gradients ignore this setting and always dither.
+ */
void setDither(bool dither);
/** Helper for getFlags(), returning true if kLinearText_Flag bit is set