OLD | NEW |
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 "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 AddExtensionString("GL_CHROMIUM_resource_safe"); | 135 AddExtensionString("GL_CHROMIUM_resource_safe"); |
136 AddExtensionString("GL_CHROMIUM_resize"); | 136 AddExtensionString("GL_CHROMIUM_resize"); |
137 AddExtensionString("GL_CHROMIUM_strict_attribs"); | 137 AddExtensionString("GL_CHROMIUM_strict_attribs"); |
138 AddExtensionString("GL_CHROMIUM_rate_limit_offscreen_context"); | 138 AddExtensionString("GL_CHROMIUM_rate_limit_offscreen_context"); |
139 AddExtensionString("GL_CHROMIUM_set_visibility"); | 139 AddExtensionString("GL_CHROMIUM_set_visibility"); |
140 AddExtensionString("GL_CHROMIUM_gpu_memory_manager"); | 140 AddExtensionString("GL_CHROMIUM_gpu_memory_manager"); |
141 AddExtensionString("GL_CHROMIUM_discard_framebuffer"); | 141 AddExtensionString("GL_CHROMIUM_discard_framebuffer"); |
142 AddExtensionString("GL_CHROMIUM_command_buffer_query"); | 142 AddExtensionString("GL_CHROMIUM_command_buffer_query"); |
143 AddExtensionString("GL_CHROMIUM_copy_texture"); | 143 AddExtensionString("GL_CHROMIUM_copy_texture"); |
144 AddExtensionString("GL_CHROMIUM_texture_mailbox"); | 144 AddExtensionString("GL_CHROMIUM_texture_mailbox"); |
| 145 AddExtensionString("GL_CHROMIUM_pixel_transfer_buffer_object"); |
145 AddExtensionString("GL_ANGLE_translated_shader_source"); | 146 AddExtensionString("GL_ANGLE_translated_shader_source"); |
146 | 147 |
147 if (ext.Have("GL_ANGLE_translated_shader_source")) { | 148 if (ext.Have("GL_ANGLE_translated_shader_source")) { |
148 feature_flags_.angle_translated_shader_source = true; | 149 feature_flags_.angle_translated_shader_source = true; |
149 } | 150 } |
150 | 151 |
151 // Only turn this feature on if it is requested. Not by default. | 152 // Only turn this feature on if it is requested. Not by default. |
152 if (desired_features && ext.Desire("GL_CHROMIUM_webglsl")) { | 153 if (desired_features && ext.Desire("GL_CHROMIUM_webglsl")) { |
153 AddExtensionString("GL_CHROMIUM_webglsl"); | 154 AddExtensionString("GL_CHROMIUM_webglsl"); |
154 feature_flags_.chromium_webglsl = true; | 155 feature_flags_.chromium_webglsl = true; |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 if (extensions_.find(str) == std::string::npos) { | 506 if (extensions_.find(str) == std::string::npos) { |
506 extensions_ += (extensions_.empty() ? "" : " ") + str; | 507 extensions_ += (extensions_.empty() ? "" : " ") + str; |
507 } | 508 } |
508 } | 509 } |
509 | 510 |
510 FeatureInfo::~FeatureInfo() { | 511 FeatureInfo::~FeatureInfo() { |
511 } | 512 } |
512 | 513 |
513 } // namespace gles2 | 514 } // namespace gles2 |
514 } // namespace gpu | 515 } // namespace gpu |
OLD | NEW |