Subversion Repositories Kolibri OS

Rev

Rev 4358 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4358 Rev 4401
Line 37... Line 37...
37
 
37
 
38
#ifdef HAVE_LIBUDEV
38
#ifdef HAVE_LIBUDEV
39
#include 
39
#include 
Line -... Line 40...
-
 
40
#endif
-
 
41
 
-
 
42
#ifdef HAVE_WAYLAND_BACKEND
-
 
43
#include "common/native_wayland_drm_bufmgr_helper.h"
40
#endif
44
#endif
41
 
45
 
42
static boolean
46
static boolean
43
drm_display_is_format_supported(struct native_display *ndpy,
47
drm_display_is_format_supported(struct native_display *ndpy,
44
                                enum pipe_format fmt, boolean is_color)
48
                                enum pipe_format fmt, boolean is_color)
Line 205... Line 209...
205
drm_display_bind_wayland_display(struct native_display *ndpy,
209
drm_display_bind_wayland_display(struct native_display *ndpy,
206
                                  struct wl_display *wl_dpy)
210
                                  struct wl_display *wl_dpy)
207
{
211
{
208
   struct drm_display *drmdpy = drm_display(ndpy);
212
   struct drm_display *drmdpy = drm_display(ndpy);
Line 209... Line 213...
209
 
213
 
210
   if (drmdpy->wl_server_drm)
214
   if (ndpy->wl_server_drm)
Line 211... Line 215...
211
      return FALSE;
215
      return FALSE;
212
 
216
 
213
   drmdpy->wl_server_drm = wayland_drm_init(wl_dpy,
217
   ndpy->wl_server_drm = wayland_drm_init(wl_dpy,
Line 214... Line 218...
214
         drmdpy->device_name,
218
         drmdpy->device_name,
215
         &wl_drm_callbacks, ndpy, 0);
219
         &wl_drm_callbacks, ndpy, 0);
Line 216... Line 220...
216
 
220
 
217
   if (!drmdpy->wl_server_drm)
221
   if (!ndpy->wl_server_drm)
Line 218... Line 222...
218
      return FALSE;
222
      return FALSE;
219
   
223
   
220
   return TRUE;
224
   return TRUE;
221
}
225
}
222
 
-
 
223
static boolean
-
 
224
drm_display_unbind_wayland_display(struct native_display *ndpy,
226
 
225
                                    struct wl_display *wl_dpy)
227
static boolean
Line 226... Line 228...
226
{
228
drm_display_unbind_wayland_display(struct native_display *ndpy,
227
   struct drm_display *drmdpy = drm_display(ndpy);
229
                                    struct wl_display *wl_dpy)
Line 228... Line 230...
228
 
230
{
229
   if (!drmdpy->wl_server_drm)
231
   if (!ndpy->wl_server_drm)
Line 230... Line 232...
230
      return FALSE;
232
      return FALSE;