diff options
author | halcanary <halcanary@google.com> | 2015-03-27 12:16:53 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-27 12:16:53 -0700 |
commit | a096d7a6d03662073f4cd46f7db5fe2cf5495c36 (patch) | |
tree | dcaf6ab6002e37a9525a82101ac640f2ead1bf46 /src/utils | |
parent | 135b7ecaa81018aa497da6ef8a8493263df456ef (diff) |
SkCodec: add wbmp class
Review URL: https://codereview.chromium.org/1006583005
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/SkMD5.h | 6 |
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. */ |