summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/context_group.cc
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-16 08:39:35 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-16 08:39:35 +0000
commitbf5a8d13ec2321d56c34a986070476f61f3e5b1c (patch)
tree0109d0e0b685b97d93eb467192fb84f6317e5319 /gpu/command_buffer/service/context_group.cc
parent2c9bc58faf9a0d67e64d6c38d94dbafea2f4e07b (diff)
downloadchromium_src-bf5a8d13ec2321d56c34a986070476f61f3e5b1c.zip
chromium_src-bf5a8d13ec2321d56c34a986070476f61f3e5b1c.tar.gz
chromium_src-bf5a8d13ec2321d56c34a986070476f61f3e5b1c.tar.bz2
Add option to not generate resources on bind in OpenGL ES
This allowes us to more efficiently manage ids. It is not OpenGL ES 2.0 compatible though it probably fits most OpenGL ES programs. Note that we need to turn this off on Pepper and/or probably provide a way for Pepper to turn on on. I'm not sure of the path Pepper takes to setup. Assuming it goes through GraphicsContext3D then changes to webkit will be needed to get the flag all the way down through IPC to the GPU process. TEST=unit tests and ran a few pages in a chrome build BUG=92260 Review URL: http://codereview.chromium.org/7633060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96904 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/context_group.cc')
-rw-r--r--gpu/command_buffer/service/context_group.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/context_group.cc b/gpu/command_buffer/service/context_group.cc
index 36c8d03..b93c034 100644
--- a/gpu/command_buffer/service/context_group.cc
+++ b/gpu/command_buffer/service/context_group.cc
@@ -16,9 +16,10 @@
namespace gpu {
namespace gles2 {
-ContextGroup::ContextGroup()
+ContextGroup::ContextGroup(bool bind_generates_resource)
: initialized_(false),
have_context_(true),
+ bind_generates_resource_(bind_generates_resource),
max_vertex_attribs_(0u),
max_texture_units_(0u),
max_texture_image_units_(0u),