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

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

Issue 10106015: Allow textures to be moved from one GL context group to another. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "gpu/command_buffer/service/gl_utils.h" 10 #include "gpu/command_buffer/service/gl_utils.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 AddExtensionString("GL_CHROMIUM_resource_safe"); 114 AddExtensionString("GL_CHROMIUM_resource_safe");
115 AddExtensionString("GL_CHROMIUM_resize"); 115 AddExtensionString("GL_CHROMIUM_resize");
116 AddExtensionString("GL_CHROMIUM_strict_attribs"); 116 AddExtensionString("GL_CHROMIUM_strict_attribs");
117 AddExtensionString("GL_CHROMIUM_swapbuffers_complete_callback"); 117 AddExtensionString("GL_CHROMIUM_swapbuffers_complete_callback");
118 AddExtensionString("GL_CHROMIUM_rate_limit_offscreen_context"); 118 AddExtensionString("GL_CHROMIUM_rate_limit_offscreen_context");
119 AddExtensionString("GL_CHROMIUM_set_visibility"); 119 AddExtensionString("GL_CHROMIUM_set_visibility");
120 AddExtensionString("GL_CHROMIUM_gpu_memory_manager"); 120 AddExtensionString("GL_CHROMIUM_gpu_memory_manager");
121 AddExtensionString("GL_CHROMIUM_discard_framebuffer"); 121 AddExtensionString("GL_CHROMIUM_discard_framebuffer");
122 AddExtensionString("GL_CHROMIUM_command_buffer_query"); 122 AddExtensionString("GL_CHROMIUM_command_buffer_query");
123 AddExtensionString("GL_CHROMIUM_copy_texture"); 123 AddExtensionString("GL_CHROMIUM_copy_texture");
124 AddExtensionString("GL_CHROMIUM_texture_mailbox");
124 AddExtensionString("GL_ANGLE_translated_shader_source"); 125 AddExtensionString("GL_ANGLE_translated_shader_source");
125 126
126 if (ext.Have("GL_ANGLE_translated_shader_source")) { 127 if (ext.Have("GL_ANGLE_translated_shader_source")) {
127 feature_flags_.angle_translated_shader_source = true; 128 feature_flags_.angle_translated_shader_source = true;
128 } 129 }
129 130
130 // Only turn this feature on if it is requested. Not by default. 131 // Only turn this feature on if it is requested. Not by default.
131 if (desired_features && ext.Desire("GL_CHROMIUM_webglsl")) { 132 if (desired_features && ext.Desire("GL_CHROMIUM_webglsl")) {
132 AddExtensionString("GL_CHROMIUM_webglsl"); 133 AddExtensionString("GL_CHROMIUM_webglsl");
133 feature_flags_.chromium_webglsl = true; 134 feature_flags_.chromium_webglsl = true;
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 } 466 }
466 467
467 void FeatureInfo::AddExtensionString(const std::string& str) { 468 void FeatureInfo::AddExtensionString(const std::string& str) {
468 if (extensions_.find(str) == std::string::npos) { 469 if (extensions_.find(str) == std::string::npos) {
469 extensions_ += (extensions_.empty() ? "" : " ") + str; 470 extensions_ += (extensions_.empty() ? "" : " ") + str;
470 } 471 }
471 } 472 }
472 473
473 } // namespace gles2 474 } // namespace gles2
474 } // namespace gpu 475 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/context_group_unittest.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698