summaryrefslogtreecommitdiffstats
path: root/chrome/gpu/gpu_command_buffer_stub.cc
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 20:06:02 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 20:06:02 +0000
commit34ff8b0ce22406a4f8777ea3da9e08fc02af6beb (patch)
treec59971cc688bbb3aeb383e3a36cb29164bbde589 /chrome/gpu/gpu_command_buffer_stub.cc
parent1599077a645a03c31c09efe57befaefbe00c958a (diff)
downloadchromium_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/gpu/gpu_command_buffer_stub.cc')
-rw-r--r--chrome/gpu/gpu_command_buffer_stub.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/gpu/gpu_command_buffer_stub.cc b/chrome/gpu/gpu_command_buffer_stub.cc
index 9445074..040dcef 100644
--- a/chrome/gpu/gpu_command_buffer_stub.cc
+++ b/chrome/gpu/gpu_command_buffer_stub.cc
@@ -18,6 +18,7 @@ GpuCommandBufferStub::GpuCommandBufferStub(GpuChannel* channel,
gfx::PluginWindowHandle handle,
GpuCommandBufferStub* parent,
const gfx::Size& size,
+ const std::vector<int32>& attribs,
uint32 parent_texture_id,
int32 route_id,
int32 renderer_id,
@@ -27,6 +28,7 @@ GpuCommandBufferStub::GpuCommandBufferStub(GpuChannel* channel,
parent_(
parent ? parent->AsWeakPtr() : base::WeakPtr<GpuCommandBufferStub>()),
initial_size_(size),
+ requested_attribs_(attribs),
parent_texture_id_(parent_texture_id),
route_id_(route_id),
renderer_id_(renderer_id),
@@ -84,6 +86,7 @@ void GpuCommandBufferStub::OnInitialize(
if (processor_->Initialize(
handle_,
initial_size_,
+ requested_attribs_,
parent_processor,
parent_texture_id_)) {
command_buffer_->SetPutOffsetChangeCallback(