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

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

Issue 465040: Added CommandBufferClient, CommandBufferStub and some IPC messages.... (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.cc ('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 34314)
+++ gpu/command_buffer/client/fenced_allocator_test.cc (working copy)
@@ -42,10 +42,10 @@
#include "gpu/command_buffer/service/gpu_processor.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace command_buffer {
+namespace gpu {
-using command_buffer::CommandBufferService;
-using command_buffer::GPUProcessor;
+using gpu::CommandBufferService;
+using gpu::GPUProcessor;
using testing::Return;
using testing::Mock;
using testing::Truly;
@@ -69,14 +69,11 @@
.WillRepeatedly(DoAll(Invoke(api_mock_.get(), &AsyncAPIMock::SetToken),
Return(parse_error::kParseNoError)));
- base::SharedMemory* ring_buffer = new base::SharedMemory;
- ring_buffer->Create(std::wstring(), false, false, 1024);
- ring_buffer->Map(1024);
-
command_buffer_.reset(new CommandBufferService);
- command_buffer_->Initialize(ring_buffer);
+ base::SharedMemory* ring_buffer = command_buffer_->Initialize(
+ kBufferSize / sizeof(CommandBufferEntry));
- parser_ = new command_buffer::CommandParser(ring_buffer->memory(),
+ parser_ = new gpu::CommandParser(ring_buffer->memory(),
kBufferSize,
0,
kBufferSize,
@@ -102,7 +99,7 @@
MessageLoop message_loop_;
scoped_ptr<AsyncAPIMock> api_mock_;
scoped_ptr<CommandBufferService> command_buffer_;
- command_buffer::CommandParser* parser_;
+ gpu::CommandParser* parser_;
scoped_ptr<CommandBufferHelper> helper_;
};
@@ -493,4 +490,4 @@
}
}
-} // namespace command_buffer
+} // namespace gpu
« no previous file with comments | « gpu/command_buffer/client/fenced_allocator.cc ('k') | gpu/command_buffer/client/gles2_cmd_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698