| 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 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1403 | 1403 |
| 1404 if (gl_version_info_->IsLowerThanGL(4, 3)) { | 1404 if (gl_version_info_->IsLowerThanGL(4, 3)) { |
| 1405 // crbug.com/481184. | 1405 // crbug.com/481184. |
| 1406 // GL_PRIMITIVE_RESTART_FIXED_INDEX is only available on Desktop GL 4.3+, | 1406 // GL_PRIMITIVE_RESTART_FIXED_INDEX is only available on Desktop GL 4.3+, |
| 1407 // but we emulate ES 3.0 on top of Desktop GL 4.2+. | 1407 // but we emulate ES 3.0 on top of Desktop GL 4.2+. |
| 1408 feature_flags_.emulate_primitive_restart_fixed_index = true; | 1408 feature_flags_.emulate_primitive_restart_fixed_index = true; |
| 1409 } | 1409 } |
| 1410 | 1410 |
| 1411 feature_flags_.angle_robust_client_memory = | 1411 feature_flags_.angle_robust_client_memory = |
| 1412 extensions.Contains("GL_ANGLE_robust_client_memory"); | 1412 extensions.Contains("GL_ANGLE_robust_client_memory"); |
| 1413 |
| 1414 feature_flags_.khr_debug = gl_version_info_->IsAtLeastGL(4, 3) || |
| 1415 gl_version_info_->IsAtLeastGLES(3, 2) || |
| 1416 extensions.Contains("GL_KHR_debug"); |
| 1413 } | 1417 } |
| 1414 | 1418 |
| 1415 bool FeatureInfo::IsES3Capable() const { | 1419 bool FeatureInfo::IsES3Capable() const { |
| 1416 if (!enable_unsafe_es3_apis_switch_) | 1420 if (!enable_unsafe_es3_apis_switch_) |
| 1417 return false; | 1421 return false; |
| 1418 if (workarounds_.disable_texture_storage) | 1422 if (workarounds_.disable_texture_storage) |
| 1419 return false; | 1423 return false; |
| 1420 if (gl_version_info_) | 1424 if (gl_version_info_) |
| 1421 return gl_version_info_->is_es3_capable; | 1425 return gl_version_info_->is_es3_capable; |
| 1422 return false; | 1426 return false; |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1554 if (pos == std::string::npos) { | 1558 if (pos == std::string::npos) { |
| 1555 extensions_ += (extensions_.empty() ? "" : " ") + str; | 1559 extensions_ += (extensions_.empty() ? "" : " ") + str; |
| 1556 } | 1560 } |
| 1557 } | 1561 } |
| 1558 | 1562 |
| 1559 FeatureInfo::~FeatureInfo() { | 1563 FeatureInfo::~FeatureInfo() { |
| 1560 } | 1564 } |
| 1561 | 1565 |
| 1562 } // namespace gles2 | 1566 } // namespace gles2 |
| 1563 } // namespace gpu | 1567 } // namespace gpu |
| OLD | NEW |