aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-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. */