| 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 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1449 extensions.Contains("GL_ANGLE_robust_client_memory"); | 1449 extensions.Contains("GL_ANGLE_robust_client_memory"); |
| 1450 | 1450 |
| 1451 feature_flags_.khr_debug = gl_version_info_->IsAtLeastGL(4, 3) || | 1451 feature_flags_.khr_debug = gl_version_info_->IsAtLeastGL(4, 3) || |
| 1452 gl_version_info_->IsAtLeastGLES(3, 2) || | 1452 gl_version_info_->IsAtLeastGLES(3, 2) || |
| 1453 extensions.Contains("GL_KHR_debug"); | 1453 extensions.Contains("GL_KHR_debug"); |
| 1454 | 1454 |
| 1455 feature_flags_.chromium_bind_generates_resource = | 1455 feature_flags_.chromium_bind_generates_resource = |
| 1456 extensions.Contains("GL_CHROMIUM_bind_generates_resource"); | 1456 extensions.Contains("GL_CHROMIUM_bind_generates_resource"); |
| 1457 feature_flags_.angle_webgl_compatibility = | 1457 feature_flags_.angle_webgl_compatibility = |
| 1458 extensions.Contains("GL_ANGLE_webgl_compatibility"); | 1458 extensions.Contains("GL_ANGLE_webgl_compatibility"); |
| 1459 feature_flags_.angle_request_extension = |
| 1460 extensions.Contains("GL_ANGLE_request_extension"); |
| 1459 } | 1461 } |
| 1460 | 1462 |
| 1461 bool FeatureInfo::IsES3Capable() const { | 1463 bool FeatureInfo::IsES3Capable() const { |
| 1462 if (workarounds_.disable_texture_storage) | 1464 if (workarounds_.disable_texture_storage) |
| 1463 return false; | 1465 return false; |
| 1464 if (gl_version_info_) | 1466 if (gl_version_info_) |
| 1465 return gl_version_info_->is_es3_capable; | 1467 return gl_version_info_->is_es3_capable; |
| 1466 return false; | 1468 return false; |
| 1467 } | 1469 } |
| 1468 | 1470 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1592 if (pos == std::string::npos) { | 1594 if (pos == std::string::npos) { |
| 1593 extensions_ += (extensions_.empty() ? "" : " ") + str; | 1595 extensions_ += (extensions_.empty() ? "" : " ") + str; |
| 1594 } | 1596 } |
| 1595 } | 1597 } |
| 1596 | 1598 |
| 1597 FeatureInfo::~FeatureInfo() { | 1599 FeatureInfo::~FeatureInfo() { |
| 1598 } | 1600 } |
| 1599 | 1601 |
| 1600 } // namespace gles2 | 1602 } // namespace gles2 |
| 1601 } // namespace gpu | 1603 } // namespace gpu |
| OLD | NEW |