summaryrefslogtreecommitdiffstats
path: root/o3d/gpu_plugin/gpu_processor_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/gpu_plugin/gpu_processor_win.cc')
-rw-r--r--o3d/gpu_plugin/gpu_processor_win.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/o3d/gpu_plugin/gpu_processor_win.cc b/o3d/gpu_plugin/gpu_processor_win.cc
index 30f963f..a9fdae1 100644
--- a/o3d/gpu_plugin/gpu_processor_win.cc
+++ b/o3d/gpu_plugin/gpu_processor_win.cc
@@ -10,17 +10,18 @@ namespace o3d {
namespace gpu_plugin {
GPUProcessor::GPUProcessor(NPP npp,
- const NPObjectPointer<CommandBuffer>& command_buffer)
+ CommandBuffer* command_buffer)
: npp_(npp),
command_buffer_(command_buffer),
commands_per_update_(100) {
+ DCHECK(command_buffer);
gapi_.reset(new command_buffer::GAPID3D9);
decoder_.reset(new command_buffer::GAPIDecoder(gapi_.get()));
decoder_->set_engine(this);
}
GPUProcessor::GPUProcessor(NPP npp,
- const NPObjectPointer<CommandBuffer>& command_buffer,
+ CommandBuffer* command_buffer,
command_buffer::GAPID3D9* gapi,
command_buffer::GAPIDecoder* decoder,
command_buffer::CommandParser* parser,
@@ -28,6 +29,7 @@ GPUProcessor::GPUProcessor(NPP npp,
: npp_(npp),
command_buffer_(command_buffer),
commands_per_update_(commands_per_update) {
+ DCHECK(command_buffer);
gapi_.reset(gapi);
decoder_.reset(decoder);
parser_.reset(parser);