| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef GPU_COMMAND_BUFFER_MAILBOX_H_ | 5 #ifndef GPU_COMMAND_BUFFER_MAILBOX_H_ |
| 6 #define GPU_COMMAND_BUFFER_MAILBOX_H_ | 6 #define GPU_COMMAND_BUFFER_MAILBOX_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 | 10 |
| 11 #include "gpu/gpu_export.h" | 11 #include "gpu/gpu_export.h" |
| 12 | 12 |
| 13 // From gl2/gl2ext.h. | 13 // From gl2/gl2ext.h. |
| 14 #ifndef GL_MAILBOX_SIZE_CHROMIUM | 14 #ifndef GL_MAILBOX_SIZE_CHROMIUM |
| 15 #define GL_MAILBOX_SIZE_CHROMIUM 64 | 15 #define GL_MAILBOX_SIZE_CHROMIUM 16 |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 namespace gpu { | 18 namespace gpu { |
| 19 | 19 |
| 20 // A mailbox is an unguessable name that references texture image data. | 20 // A mailbox is an unguessable name that references texture image data. |
| 21 // This name can be passed across processes permitting one context to share | 21 // This name can be passed across processes permitting one context to share |
| 22 // texture image data with another. The mailbox name consists of a random | 22 // texture image data with another. The mailbox name consists of a random |
| 23 // set of bytes, optionally with a checksum (in debug mode) to verify the | 23 // set of bytes, optionally with a checksum (in debug mode) to verify the |
| 24 // name is valid. | 24 // name is valid. |
| 25 // See src/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_texture_mailbox.txt for more | 25 // See src/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_texture_mailbox.txt for more |
| (...skipping 30 matching lines...) Expand all Loading... |
| 56 } | 56 } |
| 57 bool operator!=(const Mailbox& other) const { | 57 bool operator!=(const Mailbox& other) const { |
| 58 return !operator==(other); | 58 return !operator==(other); |
| 59 } | 59 } |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace gpu | 62 } // namespace gpu |
| 63 | 63 |
| 64 #endif // GPU_COMMAND_BUFFER_MAILBOX_H_ | 64 #endif // GPU_COMMAND_BUFFER_MAILBOX_H_ |
| 65 | 65 |
| OLD | NEW |