Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: gpu/command_buffer/service/feature_info.cc

Issue 8373006: Rename setVisibility to setVisibilityCHROMIUM and expose as GL_CHROIMIUM_set_visibility extension. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: . Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 #include "gpu/command_buffer/service/feature_info.h" 7 #include "gpu/command_buffer/service/feature_info.h"
8 #include "gpu/command_buffer/service/gl_utils.h" 8 #include "gpu/command_buffer/service/gl_utils.h"
9 #include "ui/gfx/gl/gl_implementation.h" 9 #include "ui/gfx/gl/gl_implementation.h"
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS)), 99 reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS)),
100 desired_features); 100 desired_features);
101 101
102 bool npot_ok = false; 102 bool npot_ok = false;
103 103
104 AddExtensionString("GL_CHROMIUM_resource_safe"); 104 AddExtensionString("GL_CHROMIUM_resource_safe");
105 AddExtensionString("GL_CHROMIUM_resize"); 105 AddExtensionString("GL_CHROMIUM_resize");
106 AddExtensionString("GL_CHROMIUM_strict_attribs"); 106 AddExtensionString("GL_CHROMIUM_strict_attribs");
107 AddExtensionString("GL_CHROMIUM_swapbuffers_complete_callback"); 107 AddExtensionString("GL_CHROMIUM_swapbuffers_complete_callback");
108 AddExtensionString("GL_CHROMIUM_rate_limit_offscreen_context"); 108 AddExtensionString("GL_CHROMIUM_rate_limit_offscreen_context");
109 AddExtensionString("GL_CHROMIUM_set_visibility");
109 AddExtensionString("GL_ANGLE_translated_shader_source"); 110 AddExtensionString("GL_ANGLE_translated_shader_source");
110 111
111 // Only turn this feature on if it is requested. Not by default. 112 // Only turn this feature on if it is requested. Not by default.
112 if (desired_features && ext.Desire("GL_CHROMIUM_webglsl")) { 113 if (desired_features && ext.Desire("GL_CHROMIUM_webglsl")) {
113 AddExtensionString("GL_CHROMIUM_webglsl"); 114 AddExtensionString("GL_CHROMIUM_webglsl");
114 feature_flags_.chromium_webglsl = true; 115 feature_flags_.chromium_webglsl = true;
115 } 116 }
116 117
117 // Check if we should allow GL_EXT_texture_compression_dxt1 and 118 // Check if we should allow GL_EXT_texture_compression_dxt1 and
118 // GL_EXT_texture_compression_s3tc. 119 // GL_EXT_texture_compression_s3tc.
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 } 356 }
356 357
357 void FeatureInfo::AddExtensionString(const std::string& str) { 358 void FeatureInfo::AddExtensionString(const std::string& str) {
358 if (extensions_.find(str) == std::string::npos) { 359 if (extensions_.find(str) == std::string::npos) {
359 extensions_ += (extensions_.empty() ? "" : " ") + str; 360 extensions_ += (extensions_.empty() ? "" : " ") + str;
360 } 361 }
361 } 362 }
362 363
363 } // namespace gles2 364 } // namespace gles2
364 } // namespace gpu 365 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698