summaryrefslogtreecommitdiff
path: root/gdk/mir
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2015-06-12 12:43:47 -0400
committerWilliam Hua <william.hua@canonical.com>2015-06-23 13:17:27 -0400
commit9800d83a721fd21b34df6dd36684d3e0e2a9fd7b (patch)
tree3bef137259fa3fb6db3f54bf4e4f2312d9c2f3dc /gdk/mir
parentec9a39977a4341feabed2ad6477789217ee39438 (diff)
downloadgtk+-9800d83a721fd21b34df6dd36684d3e0e2a9fd7b.tar.gz
mir: fix build due to missing api
Diffstat (limited to 'gdk/mir')
-rw-r--r--gdk/mir/gdkmirwindowimpl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdk/mir/gdkmirwindowimpl.c b/gdk/mir/gdkmirwindowimpl.c
index d150d3ef05..4623479e31 100644
--- a/gdk/mir/gdkmirwindowimpl.c
+++ b/gdk/mir/gdkmirwindowimpl.c
@@ -339,7 +339,7 @@ send_buffer (GdkWindow *window)
GdkMirWindowImpl *impl = GDK_MIR_WINDOW_IMPL (window->impl);
/* Send the completed buffer to Mir */
- mir_surface_swap_buffers_sync (impl->surface);
+ mir_buffer_stream_swap_buffers_sync (mir_surface_get_buffer_stream (impl->surface));
/* The Cairo context is no longer valid */
g_clear_pointer (&impl->cairo_surface, cairo_surface_destroy);
@@ -370,7 +370,7 @@ gdk_mir_window_impl_ref_cairo_surface (GdkWindow *window)
{
ensure_surface (window);
- mir_surface_get_graphics_region (impl->surface, &region);
+ mir_buffer_stream_get_graphics_region (mir_surface_get_buffer_stream (impl->surface), &region);
g_assert (region.pixel_format == mir_pixel_format_argb_8888);
cairo_surface = cairo_image_surface_create_for_data ((unsigned char *) region.vaddr,
@@ -1363,7 +1363,7 @@ _gdk_mir_window_get_egl_surface (GdkWindow *window,
ensure_surface_full (window, mir_buffer_usage_hardware);
egl_display = _gdk_mir_display_get_egl_display (gdk_window_get_display (window));
- egl_window = (EGLNativeWindowType) mir_surface_get_egl_native_window (impl->surface);
+ egl_window = (EGLNativeWindowType) mir_buffer_stream_get_egl_native_window (mir_surface_get_buffer_stream (impl->surface));
impl->egl_surface =
eglCreateWindowSurface (egl_display, config, egl_window, NULL);
@@ -1392,7 +1392,7 @@ _gdk_mir_window_get_dummy_egl_surface (GdkWindow *window,
mir_buffer_usage_hardware);
egl_display = _gdk_mir_display_get_egl_display (display);
- egl_window = (EGLNativeWindowType) mir_surface_get_egl_native_window (impl->surface);
+ egl_window = (EGLNativeWindowType) mir_buffer_stream_get_egl_native_window (mir_surface_get_buffer_stream (impl->surface));
impl->dummy_egl_surface =
eglCreateWindowSurface (egl_display, config, egl_window, NULL);