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

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

Issue 10836185: Implement GL_EXT_debug_marker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "gpu/command_buffer/service/feature_info.h" 5 #include "gpu/command_buffer/service/feature_info.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 AddExtensionString("GL_CHROMIUM_command_buffer_query"); 198 AddExtensionString("GL_CHROMIUM_command_buffer_query");
199 AddExtensionString("GL_CHROMIUM_copy_texture"); 199 AddExtensionString("GL_CHROMIUM_copy_texture");
200 AddExtensionString("GL_CHROMIUM_discard_framebuffer"); 200 AddExtensionString("GL_CHROMIUM_discard_framebuffer");
201 AddExtensionString("GL_CHROMIUM_get_error_query"); 201 AddExtensionString("GL_CHROMIUM_get_error_query");
202 AddExtensionString("GL_CHROMIUM_rate_limit_offscreen_context"); 202 AddExtensionString("GL_CHROMIUM_rate_limit_offscreen_context");
203 AddExtensionString("GL_CHROMIUM_resize"); 203 AddExtensionString("GL_CHROMIUM_resize");
204 AddExtensionString("GL_CHROMIUM_resource_safe"); 204 AddExtensionString("GL_CHROMIUM_resource_safe");
205 AddExtensionString("GL_CHROMIUM_set_visibility"); 205 AddExtensionString("GL_CHROMIUM_set_visibility");
206 AddExtensionString("GL_CHROMIUM_strict_attribs"); 206 AddExtensionString("GL_CHROMIUM_strict_attribs");
207 AddExtensionString("GL_CHROMIUM_texture_mailbox"); 207 AddExtensionString("GL_CHROMIUM_texture_mailbox");
208 AddExtensionString("GL_EXT_debug_marker");
208 209
209 if (!disallowed_features_.gpu_memory_manager) 210 if (!disallowed_features_.gpu_memory_manager)
210 AddExtensionString("GL_CHROMIUM_gpu_memory_manager"); 211 AddExtensionString("GL_CHROMIUM_gpu_memory_manager");
211 212
212 if (ext.Have("GL_ANGLE_translated_shader_source")) { 213 if (ext.Have("GL_ANGLE_translated_shader_source")) {
213 feature_flags_.angle_translated_shader_source = true; 214 feature_flags_.angle_translated_shader_source = true;
214 } 215 }
215 216
216 // Only turn this feature on if it is requested. Not by default. 217 // Only turn this feature on if it is requested. Not by default.
217 if (desired_features && ext.Desire("GL_CHROMIUM_webglsl")) { 218 if (desired_features && ext.Desire("GL_CHROMIUM_webglsl")) {
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 if (extensions_.find(str) == std::string::npos) { 593 if (extensions_.find(str) == std::string::npos) {
593 extensions_ += (extensions_.empty() ? "" : " ") + str; 594 extensions_ += (extensions_.empty() ? "" : " ") + str;
594 } 595 }
595 } 596 }
596 597
597 FeatureInfo::~FeatureInfo() { 598 FeatureInfo::~FeatureInfo() {
598 } 599 }
599 600
600 } // namespace gles2 601 } // namespace gles2
601 } // namespace gpu 602 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698