| 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 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1351 feature_flags_.chromium_bind_generates_resource = | 1351 feature_flags_.chromium_bind_generates_resource = |
| 1352 extensions.Contains("GL_CHROMIUM_bind_generates_resource"); | 1352 extensions.Contains("GL_CHROMIUM_bind_generates_resource"); |
| 1353 feature_flags_.angle_webgl_compatibility = | 1353 feature_flags_.angle_webgl_compatibility = |
| 1354 extensions.Contains("GL_ANGLE_webgl_compatibility"); | 1354 extensions.Contains("GL_ANGLE_webgl_compatibility"); |
| 1355 feature_flags_.chromium_copy_texture = | 1355 feature_flags_.chromium_copy_texture = |
| 1356 extensions.Contains("GL_CHROMIUM_copy_texture"); | 1356 extensions.Contains("GL_CHROMIUM_copy_texture"); |
| 1357 feature_flags_.chromium_copy_compressed_texture = | 1357 feature_flags_.chromium_copy_compressed_texture = |
| 1358 extensions.Contains("GL_CHROMIUM_copy_compressed_texture"); | 1358 extensions.Contains("GL_CHROMIUM_copy_compressed_texture"); |
| 1359 feature_flags_.angle_client_arrays = | 1359 feature_flags_.angle_client_arrays = |
| 1360 extensions.Contains("GL_ANGLE_client_arrays"); | 1360 extensions.Contains("GL_ANGLE_client_arrays"); |
| 1361 feature_flags_.angle_request_extension = |
| 1362 extensions.Contains("GL_ANGLE_request_extension"); |
| 1361 } | 1363 } |
| 1362 | 1364 |
| 1363 void FeatureInfo::InitializeFloatAndHalfFloatFeatures( | 1365 void FeatureInfo::InitializeFloatAndHalfFloatFeatures( |
| 1364 const StringSet& extensions) { | 1366 const StringSet& extensions) { |
| 1365 // Check if we should allow GL_OES_texture_float, GL_OES_texture_half_float, | 1367 // Check if we should allow GL_OES_texture_float, GL_OES_texture_half_float, |
| 1366 // GL_OES_texture_float_linear, GL_OES_texture_half_float_linear | 1368 // GL_OES_texture_float_linear, GL_OES_texture_half_float_linear |
| 1367 bool enable_texture_float = false; | 1369 bool enable_texture_float = false; |
| 1368 bool enable_texture_float_linear = false; | 1370 bool enable_texture_float_linear = false; |
| 1369 bool enable_texture_half_float = false; | 1371 bool enable_texture_half_float = false; |
| 1370 bool enable_texture_half_float_linear = false; | 1372 bool enable_texture_half_float_linear = false; |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1680 if (pos == std::string::npos) { | 1682 if (pos == std::string::npos) { |
| 1681 extensions_ += (extensions_.empty() ? "" : " ") + str; | 1683 extensions_ += (extensions_.empty() ? "" : " ") + str; |
| 1682 } | 1684 } |
| 1683 } | 1685 } |
| 1684 | 1686 |
| 1685 FeatureInfo::~FeatureInfo() { | 1687 FeatureInfo::~FeatureInfo() { |
| 1686 } | 1688 } |
| 1687 | 1689 |
| 1688 } // namespace gles2 | 1690 } // namespace gles2 |
| 1689 } // namespace gpu | 1691 } // namespace gpu |
| OLD | NEW |