Index: mojo/converters/geometry/geometry_type_converters.h |
diff --git a/mojo/converters/geometry/geometry_type_converters.h b/mojo/converters/geometry/geometry_type_converters.h |
index e56be9fb9477ef52546ef5f618e1c3f7f55a2521..988bfadd3e4dc7ecec4c8633c278de4b1d5c7bce 100644 |
--- a/mojo/converters/geometry/geometry_type_converters.h |
+++ b/mojo/converters/geometry/geometry_type_converters.h |
@@ -89,4 +89,12 @@ struct MOJO_GEOMETRY_EXPORT TypeConverter<gfx::Rect, Rect> { |
} // namespace mojo |
+inline bool operator==(const gfx::Size& lhs, const mojo::Size& rhs) { |
+ return lhs.width() == rhs.width && lhs.height() == rhs.height; |
+} |
+ |
+inline bool operator==(const mojo::Size& lhs, const gfx::Size& rhs) { |
+ return rhs == lhs; |
+} |
+ |
#endif // MOJO_CONVERTERS_GEOMETRY_GEOMETRY_TYPE_CONVERTERS_H_ |