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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: o3d/gpu_plugin/system_services/shared_memory_public.h
===================================================================
--- o3d/gpu_plugin/system_services/shared_memory_public.h (revision 0)
+++ o3d/gpu_plugin/system_services/shared_memory_public.h (revision 0)
@@ -0,0 +1,33 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef O3D_GPU_PLUGIN_SYSTEM_SERVICES_SHARED_MEMORY_PUBLIC_H_
+#define O3D_GPU_PLUGIN_SYSTEM_SERVICES_SHARED_MEMORY_PUBLIC_H_
+
+// Mapped memory range. Size is zero and pointer is null until object is
+// mapped. Each process needs to separately map the object. It is safe to
+// map an already mapped object.
+
+#include "third_party/npapi/bindings/npruntime.h"
+
+#if defined(__cplusplus)
+
+struct CHRSharedMemory : NPObject {
+ size_t size;
+ void* ptr;
+ void* handle;
+};
+
+#else
+
+typedef struct _CHRShareddMemory {
Ken Russell (Google) 2009/09/09 01:32:54 Typo: _CHRShareddMemory -> _CHRSharedMemory
+ NPObject object;
+ size_t size;
+ void* ptr;
+ void* handle;
+} CHRSharedMemory;
+
+#endif
+
+#endif // O3D_GPU_PLUGIN_SYSTEM_SERVICES_SHARED_MEMORY_PUBLIC_H_

Powered by Google App Engine
This is Rietveld 408576698