summaryrefslogtreecommitdiff
path: root/src/modules/evas
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-11-01 11:41:47 -0500
committerDerek Foreman <derekf@osg.samsung.com>2016-11-02 13:37:00 -0500
commit3f75c45122f54e35b4c09f0ed4566f79c1d55227 (patch)
tree13d1efa0eeda67fd24d1e4d6953851fd7c09c071 /src/modules/evas
parent9e43a155261622eb23124d6aac8cee80cd919a8d (diff)
wayland_egl: Rename surface to wl_surface
Making this code more closely match the wayland_shm engine
Diffstat (limited to 'src/modules/evas')
-rw-r--r--src/modules/evas/engines/wayland_egl/Evas_Engine_Wayland_Egl.h2
-rw-r--r--src/modules/evas/engines/wayland_egl/evas_engine.c6
-rw-r--r--src/modules/evas/engines/wayland_egl/evas_wl_main.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/evas/engines/wayland_egl/Evas_Engine_Wayland_Egl.h b/src/modules/evas/engines/wayland_egl/Evas_Engine_Wayland_Egl.h
index 97e81a8..5541d1f 100644
--- a/src/modules/evas/engines/wayland_egl/Evas_Engine_Wayland_Egl.h
+++ b/src/modules/evas/engines/wayland_egl/Evas_Engine_Wayland_Egl.h
@@ -13,7 +13,7 @@ struct _Evas_Engine_Info_Wayland_Egl
13 struct 13 struct
14 { 14 {
15 struct wl_display *display; 15 struct wl_display *display;
16 struct wl_surface *surface; 16 struct wl_surface *wl_surface;
17 struct wl_egl_window *win; 17 struct wl_egl_window *win;
18 int depth, rotation, edges; 18 int depth, rotation, edges;
19 unsigned int destination_alpha : 1; 19 unsigned int destination_alpha : 1;
diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c b/src/modules/evas/engines/wayland_egl/evas_engine.c
index f50b9f8..146f3b2 100644
--- a/src/modules/evas/engines/wayland_egl/evas_engine.c
+++ b/src/modules/evas/engines/wayland_egl/evas_engine.c
@@ -283,7 +283,7 @@ evgl_eng_native_window_create(void *data)
283 if (!(re = (Render_Engine *)data)) return NULL; 283 if (!(re = (Render_Engine *)data)) return NULL;
284 if (!(ob = eng_get_ob(re))) return NULL; 284 if (!(ob = eng_get_ob(re))) return NULL;
285 285
286 if (!(win = wl_egl_window_create(ob->info->info.surface, 1, 1))) 286 if (!(win = wl_egl_window_create(ob->info->info.wl_surface, 1, 1)))
287 { 287 {
288 ERR("Could not create wl_egl window"); 288 ERR("Could not create wl_egl window");
289 return NULL; 289 return NULL;
@@ -637,7 +637,7 @@ eng_setup(Evas *evas, void *info)
637 re = epd->engine.data.output; 637 re = epd->engine.data.output;
638 ob = eng_get_ob(re); 638 ob = eng_get_ob(re);
639 639
640 if (!inf->info.surface && (ob->egl_surface[0] != EGL_NO_SURFACE)) 640 if (!inf->info.wl_surface && (ob->egl_surface[0] != EGL_NO_SURFACE))
641 { 641 {
642 eglDestroySurface(ob->egl_disp, ob->egl_surface[0]); 642 eglDestroySurface(ob->egl_disp, ob->egl_surface[0]);
643 eglMakeCurrent(ob->egl_disp, EGL_NO_SURFACE, EGL_NO_SURFACE, 643 eglMakeCurrent(ob->egl_disp, EGL_NO_SURFACE, EGL_NO_SURFACE,
@@ -650,7 +650,7 @@ eng_setup(Evas *evas, void *info)
650 { 650 {
651 ob->info = inf; 651 ob->info = inf;
652 if ((ob->info->info.display != ob->disp) || 652 if ((ob->info->info.display != ob->disp) ||
653 (ob->info->info.surface != ob->surface) || 653 (ob->info->info.wl_surface != ob->surface) ||
654 /* FIXME: comment out below line. 654 /* FIXME: comment out below line.
655 * since there is no place set the info->info.win for now, 655 * since there is no place set the info->info.win for now,
656 * it causes renew the window unnecessarily. 656 * it causes renew the window unnecessarily.
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 7885845..04eeaff 100644
--- a/src/modules/evas/engines/wayland_egl/evas_wl_main.c
+++ b/src/modules/evas/engines/wayland_egl/evas_wl_main.c
@@ -33,7 +33,7 @@ eng_window_new(Evas *evas, Evas_Engine_Info_Wayland_Egl *einfo, int w, int h, Re
33 if (display && (display != gw->disp)) 33 if (display && (display != gw->disp))
34 context = EGL_NO_CONTEXT; 34 context = EGL_NO_CONTEXT;
35 display = gw->disp; 35 display = gw->disp;
36 gw->surface = einfo->info.surface; 36 gw->surface = einfo->info.wl_surface;
37 gw->depth = einfo->info.depth; 37 gw->depth = einfo->info.depth;
38 gw->alpha = einfo->info.destination_alpha; 38 gw->alpha = einfo->info.destination_alpha;
39 gw->rot = einfo->info.rotation; 39 gw->rot = einfo->info.rotation;