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/gles2_demo.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/gles2_cmd_helper.cc ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gles2_demo.cc
===================================================================
--- gpu/command_buffer/client/gles2_demo.cc (revision 34314)
+++ gpu/command_buffer/client/gles2_demo.cc (working copy)
@@ -25,10 +25,10 @@
#include "gpu/command_buffer/client/gles2_demo_cc.h"
using base::SharedMemory;
-using command_buffer::GPUProcessor;
-using command_buffer::CommandBufferService;
-using command_buffer::gles2::GLES2CmdHelper;
-using command_buffer::gles2::GLES2Implementation;
+using gpu::GPUProcessor;
+using gpu::CommandBufferService;
+using gpu::gles2::GLES2CmdHelper;
+using gpu::gles2::GLES2Implementation;
class GLES2Demo {
public:
@@ -44,17 +44,8 @@
}
bool GLES2Demo::Setup(void* hwnd, int32 size) {
- scoped_ptr<SharedMemory> ring_buffer(new SharedMemory);
- if (!ring_buffer->Create(std::wstring(), false, false, size)) {
- return NULL;
- }
-
- if (!ring_buffer->Map(size)) {
- return NULL;
- }
-
scoped_ptr<CommandBufferService> command_buffer(new CommandBufferService);
- if (!command_buffer->Initialize(ring_buffer.release())) {
+ if (!command_buffer->Initialize(size)) {
return NULL;
}
« no previous file with comments | « gpu/command_buffer/client/gles2_cmd_helper.cc ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698