| 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;
|
| }
|
|
|