Index: src/image/SkImage.cpp |
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp |
index 39fd93acc66e7e743145b342157b8267a0a9fcde..c8559e65338cd86615eb93ee04d6a5f365e9a13c 100644 |
--- a/src/image/SkImage.cpp |
+++ b/src/image/SkImage.cpp |
@@ -12,6 +12,14 @@ |
SK_DEFINE_INST_COUNT(SkImage) |
+bool operator==(const SkImageInfo& lhs, const SkImageInfo& rhs) { |
+ return 0 == memcmp(&lhs, &rhs, sizeof(SkImageInfo)); |
+} |
+bool operator!=(const SkImageInfo& lhs, const SkImageInfo& rhs) { |
+ return 0 != memcmp(&lhs, &rhs, sizeof(SkImageInfo)); |
+} |
+ |
+ |
static SkImage_Base* as_IB(SkImage* image) { |
return static_cast<SkImage_Base*>(image); |
} |