Index: gpu/command_buffer/common/mailbox.h |
diff --git a/gpu/command_buffer/common/mailbox.h b/gpu/command_buffer/common/mailbox.h |
index d9d25d418d3eeb0c6843809c98092f76bf39ecee..08a970fad856c06221f1db2acd7ac04e0d0de58f 100644 |
--- a/gpu/command_buffer/common/mailbox.h |
+++ b/gpu/command_buffer/common/mailbox.h |
@@ -10,6 +10,11 @@ |
#include "gpu/command_buffer/common/types.h" |
#include "gpu/gpu_export.h" |
+// From gl2/gl2ext.h. |
+#ifndef GL_MAILBOX_SIZE_CHROMIUM |
+#define GL_MAILBOX_SIZE_CHROMIUM 64 |
+#endif |
+ |
namespace gpu { |
struct GPU_EXPORT Mailbox { |
@@ -17,7 +22,7 @@ struct GPU_EXPORT Mailbox { |
bool IsZero() const; |
void SetZero(); |
void SetName(const int8* name); |
- int8 name[64]; |
+ int8 name[GL_MAILBOX_SIZE_CHROMIUM]; |
bool operator<(const Mailbox& other) const { |
return memcmp(this, &other, sizeof other) < 0; |
} |