OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2006-2008 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 O3D_GPU_PLUGIN_SYSTEM_SERVICES_SHARED_MEMORY_PUBLIC_H_ | |
6 #define O3D_GPU_PLUGIN_SYSTEM_SERVICES_SHARED_MEMORY_PUBLIC_H_ | |
7 | |
8 // Mapped memory range. Size is zero and pointer is null until object is | |
9 // mapped. Each process needs to separately map the object. It is safe to | |
10 // map an already mapped object. | |
11 | |
12 #include "third_party/npapi/bindings/npruntime.h" | |
13 | |
14 #if defined(__cplusplus) | |
15 | |
16 struct CHRSharedMemory : NPObject { | |
17 size_t size; | |
18 void* ptr; | |
19 void* handle; | |
20 }; | |
21 | |
22 #else | |
23 | |
24 typedef struct _CHRShareddMemory { | |
Ken Russell (Google)
2009/09/09 01:32:54
Typo: _CHRShareddMemory -> _CHRSharedMemory
| |
25 NPObject object; | |
26 size_t size; | |
27 void* ptr; | |
28 void* handle; | |
29 } CHRSharedMemory; | |
30 | |
31 #endif | |
32 | |
33 #endif // O3D_GPU_PLUGIN_SYSTEM_SERVICES_SHARED_MEMORY_PUBLIC_H_ | |
OLD | NEW |