diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-28 23:36:54 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-28 23:36:54 +0000 |
commit | 36dbfe198cb0eab50ff4a7300fc86b8314d30cde (patch) | |
tree | c7b2271be2e885ca87ac58d53e338cca322276a4 /gpu/pgl | |
parent | 406e6e22b82ef80e8bc44f45d85efa68799bc552 (diff) | |
download | chromium_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/pgl')
-rw-r--r-- | gpu/pgl/command_buffer_pepper.cc | 5 | ||||
-rw-r--r-- | gpu/pgl/command_buffer_pepper.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gpu/pgl/command_buffer_pepper.cc b/gpu/pgl/command_buffer_pepper.cc index e4b6ce8..c508b53 100644 --- a/gpu/pgl/command_buffer_pepper.cc +++ b/gpu/pgl/command_buffer_pepper.cc @@ -27,6 +27,11 @@ bool CommandBufferPepper::Initialize(int32 size) { return false; } +bool CommandBufferPepper::Initialize(base::SharedMemory* buffer, int32 size) { + GPU_NOTREACHED(); + return false; +} + Buffer CommandBufferPepper::GetRingBuffer() { Buffer buffer; #if defined(ENABLE_NEW_NPDEVICE_API) diff --git a/gpu/pgl/command_buffer_pepper.h b/gpu/pgl/command_buffer_pepper.h index 902db36..8f990da 100644 --- a/gpu/pgl/command_buffer_pepper.h +++ b/gpu/pgl/command_buffer_pepper.h @@ -15,6 +15,10 @@ #include "third_party/npapi/bindings/nphostapi.h" #endif // __native_client__ +namespace { +class SharedMemory; +} + // A CommandBuffer proxy implementation that uses the Pepper API to access // the command buffer. @@ -27,6 +31,7 @@ class CommandBufferPepper : public gpu::CommandBuffer { // CommandBuffer implementation. virtual bool Initialize(int32 size); + virtual bool Initialize(base::SharedMemory* buffer, int32 size); virtual gpu::Buffer GetRingBuffer(); virtual State GetState(); virtual void Flush(int32 put_offset); |