| 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;
|
| }
|
|
|