diff options
author | kbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-27 00:23:34 +0000 |
---|---|---|
committer | kbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-27 00:23:34 +0000 |
commit | 3bf4d53ecb0a07e8639b4403997cddb6869ebc61 (patch) | |
tree | 5283f1b9733ecab92f0b2875110a4194c1ee41e0 /chrome/browser/gpu_process_host.h | |
parent | 6f4926b7834dfaf506957b02dd80e6004489824e (diff) | |
download | chromium_src-3bf4d53ecb0a07e8639b4403997cddb6869ebc61.zip chromium_src-3bf4d53ecb0a07e8639b4403997cddb6869ebc61.tar.gz chromium_src-3bf4d53ecb0a07e8639b4403997cddb6869ebc61.tar.bz2 |
Added command buffer implementation of WebGL which runs in the sandbox.
Added synchronous initialization of the channel to the GPU process, needed
to obey WebGL startup semantics. There are problems with this on the
Windows platform which will be addressed via refactoring in the
GpuProcessHost in a subsequent CL. Implemented offscreen rendering code
path in GGL / GLES2CmdDecoder for Mac OS X.
This new code path is not yet complete for all platforms and is still being
stress tested. The previous in-process WebGL implementation is currently
used when the sandbox is disabled; it will be removed in a subsequent CL.
A one-line code change in WebKit is needed after this CL lands to enable
the new code path.
BUG=29120
TEST=ran WebGL demos on command buffer implementation on Mac
Review URL: http://codereview.chromium.org/1328001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42879 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gpu_process_host.h')
-rw-r--r-- | chrome/browser/gpu_process_host.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/gpu_process_host.h b/chrome/browser/gpu_process_host.h index 4d74e00..27d3fe3 100644 --- a/chrome/browser/gpu_process_host.h +++ b/chrome/browser/gpu_process_host.h @@ -53,6 +53,10 @@ class GpuProcessHost : public IPC::Channel::Sender, // on completion. void EstablishGpuChannel(int renderer_id); + // Sends a reply message later when the next GpuHostMsg_SynchronizeReply comes + // in. + void Synchronize(int renderer_id, IPC::Message* reply); + private: friend struct DefaultSingletonTraits<GpuProcessHost>; @@ -74,6 +78,7 @@ class GpuProcessHost : public IPC::Channel::Sender, // Message handlers. void OnChannelEstablished(const IPC::ChannelHandle& channel_handle); + void OnSynchronizeReply(int renderer_id); void ReplyToRenderer(int renderer_id, const IPC::ChannelHandle& channel); @@ -104,6 +109,9 @@ class GpuProcessHost : public IPC::Channel::Sender, // because the queued messages may have dependencies on the init messages. std::queue<IPC::Message*> queued_messages_; + // The pending synchronization requests we need to reply to. + std::queue<IPC::Message*> queued_synchronization_replies_; + DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); }; |