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

Unified Diff: o3d/gpu_plugin/command_buffer.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
« no previous file with comments | « no previous file | o3d/gpu_plugin/command_buffer.cc » ('j') | o3d/gpu_plugin/system_services/shared_memory.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: o3d/gpu_plugin/command_buffer.h
===================================================================
--- o3d/gpu_plugin/command_buffer.h (revision 25632)
+++ o3d/gpu_plugin/command_buffer.h (working copy)
@@ -7,6 +7,7 @@
#include "o3d/gpu_plugin/np_utils/default_np_object.h"
#include "o3d/gpu_plugin/np_utils/np_dispatcher.h"
+#include "o3d/gpu_plugin/system_services/shared_memory_public.h"
namespace o3d {
namespace gpu_plugin {
@@ -22,7 +23,7 @@
virtual bool Initialize(int32 size);
// Gets the shared memory object for the command buffer.
- virtual NPObjectPointer<NPObject> GetBuffer();
+ virtual NPObjectPointer<NPObject> GetSharedMemory();
// The client calls this to update its put offset.
virtual void SetPutOffset(int32 offset);
@@ -34,13 +35,12 @@
NP_UTILS_DISPATCHER(Initialize, bool(int32))
NP_UTILS_DISPATCHER(SetPutOffset, void(int32))
NP_UTILS_DISPATCHER(GetGetOffset, int32())
- NP_UTILS_DISPATCHER(GetBuffer, NPObjectPointer<NPObject>())
+ NP_UTILS_DISPATCHER(GetSharedMemory, NPObjectPointer<NPObject>())
NP_UTILS_END_DISPATCHER_CHAIN
private:
NPP npp_;
- NPObjectPointer<NPObject> buffer_object_;
- NPSharedMemory* shared_memory_;
+ NPObjectPointer<CHRSharedMemory> shared_memory_;
};
} // namespace gpu_plugin
« no previous file with comments | « no previous file | o3d/gpu_plugin/command_buffer.cc » ('j') | o3d/gpu_plugin/system_services/shared_memory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698