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

Unified Diff: gpu/command_buffer/common/mailbox.h

Issue 148003006: Use gpu::Mailbox instead of std:string in IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed typo Created 6 years, 10 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | gpu/command_buffer/service/mailbox_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/mailbox.h
diff --git a/gpu/command_buffer/common/mailbox.h b/gpu/command_buffer/common/mailbox.h
index 938167f5cf8142b078cd32af506f1d10b4d384f9..d9d25d418d3eeb0c6843809c98092f76bf39ecee 100644
--- a/gpu/command_buffer/common/mailbox.h
+++ b/gpu/command_buffer/common/mailbox.h
@@ -21,6 +21,12 @@ struct GPU_EXPORT Mailbox {
bool operator<(const Mailbox& other) const {
return memcmp(this, &other, sizeof other) < 0;
}
+ bool operator==(const Mailbox& other) const {
+ return memcmp(this, &other, sizeof other) == 0;
+ }
+ bool operator!=(const Mailbox& other) const {
+ return !operator==(other);
+ }
};
} // namespace gpu
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | gpu/command_buffer/service/mailbox_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698