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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/feature_info.cc
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index 55ea77d55213a26f4558966d9120953cc6d8587c..4f83b5191ada0bcfe58298b9fde73419a2b75c65 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -1410,6 +1410,10 @@ void FeatureInfo::InitializeFeatures() {
feature_flags_.angle_robust_client_memory =
extensions.Contains("GL_ANGLE_robust_client_memory");
+
+ feature_flags_.khr_debug = gl_version_info_->IsAtLeastGL(4, 3) ||
+ gl_version_info_->IsAtLeastGLES(3, 2) ||
+ extensions.Contains("GL_KHR_debug");
}
bool FeatureInfo::IsES3Capable() const {

Powered by Google App Engine
This is Rietveld 408576698