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

Unified Diff: gpu/command_buffer/common/command_buffer.h

Issue 6588029: Moved creation of GPU command buffer shared memory into the browser process.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months 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
Index: gpu/command_buffer/common/command_buffer.h
===================================================================
--- gpu/command_buffer/common/command_buffer.h (revision 76263)
+++ gpu/command_buffer/common/command_buffer.h (working copy)
@@ -8,6 +8,10 @@
#include "../common/buffer.h"
#include "../common/constants.h"
+namespace base {
+class SharedMemory;
+}
+
namespace gpu {
// Common interface for CommandBuffer implementations.
@@ -55,6 +59,9 @@
// Initialize the command buffer with the given size.
virtual bool Initialize(int32 size) = 0;
+ // Initialize the command buffer using the given preallocated buffer.
+ virtual bool Initialize(base::SharedMemory* buffer, int32 size) = 0;
+
// Gets the ring buffer for the command buffer.
virtual Buffer GetRingBuffer() = 0;
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_unittest.cc ('k') | gpu/command_buffer/common/command_buffer_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698