summaryrefslogtreecommitdiffstats
path: root/ppapi
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 /ppapi
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 'ppapi')
-rw-r--r--ppapi/proxy/ppb_context_3d_proxy.cc3
-rw-r--r--ppapi/shared_impl/graphics_3d_impl.cc3
2 files changed, 4 insertions, 2 deletions
diff --git a/ppapi/proxy/ppb_context_3d_proxy.cc b/ppapi/proxy/ppb_context_3d_proxy.cc
index 3b1bd37..fd37cac 100644
--- a/ppapi/proxy/ppb_context_3d_proxy.cc
+++ b/ppapi/proxy/ppb_context_3d_proxy.cc
@@ -384,7 +384,8 @@ bool Context3D::CreateImplementation() {
transfer_buffer.size,
transfer_buffer.ptr,
transfer_buffer_id_,
- false));
+ false,
+ true));
return true;
}
diff --git a/ppapi/shared_impl/graphics_3d_impl.cc b/ppapi/shared_impl/graphics_3d_impl.cc
index 0299f5f..75d3a18 100644
--- a/ppapi/shared_impl/graphics_3d_impl.cc
+++ b/ppapi/shared_impl/graphics_3d_impl.cc
@@ -92,7 +92,8 @@ bool Graphics3DImpl::CreateGLES2Impl(int32 command_buffer_size,
transfer_buffer.size,
transfer_buffer.ptr,
transfer_buffer_id_,
- false));
+ false,
+ true));
return true;
}