summaryrefslogtreecommitdiffstats
path: root/gpu/demos
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/demos
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/demos')
-rw-r--r--gpu/demos/framework/window.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gpu/demos/framework/window.cc b/gpu/demos/framework/window.cc
index 34f20fd..e5d24dd 100644
--- a/gpu/demos/framework/window.cc
+++ b/gpu/demos/framework/window.cc
@@ -90,7 +90,8 @@ bool Window::CreateRenderContext(gfx::PluginWindowHandle hwnd) {
transfer_buffer.size,
transfer_buffer.ptr,
transfer_buffer_id,
- false));
+ false,
+ true));
return command_buffer.release() != NULL;
}