| Index: gpu/command_buffer/common/mailbox.h
|
| diff --git a/gpu/command_buffer/common/mailbox.h b/gpu/command_buffer/common/mailbox.h
|
| index 94d63c53bbeb1af62096e4984ec11aee1f11df31..b592fa4d68f0602f31a0ed561a5b389b33218bd1 100644
|
| --- a/gpu/command_buffer/common/mailbox.h
|
| +++ b/gpu/command_buffer/common/mailbox.h
|
| @@ -28,6 +28,12 @@ struct GPU_EXPORT Mailbox {
|
| using Name = int8_t[GL_MAILBOX_SIZE_CHROMIUM];
|
|
|
| Mailbox();
|
| +
|
| + static Mailbox FromVolatile(const volatile Mailbox& other) {
|
| + // Because the copy constructor is trivial, const_cast is safe.
|
| + return const_cast<const Mailbox&>(other);
|
| + }
|
| +
|
| bool IsZero() const;
|
| void SetZero();
|
| void SetName(const int8_t* name);
|
|
|