Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(977)

Unified Diff: src/utils/SkMD5.h

Issue 1006583005: SkCodec: add wbmp class (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-03-27 (Friday) 10:53:14 EDT Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/codec/SkCodec_wbmp.cpp ('k') | tests/CodexTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkMD5.h
diff --git a/src/utils/SkMD5.h b/src/utils/SkMD5.h
index 1834a1b03b312d6185b6a438509dc6aa9767438b..ed557931c242cdb888eefdd57439e0727de26636 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. */
« no previous file with comments | « src/codec/SkCodec_wbmp.cpp ('k') | tests/CodexTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698