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

Unified Diff: ui/gl/gl_surface_glx.cc

Issue 2139673002: GLContextGLX: try all GL versions from the highest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months 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 | « ui/gl/gl_surface_glx.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_glx.cc
diff --git a/ui/gl/gl_surface_glx.cc b/ui/gl/gl_surface_glx.cc
index 023975e2fa604f0e5d37d25a0da91d2a7bccab50..47d32319543a9c50e8129915fb4e92cad268623e 100644
--- a/ui/gl/gl_surface_glx.cc
+++ b/ui/gl/gl_surface_glx.cc
@@ -37,6 +37,8 @@ namespace {
Display* g_display = nullptr;
bool g_glx_context_create = false;
bool g_glx_create_context_robustness_supported = false;
+bool g_glx_create_context_profile_supported = false;
+bool g_glx_create_context_profile_es2_supported = false;
bool g_glx_texture_from_pixmap_supported = false;
bool g_glx_oml_sync_control_supported = false;
@@ -391,6 +393,10 @@ bool GLSurfaceGLX::InitializeOneOff() {
HasGLXExtension("GLX_ARB_create_context");
g_glx_create_context_robustness_supported =
HasGLXExtension("GLX_ARB_create_context_robustness");
+ g_glx_create_context_profile_supported =
+ HasGLXExtension("GLX_ARB_create_context_profile");
+ g_glx_create_context_profile_es2_supported =
+ HasGLXExtension("GLX_ARB_create_context_es2_profile");
g_glx_texture_from_pixmap_supported =
HasGLXExtension("GLX_EXT_texture_from_pixmap");
g_glx_oml_sync_control_supported =
@@ -427,6 +433,16 @@ bool GLSurfaceGLX::IsCreateContextRobustnessSupported() {
}
// static
+bool GLSurfaceGLX::IsCreateContextProfileSupported() {
+ return g_glx_create_context_profile_supported;
+}
+
+// static
+bool GLSurfaceGLX::IsCreateContextES2ProfileSupported() {
+ return g_glx_create_context_profile_es2_supported;
+}
+
+// static
bool GLSurfaceGLX::IsTextureFromPixmapSupported() {
return g_glx_texture_from_pixmap_supported;
}
« no previous file with comments | « ui/gl/gl_surface_glx.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698