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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 feature_flags_.is_intel |= lstr.find("intel") != std::string::npos; | 168 feature_flags_.is_intel |= lstr.find("intel") != std::string::npos; |
169 feature_flags_.is_nvidia |= lstr.find("nvidia") != std::string::npos; | 169 feature_flags_.is_nvidia |= lstr.find("nvidia") != std::string::npos; |
170 feature_flags_.is_amd |= | 170 feature_flags_.is_amd |= |
171 lstr.find("amd") != std::string::npos || | 171 lstr.find("amd") != std::string::npos || |
172 lstr.find("ati") != std::string::npos; | 172 lstr.find("ati") != std::string::npos; |
173 } | 173 } |
174 } | 174 } |
175 | 175 |
176 bool npot_ok = false; | 176 bool npot_ok = false; |
177 | 177 |
| 178 AddExtensionString("GL_CHROMIUM_bind_uniform_location"); |
178 AddExtensionString("GL_CHROMIUM_resource_safe"); | 179 AddExtensionString("GL_CHROMIUM_resource_safe"); |
179 AddExtensionString("GL_CHROMIUM_resize"); | 180 AddExtensionString("GL_CHROMIUM_resize"); |
180 AddExtensionString("GL_CHROMIUM_strict_attribs"); | 181 AddExtensionString("GL_CHROMIUM_strict_attribs"); |
181 AddExtensionString("GL_CHROMIUM_rate_limit_offscreen_context"); | 182 AddExtensionString("GL_CHROMIUM_rate_limit_offscreen_context"); |
182 AddExtensionString("GL_CHROMIUM_set_visibility"); | 183 AddExtensionString("GL_CHROMIUM_set_visibility"); |
183 AddExtensionString("GL_CHROMIUM_discard_framebuffer"); | 184 AddExtensionString("GL_CHROMIUM_discard_framebuffer"); |
184 AddExtensionString("GL_CHROMIUM_command_buffer_query"); | 185 AddExtensionString("GL_CHROMIUM_command_buffer_query"); |
185 AddExtensionString("GL_CHROMIUM_copy_texture"); | 186 AddExtensionString("GL_CHROMIUM_copy_texture"); |
186 AddExtensionString("GL_CHROMIUM_texture_mailbox"); | 187 AddExtensionString("GL_CHROMIUM_texture_mailbox"); |
187 AddExtensionString("GL_ANGLE_translated_shader_source"); | 188 AddExtensionString("GL_ANGLE_translated_shader_source"); |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 if (extensions_.find(str) == std::string::npos) { | 579 if (extensions_.find(str) == std::string::npos) { |
579 extensions_ += (extensions_.empty() ? "" : " ") + str; | 580 extensions_ += (extensions_.empty() ? "" : " ") + str; |
580 } | 581 } |
581 } | 582 } |
582 | 583 |
583 FeatureInfo::~FeatureInfo() { | 584 FeatureInfo::~FeatureInfo() { |
584 } | 585 } |
585 | 586 |
586 } // namespace gles2 | 587 } // namespace gles2 |
587 } // namespace gpu | 588 } // namespace gpu |
OLD | NEW |