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

Unified Diff: gpu/command_buffer/client/cmd_buffer_helper_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/cmd_buffer_helper.cc ('k') | gpu/command_buffer/client/fenced_allocator.h » ('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_test.cc
===================================================================
--- gpu/command_buffer/client/cmd_buffer_helper_test.cc (revision 35153)
+++ gpu/command_buffer/client/cmd_buffer_helper_test.cc (working copy)
@@ -14,8 +14,6 @@
namespace gpu {
-using gpu::CommandBufferService;
-using gpu::GPUProcessor;
using testing::Return;
using testing::Mock;
using testing::Truly;
@@ -41,17 +39,16 @@
.WillRepeatedly(Return(parse_error::kParseNoError));
command_buffer_.reset(new CommandBufferService);
- base::SharedMemory* ring_buffer = command_buffer_->Initialize(
- kNumCommandEntries);
+ command_buffer_->Initialize(kNumCommandEntries);
+ Buffer ring_buffer = command_buffer_->GetRingBuffer();
+ parser_ = new CommandParser(ring_buffer.ptr,
+ ring_buffer.size,
+ 0,
+ ring_buffer.size,
+ 0,
+ api_mock_.get());
- parser_ = new gpu::CommandParser(ring_buffer->memory(),
- kCommandBufferSizeBytes,
- 0,
- kCommandBufferSizeBytes,
- 0,
- api_mock_.get());
-
scoped_refptr<GPUProcessor> gpu_processor(new GPUProcessor(
command_buffer_.get(), NULL, parser_, 1));
command_buffer_->SetPutOffsetChangeCallback(NewCallback(
@@ -111,7 +108,7 @@
MessageLoop message_loop_;
scoped_ptr<AsyncAPIMock> api_mock_;
scoped_ptr<CommandBufferService> command_buffer_;
- gpu::CommandParser* parser_;
+ CommandParser* parser_;
scoped_ptr<CommandBufferHelper> helper_;
Sequence sequence_;
};
« no previous file with comments | « gpu/command_buffer/client/cmd_buffer_helper.cc ('k') | gpu/command_buffer/client/fenced_allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698