OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef GPU_COMMAND_BUFFER_COMMON_BUFFER_H_ |
| 6 #define GPU_COMMAND_BUFFER_COMMON_BUFFER_H_ |
| 7 |
| 8 namespace base { |
| 9 class SharedMemory; |
| 10 } |
| 11 |
| 12 namespace gpu { |
| 13 |
| 14 // Address and size of a buffer and optionally a shared memory object. This |
| 15 // type has value semantics. |
| 16 struct Buffer { |
| 17 Buffer() : ptr(NULL), size(0), shared_memory(NULL) { |
| 18 } |
| 19 |
| 20 void* ptr; |
| 21 size_t size; |
| 22 |
| 23 // Null if the buffer is not shared memory or if it is not exposed as such. |
| 24 base::SharedMemory* shared_memory; |
| 25 }; |
| 26 |
| 27 } // namespace gpu |
| 28 |
| 29 #endif // GPU_COMMAND_BUFFER_COMMON_BUFFER_H_ |
OLD | NEW |