aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkMD5.h
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-03-27 12:16:53 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-27 12:16:53 -0700
commita096d7a6d03662073f4cd46f7db5fe2cf5495c36 (patch)
treedcaf6ab6002e37a9525a82101ac640f2ead1bf46 /src/utils/SkMD5.h
parent135b7ecaa81018aa497da6ef8a8493263df456ef (diff)
SkCodec: add wbmp class
Diffstat (limited to 'src/utils/SkMD5.h')
-rw-r--r--src/utils/SkMD5.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/SkMD5.h b/src/utils/SkMD5.h
index 1834a1b03b..ed557931c2 100644
--- a/src/utils/SkMD5.h
+++ b/src/utils/SkMD5.h
@@ -36,6 +36,12 @@ public:
struct Digest {
uint8_t data[16];
+ bool operator ==(Digest const& other) const {
+ return 0 == memcmp(data, other.data, sizeof(data));
+ }
+ bool operator !=(Digest const& other) const {
+ return 0 != memcmp(data, other.data, sizeof(data));
+ }
};
/** Computes and returns the digest. */