Chromium Code Reviews| Index: public/platform/WebExternalTextureMailbox.h |
| diff --git a/public/platform/WebExternalTextureMailbox.h b/public/platform/WebExternalTextureMailbox.h |
| index d8703c6a949158ba8711d5d6277168bea11fcae3..50f54c0123a9b00b960edde2a9e8ed65844aac6a 100644 |
| --- a/public/platform/WebExternalTextureMailbox.h |
| +++ b/public/platform/WebExternalTextureMailbox.h |
| @@ -44,6 +44,16 @@ struct WebExternalTextureMailbox { |
| } |
| }; |
| +inline bool operator==(const WebExternalTextureMailbox& a, const WebExternalTextureMailbox& b) |
| +{ |
| + return !memcmp(a.name, b.name, sizeof(a.name)); |
|
abarth-chromium
2014/04/24 14:59:06
We don't need to compare the syncPoint as well?
dshwang
2014/04/24 15:03:23
we don't need syncPoint comparison. The main purpo
danakj
2014/04/24 15:10:02
If you're not comparing every field, might I sugge
dshwang
2014/04/24 15:19:11
nameEquals() looks better. It's why I wait while d
|
| +} |
| + |
| +inline bool operator!=(const WebExternalTextureMailbox& a, const WebExternalTextureMailbox& b) |
| +{ |
| + return !(a == b); |
| +} |
| + |
| } // namespace blink |
| #endif // WebExternalTextureMailbox_h |