diff options
author | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-01 20:06:02 +0000 |
---|---|---|
committer | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-01 20:06:02 +0000 |
commit | 34ff8b0ce22406a4f8777ea3da9e08fc02af6beb (patch) | |
tree | c59971cc688bbb3aeb383e3a36cb29164bbde589 /chrome/renderer/gpu_channel_host.cc | |
parent | 1599077a645a03c31c09efe57befaefbe00c958a (diff) | |
download | chromium_src-34ff8b0ce22406a4f8777ea3da9e08fc02af6beb.zip chromium_src-34ff8b0ce22406a4f8777ea3da9e08fc02af6beb.tar.gz chromium_src-34ff8b0ce22406a4f8777ea3da9e08fc02af6beb.tar.bz2 |
Add offscreen context creation attributes to GGL.
View contexts and more extensive color format picking not handled yet.
BUG=39849
TEST=WebGL conformance tests (context*.html)
Review URL: http://codereview.chromium.org/3302019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61220 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/gpu_channel_host.cc')
-rw-r--r-- | chrome/renderer/gpu_channel_host.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/renderer/gpu_channel_host.cc b/chrome/renderer/gpu_channel_host.cc index 141ae6f..0b576b8 100644 --- a/chrome/renderer/gpu_channel_host.cc +++ b/chrome/renderer/gpu_channel_host.cc @@ -109,6 +109,7 @@ CommandBufferProxy* GpuChannelHost::CreateViewCommandBuffer( CommandBufferProxy* GpuChannelHost::CreateOffscreenCommandBuffer( CommandBufferProxy* parent, const gfx::Size& size, + const std::vector<int32>& attribs, uint32 parent_texture_id) { #if defined(ENABLE_GPU) // An error occurred. Need to get the host again to reinitialize it. @@ -119,6 +120,7 @@ CommandBufferProxy* GpuChannelHost::CreateOffscreenCommandBuffer( int32 route_id; if (!Send(new GpuChannelMsg_CreateOffscreenCommandBuffer(parent_route_id, size, + attribs, parent_texture_id, &route_id)) && route_id != MSG_ROUTING_NONE) { @@ -148,4 +150,3 @@ void GpuChannelHost::DestroyCommandBuffer(CommandBufferProxy* command_buffer) { delete command_buffer; #endif } - |