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

Unified Diff: ui/gl/gl_bindings.cc

Issue 1723303002: Implement GLX for Ozone X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase/refactor. Created 4 years, 9 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
Index: ui/gl/gl_bindings.cc
diff --git a/ui/gl/gl_bindings.cc b/ui/gl/gl_bindings.cc
index bb700c34740506e227b57f47c36fd55a588b98be..a53864250d09ba31bc5c14345bd67bcc5ec91976 100644
--- a/ui/gl/gl_bindings.cc
+++ b/ui/gl/gl_bindings.cc
@@ -4,13 +4,13 @@
#include "build/build_config.h"
-#if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || defined(USE_OZONE)
+#if defined(USE_EGL)
#include <EGL/egl.h>
#endif
#include "ui/gl/gl_bindings.h"
-#if defined(USE_X11)
+#if defined(USE_GLX)
#include "ui/gfx/x/x11_types.h"
#endif
@@ -18,7 +18,7 @@
#include "ui/gl/gl_surface_wgl.h"
#endif
-#if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || defined(USE_OZONE)
+#if defined(USE_EGL)
#include "ui/gl/gl_surface_egl.h"
#endif
@@ -38,7 +38,7 @@ std::string DriverWGL::GetPlatformExtensions() {
}
#endif
-#if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || defined(USE_OZONE)
+#if defined(USE_EGL)
std::string DriverEGL::GetPlatformExtensions() {
EGLDisplay display = GLSurfaceEGL::InitializeDisplay();
if (display == EGL_NO_DISPLAY)
@@ -54,7 +54,7 @@ std::string DriverEGL::GetClientExtensions() {
}
#endif
-#if defined(USE_X11)
+#if defined(USE_GLX)
std::string DriverGLX::GetPlatformExtensions() {
const char* str = glXQueryExtensionsString(gfx::GetXDisplay(), 0);
return str ? std::string(str) : "";
« no previous file with comments | « ui/gl/gl_bindings.h ('k') | ui/gl/gl_context_ozone.cc » ('j') | ui/gl/gl_implementation_ozone.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698