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

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

Issue 4268004: Properly advertise GL_CHROMIUM_copy_texture_to_parent_texture extension.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
« no previous file with comments | « chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "app/gfx/gl/gl_implementation.h" 7 #include "app/gfx/gl/gl_implementation.h"
8 #include "gpu/command_buffer/service/feature_info.h" 8 #include "gpu/command_buffer/service/feature_info.h"
9 #include "gpu/command_buffer/service/gl_utils.h" 9 #include "gpu/command_buffer/service/gl_utils.h"
10 #include "gpu/GLES2/gles2_command_buffer.h" 10 #include "gpu/GLES2/gles2_command_buffer.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 ExtensionHelper ext( 88 ExtensionHelper ext(
89 reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS)), 89 reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS)),
90 desired_features); 90 desired_features);
91 91
92 bool npot_ok = false; 92 bool npot_ok = false;
93 93
94 if (ext.Desire("GL_CHROMIUM_map_sub")) { 94 if (ext.Desire("GL_CHROMIUM_map_sub")) {
95 AddExtensionString("GL_CHROMIUM_map_sub"); 95 AddExtensionString("GL_CHROMIUM_map_sub");
96 } 96 }
97 97
98 if (ext.Desire("GL_CHROMIUM_copy_texture_to_parent_texture")) {
99 AddExtensionString("GL_CHROMIUM_copy_texture_to_parent_texture");
100 }
101
98 // Only turn this feature on if it is requested. Not by default. 102 // Only turn this feature on if it is requested. Not by default.
99 if (desired_features && ext.Desire("GL_CHROMIUM_strict_attribs")) { 103 if (desired_features && ext.Desire("GL_CHROMIUM_strict_attribs")) {
100 AddExtensionString("GL_CHROMIUM_strict_attribs"); 104 AddExtensionString("GL_CHROMIUM_strict_attribs");
101 feature_flags_.chromium_strict_attribs = true; 105 feature_flags_.chromium_strict_attribs = true;
102 } 106 }
103 107
104 // Only turn this feature on if it is requested. Not by default. 108 // Only turn this feature on if it is requested. Not by default.
105 if (desired_features && ext.Desire("GL_CHROMIUM_webglsl")) { 109 if (desired_features && ext.Desire("GL_CHROMIUM_webglsl")) {
106 AddExtensionString("GL_CHROMIUM_webglsl"); 110 AddExtensionString("GL_CHROMIUM_webglsl");
107 feature_flags_.chromium_webglsl = true; 111 feature_flags_.chromium_webglsl = true;
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 if (extensions_.find(str) == std::string::npos) { 298 if (extensions_.find(str) == std::string::npos) {
295 extensions_ += (extensions_.empty() ? "" : " ") + str; 299 extensions_ += (extensions_.empty() ? "" : " ") + str;
296 } 300 }
297 } 301 }
298 302
299 } // namespace gles2 303 } // namespace gles2
300 } // namespace gpu 304 } // namespace gpu
301 305
302 306
303 307
OLDNEW
« no previous file with comments | « chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698