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

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

Issue 1137453002: content: Pass IOSurface references using Mach IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: static_assert Created 5 years, 7 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/test/content_test_suite.cc ('k') | ui/gfx/gpu_memory_buffer.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 a45c91f279b19f83ce5a73310198a43ecb1f4f75..67b023e9936da7e8367831ff8e7ea8ca62373e7e 100644
--- a/gpu/command_buffer/common/mailbox.h
+++ b/gpu/command_buffer/common/mailbox.h
@@ -18,6 +18,8 @@
namespace gpu {
struct GPU_EXPORT Mailbox {
+ using Name = int8_t[GL_MAILBOX_SIZE_CHROMIUM];
+
Mailbox();
bool IsZero() const;
void SetZero();
@@ -31,7 +33,8 @@ struct GPU_EXPORT Mailbox {
// check, only to catch bugs where clients forgot to call Mailbox::Generate.
bool Verify() const;
- int8_t name[GL_MAILBOX_SIZE_CHROMIUM];
+ Name name;
+
bool operator<(const Mailbox& other) const {
return memcmp(this, &other, sizeof other) < 0;
}
« no previous file with comments | « content/test/content_test_suite.cc ('k') | ui/gfx/gpu_memory_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698