diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-20 21:38:27 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-20 21:38:27 +0000 |
commit | bc51875961a1e943f224a4c5e46da106b39f1c46 (patch) | |
tree | 7f21e0f624a38dda99e087000e325d1a07273784 /chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc | |
parent | 987c09d491df35db519eb3f5dc398d51b179f7d5 (diff) | |
download | chromium_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.cc | 11 |
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:: |