| 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 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1401 extensions.Contains("GL_KHR_debug"); | 1401 extensions.Contains("GL_KHR_debug"); |
| 1402 | 1402 |
| 1403 feature_flags_.chromium_bind_generates_resource = | 1403 feature_flags_.chromium_bind_generates_resource = |
| 1404 extensions.Contains("GL_CHROMIUM_bind_generates_resource"); | 1404 extensions.Contains("GL_CHROMIUM_bind_generates_resource"); |
| 1405 feature_flags_.angle_webgl_compatibility = | 1405 feature_flags_.angle_webgl_compatibility = |
| 1406 extensions.Contains("GL_ANGLE_webgl_compatibility"); | 1406 extensions.Contains("GL_ANGLE_webgl_compatibility"); |
| 1407 feature_flags_.chromium_copy_texture = | 1407 feature_flags_.chromium_copy_texture = |
| 1408 extensions.Contains("GL_CHROMIUM_copy_texture"); | 1408 extensions.Contains("GL_CHROMIUM_copy_texture"); |
| 1409 feature_flags_.chromium_copy_compressed_texture = | 1409 feature_flags_.chromium_copy_compressed_texture = |
| 1410 extensions.Contains("GL_CHROMIUM_copy_compressed_texture"); | 1410 extensions.Contains("GL_CHROMIUM_copy_compressed_texture"); |
| 1411 feature_flags_.angle_client_arrays = |
| 1412 extensions.Contains("GL_ANGLE_client_arrays"); |
| 1411 } | 1413 } |
| 1412 | 1414 |
| 1413 bool FeatureInfo::IsES3Capable() const { | 1415 bool FeatureInfo::IsES3Capable() const { |
| 1414 if (workarounds_.disable_texture_storage) | 1416 if (workarounds_.disable_texture_storage) |
| 1415 return false; | 1417 return false; |
| 1416 if (gl_version_info_) | 1418 if (gl_version_info_) |
| 1417 return gl_version_info_->is_es3_capable; | 1419 return gl_version_info_->is_es3_capable; |
| 1418 return false; | 1420 return false; |
| 1419 } | 1421 } |
| 1420 | 1422 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1544 if (pos == std::string::npos) { | 1546 if (pos == std::string::npos) { |
| 1545 extensions_ += (extensions_.empty() ? "" : " ") + str; | 1547 extensions_ += (extensions_.empty() ? "" : " ") + str; |
| 1546 } | 1548 } |
| 1547 } | 1549 } |
| 1548 | 1550 |
| 1549 FeatureInfo::~FeatureInfo() { | 1551 FeatureInfo::~FeatureInfo() { |
| 1550 } | 1552 } |
| 1551 | 1553 |
| 1552 } // namespace gles2 | 1554 } // namespace gles2 |
| 1553 } // namespace gpu | 1555 } // namespace gpu |
| OLD | NEW |