summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/vl/vl_winsys.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_winsys.h')
-rw-r--r--src/gallium/auxiliary/vl/vl_winsys.h37
1 files changed, 17 insertions, 20 deletions
diff --git a/src/gallium/auxiliary/vl/vl_winsys.h b/src/gallium/auxiliary/vl/vl_winsys.h
index df01917466f..1af7653d650 100644
--- a/src/gallium/auxiliary/vl/vl_winsys.h
+++ b/src/gallium/auxiliary/vl/vl_winsys.h
@@ -42,34 +42,31 @@ struct pipe_loader_device;
struct vl_screen
{
- struct pipe_screen *pscreen;
- struct pipe_loader_device *dev;
-};
+ void (*destroy)(struct vl_screen *vscreen);
-struct vl_screen*
-vl_screen_create(Display *display, int screen);
+ struct pipe_resource *
+ (*texture_from_drawable)(struct vl_screen *vscreen, void *drawable);
-void vl_screen_destroy(struct vl_screen *vscreen);
+ struct u_rect *
+ (*get_dirty_area)(struct vl_screen *vscreen);
-struct pipe_resource*
-vl_screen_texture_from_drawable(struct vl_screen *vscreen, Drawable drawable);
+ uint64_t
+ (*get_timestamp)(struct vl_screen *vscreen, void *drawable);
-struct u_rect *
-vl_screen_get_dirty_area(struct vl_screen *vscreen);
+ void
+ (*set_next_timestamp)(struct vl_screen *vscreen, uint64_t stamp);
-uint64_t
-vl_screen_get_timestamp(struct vl_screen *vscreen, Drawable drawable);
+ void *
+ (*get_private)(struct vl_screen *vscreen);
-void
-vl_screen_set_next_timestamp(struct vl_screen *vscreen, uint64_t stamp);
+ struct pipe_screen *pscreen;
+ struct pipe_loader_device *dev;
+};
-void*
-vl_screen_get_private(struct vl_screen *vscreen);
+struct vl_screen *
+vl_dri2_screen_create(Display *display, int screen);
-struct vl_screen*
+struct vl_screen *
vl_drm_screen_create(int fd);
-void
-vl_drm_screen_destroy(struct vl_screen *vscreen);
-
#endif