| 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 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 extensions.Contains("GL_KHR_debug"); | 1407 extensions.Contains("GL_KHR_debug"); |
| 1408 | 1408 |
| 1409 feature_flags_.chromium_bind_generates_resource = | 1409 feature_flags_.chromium_bind_generates_resource = |
| 1410 extensions.Contains("GL_CHROMIUM_bind_generates_resource"); | 1410 extensions.Contains("GL_CHROMIUM_bind_generates_resource"); |
| 1411 feature_flags_.angle_webgl_compatibility = | 1411 feature_flags_.angle_webgl_compatibility = |
| 1412 extensions.Contains("GL_ANGLE_webgl_compatibility"); | 1412 extensions.Contains("GL_ANGLE_webgl_compatibility"); |
| 1413 feature_flags_.chromium_copy_texture = | 1413 feature_flags_.chromium_copy_texture = |
| 1414 extensions.Contains("GL_CHROMIUM_copy_texture"); | 1414 extensions.Contains("GL_CHROMIUM_copy_texture"); |
| 1415 feature_flags_.chromium_copy_compressed_texture = | 1415 feature_flags_.chromium_copy_compressed_texture = |
| 1416 extensions.Contains("GL_CHROMIUM_copy_compressed_texture"); | 1416 extensions.Contains("GL_CHROMIUM_copy_compressed_texture"); |
| 1417 feature_flags_.angle_client_arrays = |
| 1418 extensions.Contains("GL_ANGLE_client_arrays"); |
| 1417 } | 1419 } |
| 1418 | 1420 |
| 1419 bool FeatureInfo::IsES3Capable() const { | 1421 bool FeatureInfo::IsES3Capable() const { |
| 1420 if (workarounds_.disable_texture_storage) | 1422 if (workarounds_.disable_texture_storage) |
| 1421 return false; | 1423 return false; |
| 1422 if (gl_version_info_) | 1424 if (gl_version_info_) |
| 1423 return gl_version_info_->is_es3_capable; | 1425 return gl_version_info_->is_es3_capable; |
| 1424 return false; | 1426 return false; |
| 1425 } | 1427 } |
| 1426 | 1428 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1528 if (pos == std::string::npos) { | 1530 if (pos == std::string::npos) { |
| 1529 extensions_ += (extensions_.empty() ? "" : " ") + str; | 1531 extensions_ += (extensions_.empty() ? "" : " ") + str; |
| 1530 } | 1532 } |
| 1531 } | 1533 } |
| 1532 | 1534 |
| 1533 FeatureInfo::~FeatureInfo() { | 1535 FeatureInfo::~FeatureInfo() { |
| 1534 } | 1536 } |
| 1535 | 1537 |
| 1536 } // namespace gles2 | 1538 } // namespace gles2 |
| 1537 } // namespace gpu | 1539 } // namespace gpu |
| OLD | NEW |