Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: o3d/gpu_plugin/system_services/shared_memory_public.h

Issue 194049: Implemented shared memory as an NPObject. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698