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

Unified Diff: gpu/command_buffer/client/fenced_allocator_test.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/fenced_allocator.h ('k') | gpu/command_buffer/client/gles2_cmd_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/fenced_allocator_test.cc
===================================================================
--- gpu/command_buffer/client/fenced_allocator_test.cc (revision 35153)
+++ gpu/command_buffer/client/fenced_allocator_test.cc (working copy)
@@ -16,8 +16,6 @@
namespace gpu {
-using gpu::CommandBufferService;
-using gpu::GPUProcessor;
using testing::Return;
using testing::Mock;
using testing::Truly;
@@ -42,15 +40,15 @@
Return(parse_error::kParseNoError)));
command_buffer_.reset(new CommandBufferService);
- base::SharedMemory* ring_buffer = command_buffer_->Initialize(
- kBufferSize / sizeof(CommandBufferEntry));
+ command_buffer_->Initialize(kBufferSize / sizeof(CommandBufferEntry));
+ Buffer ring_buffer = command_buffer_->GetRingBuffer();
- parser_ = new gpu::CommandParser(ring_buffer->memory(),
- kBufferSize,
- 0,
- kBufferSize,
- 0,
- api_mock_.get());
+ parser_ = new CommandParser(ring_buffer.ptr,
+ ring_buffer.size,
+ 0,
+ ring_buffer.size,
+ 0,
+ api_mock_.get());
scoped_refptr<GPUProcessor> gpu_processor(new GPUProcessor(
command_buffer_.get(), NULL, parser_, INT_MAX));
@@ -71,7 +69,7 @@
MessageLoop message_loop_;
scoped_ptr<AsyncAPIMock> api_mock_;
scoped_ptr<CommandBufferService> command_buffer_;
- gpu::CommandParser* parser_;
+ CommandParser* parser_;
scoped_ptr<CommandBufferHelper> helper_;
};
« no previous file with comments | « gpu/command_buffer/client/fenced_allocator.h ('k') | gpu/command_buffer/client/gles2_cmd_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698