diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2010-01-23 10:31:21 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2010-01-23 10:33:03 +0800 |
commit | 092841892228c7b71dd5d6d463f1e0a37033eae9 (patch) | |
tree | 15cdcba8586d90591197c9e4d0037b4dedaafeb9 /progs/egl/segl/segl_kms.c | |
parent | 4b770d1a11c289914bf54f4b3365f21615661c29 (diff) |
Revert "add segl"
This reverts commit fe33b7083b0081b91ee338acbe966400c6b9a7b9. It was
not supposed to be pushed yet.
Diffstat (limited to 'progs/egl/segl/segl_kms.c')
-rw-r--r-- | progs/egl/segl/segl_kms.c | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/progs/egl/segl/segl_kms.c b/progs/egl/segl/segl_kms.c deleted file mode 100644 index bb4fcfca65..0000000000 --- a/progs/egl/segl/segl_kms.c +++ /dev/null @@ -1,59 +0,0 @@ -#include <stdlib.h> -#include <sys/time.h> - -#include "segl.h" - -static EGLNativeWindowType -kms_create_window(struct segl_winsys *winsys, const char *name, - EGLint width, EGLint height, EGLint visual) -{ - return 0; -} - -static void -kms_destroy_window(struct segl_winsys *winsys, EGLNativeWindowType win) -{ -} - - -static EGLNativePixmapType -kms_create_pixmap(struct segl_winsys *winsys, EGLint width, EGLint height, - EGLint depth) -{ - return 0; -} - -static void -kms_destroy_pixmap(struct segl_winsys *winsys, EGLNativePixmapType pix) -{ -} - -static double -kms_now(struct segl_winsys *winsys) -{ - struct timeval tv; - - gettimeofday(&tv, NULL); - - return (double) tv.tv_sec + tv.tv_usec / 1000000.0; -} - -struct segl_winsys * -segl_get_winsys(EGLNativeDisplayType dpy) -{ - struct segl_winsys *winsys; - - winsys = calloc(1, sizeof(*winsys)); - if (winsys) { - winsys->dpy = dpy; - - winsys->create_window = kms_create_window; - winsys->destroy_window = kms_destroy_window; - winsys->create_pixmap = kms_create_pixmap; - winsys->destroy_pixmap = kms_destroy_pixmap; - - winsys->now = kms_now; - } - - return winsys; -} |