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_; |
}; |