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

Unified Diff: chrome/plugin/command_buffer_stub.cc

Issue 1136006: Calling OpenGL from the renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 | « chrome/plugin/command_buffer_stub.h ('k') | chrome/renderer/command_buffer_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/plugin/command_buffer_stub.cc
===================================================================
--- chrome/plugin/command_buffer_stub.cc (revision 42644)
+++ chrome/plugin/command_buffer_stub.cc (working copy)
@@ -92,8 +92,8 @@
}
// 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::Destroy() {
- processor_ = NULL;
+ processor_.reset();
command_buffer_.reset();
DestroyPlatformSpecific();
« no previous file with comments | « chrome/plugin/command_buffer_stub.h ('k') | chrome/renderer/command_buffer_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698