aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-08-25 10:10:47 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-25 10:10:47 -0700
commitbc97ef427196d630952461f22ff239b107f74b29 (patch)
treeb16e89a120001eb4db24eef6cee1277c1a01a925 /include
parent38cb688bd0e17021bb140bbc15ac1a7b8f182939 (diff)
Document return value of SkPaint::operator==.
BUG=skia:1491 R=reed@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/467063003
Diffstat (limited to 'include')
-rw-r--r--include/core/SkPaint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index 1814cae29d..4d5c54ef58 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -56,6 +56,10 @@ public:
SkPaint& operator=(const SkPaint&);
+ /** operator== may give false negatives: two paints that draw equivalently
+ may return false. It will never give false positives: two paints that
+ are not equivalent always return false.
+ */
SK_API friend bool operator==(const SkPaint& a, const SkPaint& b);
friend bool operator!=(const SkPaint& a, const SkPaint& b) {
return !(a == b);