#include "config.h"
#include "gdkglcontext-wayland.h"
+
#include "gdkdisplay-wayland.h"
+#include "gdksurface-wayland.h"
#include "gdkwaylanddisplay.h"
#include "gdkwaylandglcontext.h"
if (shared == NULL)
shared = context;
- egl_surface = gdk_wayland_surface_get_egl_surface (surface,
- display_wayland->egl_config);
+ egl_surface = gdk_wayland_surface_get_egl_surface (surface);
gdk_gl_context_make_current (shared);
eglQuerySurface (display_wayland->egl_display, egl_surface,
EGL_BUFFER_AGE_EXT, &buffer_age);
gdk_gl_context_make_current (context);
- egl_surface = gdk_wayland_surface_get_egl_surface (surface,
- display_wayland->egl_config);
-
+ egl_surface = gdk_wayland_surface_get_egl_surface (surface);
gdk_wayland_surface_sync (surface);
gdk_wayland_surface_request_frame (surface);
surface = gdk_gl_context_get_surface (context);
if (context_wayland->is_attached || gdk_draw_context_is_in_frame (GDK_DRAW_CONTEXT (context)))
- egl_surface = gdk_wayland_surface_get_egl_surface (surface, display_wayland->egl_config);
+ egl_surface = gdk_wayland_surface_get_egl_surface (surface);
else
{
if (display_wayland->have_egl_surfaceless_context)
struct wl_buffer *_gdk_wayland_shm_surface_get_wl_buffer (cairo_surface_t *surface);
gboolean _gdk_wayland_is_shm_surface (cairo_surface_t *surface);
-EGLSurface gdk_wayland_surface_get_egl_surface (GdkSurface *surface,
- EGLConfig config);
EGLSurface gdk_wayland_surface_get_dummy_egl_surface (GdkSurface *surface,
EGLConfig config);
}
EGLSurface
-gdk_wayland_surface_get_egl_surface (GdkSurface *surface,
- EGLConfig config)
+gdk_wayland_surface_get_egl_surface (GdkSurface *surface)
{
GdkWaylandDisplay *display = GDK_WAYLAND_DISPLAY (gdk_surface_get_display (surface));
GdkWaylandSurface *impl;
egl_window = gdk_wayland_surface_get_wl_egl_window (surface);
impl->egl_surface =
- eglCreateWindowSurface (display->egl_display, config, egl_window, NULL);
+ eglCreateWindowSurface (display->egl_display, display->egl_config, egl_window, NULL);
}
return impl->egl_surface;
#include "gdkwaylandsurface.h"
+#include <wayland-egl.h>
+#include <epoxy/egl.h>
+
G_BEGIN_DECLS
void gdk_wayland_toplevel_set_dbus_properties (GdkToplevel *toplevel,
gboolean gdk_wayland_toplevel_inhibit_idle (GdkToplevel *toplevel);
void gdk_wayland_toplevel_uninhibit_idle (GdkToplevel *toplevel);
+EGLSurface gdk_wayland_surface_get_egl_surface (GdkSurface *surface);
+
G_END_DECLS