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

Unified Diff: o3d/gpu_plugin/command_buffer.h

Issue 196032: Replaced BaseNPObject with DefaultNPObject because...... (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') | no next file with comments »
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 25348)
+++ o3d/gpu_plugin/command_buffer.h (working copy)
@@ -5,14 +5,15 @@
#ifndef O3D_GPU_PLUGIN_COMMAND_BUFFER_H_
#define O3D_GPU_PLUGIN_COMMAND_BUFFER_H_
-#include "o3d/gpu_plugin/np_utils/dispatched_np_object.h"
+#include "o3d/gpu_plugin/np_utils/default_np_object.h"
+#include "o3d/gpu_plugin/np_utils/np_dispatcher.h"
namespace o3d {
namespace gpu_plugin {
// An NPObject that implements a shared memory command buffer and a synchronous
// API to manage the put and get pointers.
-class CommandBuffer : public DispatchedNPObject {
+class CommandBuffer : public DefaultNPObject<NPObject> {
public:
explicit CommandBuffer(NPP npp);
virtual ~CommandBuffer();
@@ -29,8 +30,7 @@
// The client calls this to get the servers current get offset.
virtual int32 GetGetOffset();
- protected:
- NP_UTILS_BEGIN_DISPATCHER_CHAIN(CommandBuffer, DispatchedNPObject)
+ NP_UTILS_BEGIN_DISPATCHER_CHAIN(CommandBuffer, DefaultNPObject<NPObject>)
NP_UTILS_DISPATCHER(Initialize, bool(int32))
NP_UTILS_DISPATCHER(SetPutOffset, void(int32))
NP_UTILS_DISPATCHER(GetGetOffset, int32())
@@ -38,6 +38,7 @@
NP_UTILS_END_DISPATCHER_CHAIN
private:
+ NPP npp_;
NPObjectPointer<NPObject> buffer_object_;
NPSharedMemory* shared_memory_;
};
« no previous file with comments | « no previous file | o3d/gpu_plugin/command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698