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

Unified Diff: ui/gfx/image/image_skia.h

Issue 2842693002: cros: Don't send duplicate UserSession mojo messages to ash (Closed)
Patch Set: Created 3 years, 8 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
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);

Powered by Google App Engine
This is Rietveld 408576698