Index: ui/gfx/image/image_skia.h |
diff --git a/ui/gfx/image/image_skia.h b/ui/gfx/image/image_skia.h |
index db7447d986c08a497371523456e372544a5d21be..1d1b00c44204205c7a30a82a5cce4ac432f04df5 100644 |
--- a/ui/gfx/image/image_skia.h |
+++ b/ui/gfx/image/image_skia.h |
@@ -95,6 +95,10 @@ class GFX_EXPORT ImageSkia { |
// |other|. Will also return true if both images are isNull(). |
bool BackedBySameObjectAs(const gfx::ImageSkia& other) const; |
+ // Alias for BackedBySameObjectAs(). Used by mojo EqualsTraits<> for |
+ // comparing two ui::mojom::ImageSkia. |
+ bool Equals(const gfx::ImageSkia& other) const; |
James Cook
2017/04/25 00:58:28
I think this is the right way to handle comparison
xiyuan
2017/04/25 16:04:53
If gfx::ImageSkia needs an operation== in the futu
oshima
2017/04/25 17:28:04
Does this have to be named "Equals"? "equals" and
James Cook
2017/04/25 17:32:47
It must either be called Equals() or be operator==
James Cook
2017/04/25 17:50:04
Oshima, please wait on looking at this. Yuzhu had
|
+ |
// Adds |image_rep| to the image reps contained by this object. |
void AddRepresentation(const gfx::ImageSkiaRep& image_rep); |