summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/common/command_buffer.h
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-28 23:36:54 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-28 23:36:54 +0000
commit36dbfe198cb0eab50ff4a7300fc86b8314d30cde (patch)
treec7b2271be2e885ca87ac58d53e338cca322276a4 /gpu/command_buffer/common/command_buffer.h
parent406e6e22b82ef80e8bc44f45d85efa68799bc552 (diff)
downloadchromium_src-36dbfe198cb0eab50ff4a7300fc86b8314d30cde.zip
chromium_src-36dbfe198cb0eab50ff4a7300fc86b8314d30cde.tar.gz
chromium_src-36dbfe198cb0eab50ff4a7300fc86b8314d30cde.tar.bz2
Moved creation of GPU command buffer shared memory into the browser process.
This is to allow the GPU process to be sandboxed on all platforms. TEST=try, run WebGL app on win and mac. BUG=none Review URL: http://codereview.chromium.org/6588029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76307 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/common/command_buffer.h')
-rw-r--r--gpu/command_buffer/common/command_buffer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gpu/command_buffer/common/command_buffer.h b/gpu/command_buffer/common/command_buffer.h
index b758333..bcc39ea 100644
--- a/gpu/command_buffer/common/command_buffer.h
+++ b/gpu/command_buffer/common/command_buffer.h
@@ -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 @@ class CommandBuffer {
// 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;