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

Unified Diff: o3d/gpu_plugin/gpu_plugin_object.cc

Issue 234001: GPUProcessor uses O3D command buffer service to render to a window.... (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 | « o3d/gpu_plugin/gpu_plugin.gyp ('k') | o3d/gpu_plugin/gpu_plugin_object_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: o3d/gpu_plugin/gpu_plugin_object.cc
===================================================================
--- o3d/gpu_plugin/gpu_plugin_object.cc (revision 26879)
+++ o3d/gpu_plugin/gpu_plugin_object.cc (working copy)
@@ -89,14 +89,17 @@
command_buffer_ = NPCreateObject<CommandBuffer>(npp_);
if (command_buffer_->Initialize(kCommandBufferSize)) {
- processor_ = new GPUProcessor(command_buffer_);
- command_buffer_->SetPutOffsetChangeCallback(
- NewCallback(processor_.get(),
- &GPUProcessor::ProcessCommands));
- UpdateProcessorWindow();
- return command_buffer_;
+ processor_ = new GPUProcessor(npp_, command_buffer_);
+ if (processor_->Initialize(static_cast<HWND>(window_.window))) {
+ command_buffer_->SetPutOffsetChangeCallback(
+ NewCallback(processor_.get(),
+ &GPUProcessor::ProcessCommands));
+ UpdateProcessorWindow();
+ return command_buffer_;
+ }
}
+ processor_ = NULL;
command_buffer_ = NPObjectPointer<CommandBuffer>();
return command_buffer_;
}
« no previous file with comments | « o3d/gpu_plugin/gpu_plugin.gyp ('k') | o3d/gpu_plugin/gpu_plugin_object_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698