summaryrefslogtreecommitdiff
path: root/src/core/ozone/gl_surface_egl_qt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ozone/gl_surface_egl_qt.cpp')
-rw-r--r--src/core/ozone/gl_surface_egl_qt.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/core/ozone/gl_surface_egl_qt.cpp b/src/core/ozone/gl_surface_egl_qt.cpp
index de973e390..b83f8f506 100644
--- a/src/core/ozone/gl_surface_egl_qt.cpp
+++ b/src/core/ozone/gl_surface_egl_qt.cpp
@@ -15,12 +15,7 @@
#include "ui/gl/gl_surface_egl.h"
#include "ui/gl/init/gl_factory.h"
-#if !BUILDFLAG(IS_MAC)
-// From ANGLE's egl/eglext.h.
-#ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
-#define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
-#define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
-#endif
+#if !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_WIN)
using ui::GetLastEGLErrorString;
@@ -270,11 +265,6 @@ void* GLSurfacelessQtEGL::GetShareHandle()
return NULL;
}
-} // namespace gl
-#endif // !BUILDFLAG(IS_MAC)
-
-namespace gl {
-
std::string DisplayExtensionsEGL::GetPlatformExtensions(EGLDisplay)
{
EGLDisplay display = GLContextHelper::getEGLDisplay();
@@ -284,4 +274,6 @@ std::string DisplayExtensionsEGL::GetPlatformExtensions(EGLDisplay)
const char* str = eglQueryString(display, EGL_EXTENSIONS);
return str ? std::string(str) : "";
}
+
} // namespace gl
+#endif // !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_WIN)