| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1388 feature_flags_.chromium_copy_compressed_texture = | 1388 feature_flags_.chromium_copy_compressed_texture = |
| 1389 extensions.Contains("GL_CHROMIUM_copy_compressed_texture"); | 1389 extensions.Contains("GL_CHROMIUM_copy_compressed_texture"); |
| 1390 feature_flags_.angle_client_arrays = | 1390 feature_flags_.angle_client_arrays = |
| 1391 extensions.Contains("GL_ANGLE_client_arrays"); | 1391 extensions.Contains("GL_ANGLE_client_arrays"); |
| 1392 feature_flags_.angle_request_extension = | 1392 feature_flags_.angle_request_extension = |
| 1393 extensions.Contains("GL_ANGLE_request_extension"); | 1393 extensions.Contains("GL_ANGLE_request_extension"); |
| 1394 feature_flags_.ext_debug_marker = extensions.Contains("GL_EXT_debug_marker"); | 1394 feature_flags_.ext_debug_marker = extensions.Contains("GL_EXT_debug_marker"); |
| 1395 feature_flags_.arb_robustness = extensions.Contains("GL_ARB_robustness"); | 1395 feature_flags_.arb_robustness = extensions.Contains("GL_ARB_robustness"); |
| 1396 feature_flags_.khr_robustness = extensions.Contains("GL_KHR_robustness"); | 1396 feature_flags_.khr_robustness = extensions.Contains("GL_KHR_robustness"); |
| 1397 feature_flags_.ext_robustness = extensions.Contains("GL_EXT_robustness"); | 1397 feature_flags_.ext_robustness = extensions.Contains("GL_EXT_robustness"); |
| 1398 |
| 1399 if (!IsWebGLContext()) { |
| 1400 AddExtensionString("GL_CHROMIUM_texture_buffer"); |
| 1401 validators_.texture_parameter.AddValue(GL_TEXTURE_BUFFER_USAGE_CHROMIUM); |
| 1402 } |
| 1398 } | 1403 } |
| 1399 | 1404 |
| 1400 void FeatureInfo::InitializeFloatAndHalfFloatFeatures( | 1405 void FeatureInfo::InitializeFloatAndHalfFloatFeatures( |
| 1401 const StringSet& extensions) { | 1406 const StringSet& extensions) { |
| 1402 // Check if we should allow GL_OES_texture_float, GL_OES_texture_half_float, | 1407 // Check if we should allow GL_OES_texture_float, GL_OES_texture_half_float, |
| 1403 // GL_OES_texture_float_linear, GL_OES_texture_half_float_linear | 1408 // GL_OES_texture_float_linear, GL_OES_texture_half_float_linear |
| 1404 bool enable_texture_float = false; | 1409 bool enable_texture_float = false; |
| 1405 bool enable_texture_float_linear = false; | 1410 bool enable_texture_float_linear = false; |
| 1406 bool enable_texture_half_float = false; | 1411 bool enable_texture_half_float = false; |
| 1407 bool enable_texture_half_float_linear = false; | 1412 bool enable_texture_half_float_linear = false; |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1740 if (pos == std::string::npos) { | 1745 if (pos == std::string::npos) { |
| 1741 extensions_ += (extensions_.empty() ? "" : " ") + str; | 1746 extensions_ += (extensions_.empty() ? "" : " ") + str; |
| 1742 } | 1747 } |
| 1743 } | 1748 } |
| 1744 | 1749 |
| 1745 FeatureInfo::~FeatureInfo() { | 1750 FeatureInfo::~FeatureInfo() { |
| 1746 } | 1751 } |
| 1747 | 1752 |
| 1748 } // namespace gles2 | 1753 } // namespace gles2 |
| 1749 } // namespace gpu | 1754 } // namespace gpu |
| OLD | NEW |