summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/feature_info.cc
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-12 00:51:48 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-12 00:51:48 +0000
commit491328e2de2e7b6b405943f676166e72b2a77784 (patch)
tree38de50c24815d3025a572783293bc875773c8a08 /gpu/command_buffer/service/feature_info.cc
parentf57bb2865fa146140d27e64c68148b79724f2f35 (diff)
downloadchromium_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.cc17
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")) {