diff options
Diffstat (limited to 'chrome/plugin')
-rw-r--r-- | chrome/plugin/command_buffer_stub.cc | 6 | ||||
-rw-r--r-- | chrome/plugin/command_buffer_stub.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/plugin/command_buffer_stub.cc b/chrome/plugin/command_buffer_stub.cc index 7dc049c..de18db6 100644 --- a/chrome/plugin/command_buffer_stub.cc +++ b/chrome/plugin/command_buffer_stub.cc @@ -92,8 +92,8 @@ void CommandBufferStub::OnInitialize(int32 size, } // Initialize the GPUProcessor. - processor_ = new gpu::GPUProcessor(command_buffer_.get()); - if (!processor_->Initialize(window_)) { + processor_.reset(new gpu::GPUProcessor(command_buffer_.get())); + if (!processor_->Initialize(window_, NULL, gfx::Size(), 0)) { Destroy(); return; } @@ -175,7 +175,7 @@ void CommandBufferStub::OnGetTransferBuffer( } void CommandBufferStub::Destroy() { - processor_ = NULL; + processor_.reset(); command_buffer_.reset(); DestroyPlatformSpecific(); diff --git a/chrome/plugin/command_buffer_stub.h b/chrome/plugin/command_buffer_stub.h index 026110f..83564ca 100644 --- a/chrome/plugin/command_buffer_stub.h +++ b/chrome/plugin/command_buffer_stub.h @@ -73,7 +73,7 @@ class CommandBufferStub : public IPC::Channel::Listener, gfx::PluginWindowHandle window_; int route_id_; scoped_ptr<gpu::CommandBufferService> command_buffer_; - scoped_refptr<gpu::GPUProcessor> processor_; + scoped_ptr<gpu::GPUProcessor> processor_; }; #endif // ENABLE_GPU |