From: Chris Michael Date: Mon, 4 Aug 2014 20:01:45 +0000 (-0400) Subject: evas-wayland-egl: Rename Evas_GL_Wl_Window to Outbuf X-Git-Tag: v1.11.0-beta2~45^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7cf7ca213b871a88ecb40bc0a2df300ac768ba7a;p=platform%2Fupstream%2Fefl.git evas-wayland-egl: Rename Evas_GL_Wl_Window to Outbuf Signed-off-by: Chris Michael --- diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c b/src/modules/evas/engines/wayland_egl/evas_engine.c index bce7453..caa2452 100644 --- a/src/modules/evas/engines/wayland_egl/evas_engine.c +++ b/src/modules/evas/engines/wayland_egl/evas_engine.c @@ -32,7 +32,7 @@ struct _Render_Engine Tilebuf_Rect *rects_prev[3]; Eina_Inlist *cur_rect; - Evas_GL_Wl_Window *win; + Outbuf *win; Evas_Engine_Info_Wayland_Egl *info; Evas *evas; diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.h b/src/modules/evas/engines/wayland_egl/evas_engine.h index 7465844..7d02fbf 100644 --- a/src/modules/evas/engines/wayland_egl/evas_engine.h +++ b/src/modules/evas/engines/wayland_egl/evas_engine.h @@ -47,9 +47,9 @@ extern int _evas_engine_wl_egl_log_dom; # endif # define CRI(...) EINA_LOG_DOM_CRIT(_evas_engine_wl_egl_log_dom, __VA_ARGS__) -typedef struct _Evas_GL_Wl_Window Evas_GL_Wl_Window; +typedef struct _Outbuf Outbuf; -struct _Evas_GL_Wl_Window +struct _Outbuf { struct wl_display *disp; struct wl_egl_window *win; @@ -74,11 +74,11 @@ struct _Evas_GL_Wl_Window Eina_Bool surf : 1; }; -Evas_GL_Wl_Window *eng_window_new(struct wl_display *disp, struct wl_surface *surface, int screen, int depth, int w, int h, int indirect, int alpha, int rot); -void eng_window_free(Evas_GL_Wl_Window *gw); -void eng_window_use(Evas_GL_Wl_Window *gw); -void eng_window_unsurf(Evas_GL_Wl_Window *gw); -void eng_window_resurf(Evas_GL_Wl_Window *gw); +Outbuf *eng_window_new(struct wl_display *disp, struct wl_surface *surface, int screen, int depth, int w, int h, int indirect, int alpha, int rot); +void eng_window_free(Outbuf *gw); +void eng_window_use(Outbuf *gw); +void eng_window_unsurf(Outbuf *gw); +void eng_window_resurf(Outbuf *gw); Eina_Bool eng_window_make_current(void *data, void *doit); #endif diff --git a/src/modules/evas/engines/wayland_egl/evas_wl_main.c b/src/modules/evas/engines/wayland_egl/evas_wl_main.c index 4c49570..88d56b4 100644 --- a/src/modules/evas/engines/wayland_egl/evas_wl_main.c +++ b/src/modules/evas/engines/wayland_egl/evas_wl_main.c @@ -3,14 +3,14 @@ /* local function prototypes */ /* local variables */ -static Evas_GL_Wl_Window *_evas_gl_wl_window = NULL; +static Outbuf *_evas_gl_wl_window = NULL; static EGLContext context = EGL_NO_CONTEXT; static int win_count = 0; -Evas_GL_Wl_Window * +Outbuf * eng_window_new(struct wl_display *display, struct wl_surface *surface, int screen, int depth, int w, int h, int indirect EINA_UNUSED, int alpha, int rot) { - Evas_GL_Wl_Window *gw; + Outbuf *gw; int context_attrs[3]; int config_attrs[40]; int major_version, minor_version; @@ -19,7 +19,7 @@ eng_window_new(struct wl_display *display, struct wl_surface *surface, int scree Eina_Bool blacklist = EINA_FALSE; /* try to allocate space for our window */ - if (!(gw = calloc(1, sizeof(Evas_GL_Wl_Window)))) + if (!(gw = calloc(1, sizeof(Outbuf)))) return NULL; win_count++; @@ -182,7 +182,7 @@ eng_window_new(struct wl_display *display, struct wl_surface *surface, int scree } void -eng_window_free(Evas_GL_Wl_Window *gw) +eng_window_free(Outbuf *gw) { int ref = 0; @@ -220,7 +220,7 @@ eng_window_free(Evas_GL_Wl_Window *gw) } void -eng_window_use(Evas_GL_Wl_Window *gw) +eng_window_use(Outbuf *gw) { Eina_Bool force = EINA_FALSE; @@ -258,7 +258,7 @@ eng_window_use(Evas_GL_Wl_Window *gw) } void -eng_window_unsurf(Evas_GL_Wl_Window *gw) +eng_window_unsurf(Outbuf *gw) { if (!gw->surf) return; if (!getenv("EVAS_GL_WIN_RESURF")) return; @@ -281,7 +281,7 @@ eng_window_unsurf(Evas_GL_Wl_Window *gw) } void -eng_window_resurf(Evas_GL_Wl_Window *gw) +eng_window_resurf(Outbuf *gw) { if (gw->surf) return; if (getenv("EVAS_GL_INFO")) printf("resurf %p\n", gw); @@ -307,7 +307,7 @@ eng_window_resurf(Evas_GL_Wl_Window *gw) Eina_Bool eng_window_make_current(void *data, void *doit) { - Evas_GL_Wl_Window *gw; + Outbuf *gw; if (!(gw = data)) return EINA_FALSE;