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

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: 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 34750b01a42a7ee15bc5d4928cc1a18e29b7dbde..40ee28fbd7a1229cc06d23dbf1351b2241b48d82 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -1401,6 +1401,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 {
« 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