[gtk+] mir: don't need dummy egl surface



commit 19f66c781f41ab44c2ed4b33b7bf9b4943833acd
Author: William Hua <william hua canonical com>
Date:   Fri Jun 19 11:29:08 2015 -0400

    mir: don't need dummy egl surface

 gdk/mir/gdkmirwindowimpl.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gdk/mir/gdkmirwindowimpl.c b/gdk/mir/gdkmirwindowimpl.c
index e46d26d..16ef383 100644
--- a/gdk/mir/gdkmirwindowimpl.c
+++ b/gdk/mir/gdkmirwindowimpl.c
@@ -68,7 +68,6 @@ struct _GdkMirWindowImpl
   EGLSurface egl_surface;
 
   /* Dummy MIR and EGL surfaces */
-  MirSurface *dummy_surface;
   EGLSurface dummy_egl_surface;
 
   /* TRUE if the window can be seen */
@@ -365,8 +364,6 @@ ensure_no_surface (GdkWindow *window)
           eglDestroySurface (egl_display, impl->dummy_egl_surface);
           impl->dummy_egl_surface = NULL;
         }
-
-      g_clear_pointer (&impl->dummy_surface, mir_surface_release_sync);
     }
 
   g_clear_pointer(&impl->surface, mir_surface_release_sync);
@@ -1426,10 +1423,6 @@ _gdk_mir_window_get_dummy_egl_surface (GdkWindow *window,
       EGLNativeWindowType egl_window;
 
       display = gdk_window_get_display (window);
-      impl->dummy_surface = create_mir_surface (display, NULL, 0, 0, 1, 1,
-                                                GDK_WINDOW_TYPE_HINT_NORMAL,
-                                                mir_buffer_usage_hardware);
-
       egl_display = _gdk_mir_display_get_egl_display (display);
       egl_window = (EGLNativeWindowType) mir_buffer_stream_get_egl_native_window 
(mir_surface_get_buffer_stream (impl->surface));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]