From: sunghyun kim Date: Thu, 1 Dec 2016 08:44:36 +0000 (+0900) Subject: [Extn_GL] add alpha set in extn gl backend X-Git-Tag: accepted/tizen/common/20170102.152350~119 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c9a7db1ac998fc9739e30c7ec1787be4022473d3;p=platform%2Fupstream%2Fefl.git [Extn_GL] add alpha set in extn gl backend Change-Id: Ie335d0399e74bb95dd5f51b0f46158260d5eeedd --- diff --git a/src/Makefile_Ecore_Evas.am b/src/Makefile_Ecore_Evas.am index 316475a..a27f586 100755 --- a/src/Makefile_Ecore_Evas.am +++ b/src/Makefile_Ecore_Evas.am @@ -70,6 +70,7 @@ modules_ecore_evas_engines_extn_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/e @ECORE_IPC_CFLAGS@ \ @TIZEN_REMOTE_SURFACE_CFLAGS@ \ -I$(top_srcdir)/src/modules/evas/engines/buffer \ +-I$(top_srcdir)/src/modules/evas/engines/wayland_egl \ -I$(top_srcdir)/src/modules/ecore_evas/engines/extn modules_ecore_evas_engines_extn_module_la_LIBADD = \ @USE_ECORE_EVAS_LIBS@ \ diff --git a/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c b/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c index 4a5a78e..e4a2a29 100644 --- a/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c +++ b/src/modules/ecore_evas/engines/extn/ecore_evas_extn.c @@ -2157,7 +2157,18 @@ _ecore_evas_extn_socket_alpha_set(Ecore_Evas *ee, int alpha) { if (_ecore_evas_extn_type_get() == EXTN_TYPE_WAYLAND_EGL) { - INF("[EXTN_GL] pass socket alpha set"); + Evas_Engine_Info_Wayland_Egl *einfo; + ee->alpha = alpha; + einfo = (Evas_Engine_Info_Wayland_Egl *)evas_engine_info_get(ee->evas); + if(einfo) + { + int fw, fh; + evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh); + einfo->info.destination_alpha = EINA_TRUE; + if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo)) + ERR("evas_engine_info_set() for engine '%s' failed.", ee->driver); + evas_damage_rectangle_add(ee->evas, 0, 0, ee->w + fw, ee->h + fh); + } } else { diff --git a/src/modules/ecore_evas/engines/extn/ecore_evas_extn_engine.h b/src/modules/ecore_evas/engines/extn/ecore_evas_extn_engine.h index ff51960..2f507a7 100644 --- a/src/modules/ecore_evas/engines/extn/ecore_evas_extn_engine.h +++ b/src/modules/ecore_evas/engines/extn/ecore_evas_extn_engine.h @@ -32,6 +32,7 @@ #include #include #include +#include #include "ecore_private.h" // FIXME: Because of ECORE_MAGIC #include "ecore_evas_private.h"