summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-20 21:38:27 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-20 21:38:27 +0000
commitbc51875961a1e943f224a4c5e46da106b39f1c46 (patch)
tree7f21e0f624a38dda99e087000e325d1a07273784 /chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
parent987c09d491df35db519eb3f5dc398d51b179f7d5 (diff)
downloadchromium_src-bc51875961a1e943f224a4c5e46da106b39f1c46.zip
chromium_src-bc51875961a1e943f224a4c5e46da106b39f1c46.tar.gz
chromium_src-bc51875961a1e943f224a4c5e46da106b39f1c46.tar.bz2
Changes WebGL to rely on the command buffer
for more validation. This change also means that the shader compiler is put into WebGL mode for WebGL. TEST=ran webgl conformance tests. BUG=none Review URL: http://codereview.chromium.org/3890004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63267 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc')
-rw-r--r--chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
index 67e26c7..1ffd0fe 100644
--- a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
+++ b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
@@ -55,9 +55,10 @@ WebGraphicsContext3DCommandBufferImpl::
}
static const char* kWebGraphicsContext3DPerferredGLExtensions =
- "GL_EXT_packed_depth_stencil "
"GL_OES_packed_depth_stencil "
- "GL_OES_depth24";
+ "GL_OES_depth24 "
+ "GL_CHROMIUM_strict_attribs "
+ "GL_CHROMIUM_webglsl";
bool WebGraphicsContext3DCommandBufferImpl::initialize(
WebGraphicsContext3D::Attributes attributes,
@@ -195,12 +196,8 @@ bool WebGraphicsContext3DCommandBufferImpl::isGLES2Compliant() {
return true;
}
-bool WebGraphicsContext3DCommandBufferImpl::isGLES2ParameterStrict() {
- return false;
-}
-
bool WebGraphicsContext3DCommandBufferImpl::isGLES2NPOTStrict() {
- return false;
+ return true;
}
bool WebGraphicsContext3DCommandBufferImpl::