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

Unified Diff: gpu/command_buffer/client/cmd_buffer_helper.cc

Issue 367002: Added Pepper 3D render context that instantiates the GPU plugin.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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 | « gpu/command_buffer/client/cmd_buffer_helper.h ('k') | gpu/command_buffer/client/cmd_buffer_helper_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/cmd_buffer_helper.cc
===================================================================
--- gpu/command_buffer/client/cmd_buffer_helper.cc (revision 35153)
+++ gpu/command_buffer/client/cmd_buffer_helper.cc (working copy)
@@ -9,8 +9,6 @@
namespace gpu {
-using gpu::CommandBuffer;
-
CommandBufferHelper::CommandBufferHelper(CommandBuffer* command_buffer)
: command_buffer_(command_buffer),
entries_(NULL),
@@ -23,14 +21,10 @@
bool CommandBufferHelper::Initialize() {
ring_buffer_ = command_buffer_->GetRingBuffer();
- if (!ring_buffer_)
+ if (!ring_buffer_.ptr)
return false;
- // Map the ring buffer into this process.
- if (!ring_buffer_->Map(ring_buffer_->max_size()))
- return false;
-
- entries_ = static_cast<CommandBufferEntry*>(ring_buffer_->memory());
+ entries_ = static_cast<CommandBufferEntry*>(ring_buffer_.ptr);
entry_count_ = command_buffer_->GetSize();
get_ = command_buffer_->GetGetOffset();
put_ = command_buffer_->GetPutOffset();
« no previous file with comments | « gpu/command_buffer/client/cmd_buffer_helper.h ('k') | gpu/command_buffer/client/cmd_buffer_helper_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698