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 /gpu/command_buffer/service/feature_info.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 'gpu/command_buffer/service/feature_info.cc')
-rw-r--r-- | gpu/command_buffer/service/feature_info.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc index fa835ef..3edb49e 100644 --- a/gpu/command_buffer/service/feature_info.cc +++ b/gpu/command_buffer/service/feature_info.cc @@ -95,6 +95,18 @@ void FeatureInfo::AddFeatures(const char* desired_features) { AddExtensionString("GL_CHROMIUM_map_sub"); } + // Only turn this feature on if it is requested. Not by default. + if (desired_features && ext.Desire("GL_CHROMIUM_strict_attribs")) { + AddExtensionString("GL_CHROMIUM_strict_attribs"); + feature_flags_.chromium_strict_attribs = true; + } + + // Only turn this feature on if it is requested. Not by default. + if (desired_features && ext.Desire("GL_CHROMIUM_webglsl")) { + AddExtensionString("GL_CHROMIUM_webglsl"); + feature_flags_.chromium_webglsl = true; + } + // Check if we should allow GL_EXT_texture_compression_dxt1 and // GL_EXT_texture_compression_s3tc. bool enable_dxt1 = false; |