diff options
Diffstat (limited to 'o3d/gpu_plugin/gpu_plugin_object.h')
-rw-r--r-- | o3d/gpu_plugin/gpu_plugin_object.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/o3d/gpu_plugin/gpu_plugin_object.h b/o3d/gpu_plugin/gpu_plugin_object.h index 0ca11e3..127ee8d 100644 --- a/o3d/gpu_plugin/gpu_plugin_object.h +++ b/o3d/gpu_plugin/gpu_plugin_object.h @@ -7,6 +7,8 @@ #include <string> +#include "base/ref_counted.h" +#include "base/thread.h" #include "o3d/gpu_plugin/command_buffer.h" #include "o3d/gpu_plugin/np_utils/default_np_object.h" #include "o3d/gpu_plugin/np_utils/np_dispatcher.h" @@ -18,6 +20,8 @@ namespace o3d { namespace gpu_plugin { +class GPUProcessor; + // The scriptable object for the GPU plugin. class GPUPluginObject : public DefaultNPObject<NPObject>, public PluginObject { @@ -52,6 +56,7 @@ class GPUPluginObject : public DefaultNPObject<NPObject>, private: NPError PlatformSpecificSetWindow(NPWindow* new_window); + void UpdateProcessorWindow(); enum Status { CREATED, @@ -62,7 +67,8 @@ class GPUPluginObject : public DefaultNPObject<NPObject>, NPP npp_; Status status_; NPWindow window_; - NPObjectPointer<CommandBuffer> command_buffer_object_; + NPObjectPointer<CommandBuffer> command_buffer_; + scoped_refptr<GPUProcessor> processor_; }; } // namespace gpu_plugin |