diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-12 00:51:48 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-12 00:51:48 +0000 |
commit | 491328e2de2e7b6b405943f676166e72b2a77784 (patch) | |
tree | 38de50c24815d3025a572783293bc875773c8a08 /gpu/command_buffer/service/feature_info.cc | |
parent | f57bb2865fa146140d27e64c68148b79724f2f35 (diff) | |
download | chromium_src-491328e2de2e7b6b405943f676166e72b2a77784.zip chromium_src-491328e2de2e7b6b405943f676166e72b2a77784.tar.gz chromium_src-491328e2de2e7b6b405943f676166e72b2a77784.tar.bz2 |
Add GL_CHROMIUM_resource_safe extension string
which means that the underlying OpenGL makes sure
buffers, textures and renderbuffers are cleared.
TEST=unit tests
BUG=none
Review URL: http://codereview.chromium.org/4844001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65883 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 | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc index 94a6b29..8fdac29 100644 --- a/gpu/command_buffer/service/feature_info.cc +++ b/gpu/command_buffer/service/feature_info.cc @@ -91,19 +91,10 @@ void FeatureInfo::AddFeatures(const char* desired_features) { bool npot_ok = false; - if (ext.Desire("GL_CHROMIUM_map_sub")) { - AddExtensionString("GL_CHROMIUM_map_sub"); - } - - if (ext.Desire("GL_CHROMIUM_copy_texture_to_parent_texture")) { - AddExtensionString("GL_CHROMIUM_copy_texture_to_parent_texture"); - } - - // 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; - } + AddExtensionString("GL_CHROMIUM_map_sub"); + AddExtensionString("GL_CHROMIUM_copy_texture_to_parent_texture"); + AddExtensionString("GL_CHROMIUM_resource_safe"); + AddExtensionString("GL_CHROMIUM_strict_attribs"); // Only turn this feature on if it is requested. Not by default. if (desired_features && ext.Desire("GL_CHROMIUM_webglsl")) { |