mir: don't need dummy egl surface
authorWilliam Hua <william.hua@canonical.com>
Fri, 19 Jun 2015 15:29:08 +0000 (11:29 -0400)
committerWilliam Hua <william.hua@canonical.com>
Tue, 23 Jun 2015 17:17:28 +0000 (13:17 -0400)
gdk/mir/gdkmirwindowimpl.c

index e46d26d7ae7fbec40ac4db22a671ce97049a8603..16ef3837db1f12ab7b3e319b6e12f1b5b476f515 100644 (file)
@@ -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));