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

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

Issue 7538008: Delete copy_texture_to_parent_texture from GPU command buffer code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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) 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 "gpu/GLES2/gles2_command_buffer.h" 9 #include "gpu/GLES2/gles2_command_buffer.h"
10 #include "ui/gfx/gl/gl_implementation.h" 10 #include "ui/gfx/gl/gl_implementation.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 95 }
96 96
97 void FeatureInfo::AddFeatures(const char* desired_features) { 97 void FeatureInfo::AddFeatures(const char* desired_features) {
98 // Figure out what extensions to turn on. 98 // Figure out what extensions to turn on.
99 ExtensionHelper ext( 99 ExtensionHelper ext(
100 reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS)), 100 reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS)),
101 desired_features); 101 desired_features);
102 102
103 bool npot_ok = false; 103 bool npot_ok = false;
104 104
105 AddExtensionString("GL_CHROMIUM_copy_texture_to_parent_texture");
jamesr 2011/07/29 23:22:49 On the WebKit side we're still checking for this s
106 AddExtensionString("GL_CHROMIUM_resource_safe"); 105 AddExtensionString("GL_CHROMIUM_resource_safe");
107 AddExtensionString("GL_CHROMIUM_resize"); 106 AddExtensionString("GL_CHROMIUM_resize");
108 AddExtensionString("GL_CHROMIUM_strict_attribs"); 107 AddExtensionString("GL_CHROMIUM_strict_attribs");
109 AddExtensionString("GL_CHROMIUM_swapbuffers_complete_callback"); 108 AddExtensionString("GL_CHROMIUM_swapbuffers_complete_callback");
110 AddExtensionString("GL_CHROMIUM_rate_limit_offscreen_context"); 109 AddExtensionString("GL_CHROMIUM_rate_limit_offscreen_context");
111 110
112 // Only turn this feature on if it is requested. Not by default. 111 // Only turn this feature on if it is requested. Not by default.
113 if (desired_features && ext.Desire("GL_CHROMIUM_webglsl")) { 112 if (desired_features && ext.Desire("GL_CHROMIUM_webglsl")) {
114 AddExtensionString("GL_CHROMIUM_webglsl"); 113 AddExtensionString("GL_CHROMIUM_webglsl");
115 feature_flags_.chromium_webglsl = true; 114 feature_flags_.chromium_webglsl = true;
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 } 350 }
352 351
353 void FeatureInfo::AddExtensionString(const std::string& str) { 352 void FeatureInfo::AddExtensionString(const std::string& str) {
354 if (extensions_.find(str) == std::string::npos) { 353 if (extensions_.find(str) == std::string::npos) {
355 extensions_ += (extensions_.empty() ? "" : " ") + str; 354 extensions_ += (extensions_.empty() ? "" : " ") + str;
356 } 355 }
357 } 356 }
358 357
359 } // namespace gles2 358 } // namespace gles2
360 } // namespace gpu 359 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_ids_autogen.h ('k') | gpu/command_buffer/service/feature_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698