Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Side by Side Diff: gpu/command_buffer/service/feature_info.cc

Issue 2472703003: Load the GL_KHR_debug entry points and log messages they produce. (Closed)
Patch Set: Update window system string Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/gl_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1394 1394
1395 if (gl_version_info_->IsLowerThanGL(4, 3)) { 1395 if (gl_version_info_->IsLowerThanGL(4, 3)) {
1396 // crbug.com/481184. 1396 // crbug.com/481184.
1397 // GL_PRIMITIVE_RESTART_FIXED_INDEX is only available on Desktop GL 4.3+, 1397 // GL_PRIMITIVE_RESTART_FIXED_INDEX is only available on Desktop GL 4.3+,
1398 // but we emulate ES 3.0 on top of Desktop GL 4.2+. 1398 // but we emulate ES 3.0 on top of Desktop GL 4.2+.
1399 feature_flags_.emulate_primitive_restart_fixed_index = true; 1399 feature_flags_.emulate_primitive_restart_fixed_index = true;
1400 } 1400 }
1401 1401
1402 feature_flags_.angle_robust_client_memory = 1402 feature_flags_.angle_robust_client_memory =
1403 extensions.Contains("GL_ANGLE_robust_client_memory"); 1403 extensions.Contains("GL_ANGLE_robust_client_memory");
1404
1405 feature_flags_.khr_debug = gl_version_info_->IsAtLeastGL(4, 3) ||
1406 gl_version_info_->IsAtLeastGLES(3, 2) ||
1407 extensions.Contains("GL_KHR_debug");
1404 } 1408 }
1405 1409
1406 bool FeatureInfo::IsES3Capable() const { 1410 bool FeatureInfo::IsES3Capable() const {
1407 if (workarounds_.disable_texture_storage) 1411 if (workarounds_.disable_texture_storage)
1408 return false; 1412 return false;
1409 if (gl_version_info_) 1413 if (gl_version_info_)
1410 return gl_version_info_->is_es3_capable; 1414 return gl_version_info_->is_es3_capable;
1411 return false; 1415 return false;
1412 } 1416 }
1413 1417
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1541 if (pos == std::string::npos) { 1545 if (pos == std::string::npos) {
1542 extensions_ += (extensions_.empty() ? "" : " ") + str; 1546 extensions_ += (extensions_.empty() ? "" : " ") + str;
1543 } 1547 }
1544 } 1548 }
1545 1549
1546 FeatureInfo::~FeatureInfo() { 1550 FeatureInfo::~FeatureInfo() {
1547 } 1551 }
1548 1552
1549 } // namespace gles2 1553 } // namespace gles2
1550 } // namespace gpu 1554 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/gl_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698