efl_ui_win: Added frontbuffer mode. 08/289208/3
authorMichal Szczecinski <m.szczecinsk@partner.samsung.com>
Thu, 2 Mar 2023 13:24:16 +0000 (14:24 +0100)
committerMichal Szczecinski <m.szczecinsk@partner.samsung.com>
Fri, 3 Mar 2023 07:33:54 +0000 (08:33 +0100)
commit383cd18858966e737e23a682b0cc63e7f993f13c
tree055927f14d5d00449406c6ff6654f2ca694b697c
parente2b0f514ef6119686b1062c069600bc4faca7ee0
efl_ui_win: Added frontbuffer mode.

Introduced new API:
- elm_win_use_frontbuffer_set(Evas_Object *obj, Eina_Bool
  use_frontbuffer) : setter of internal option.
- Eina_Bool elm_win_use_frontbuffer_get(Evas_Object *obj):
  getter of internal option.
- elm_win_frontbuffer_add()

When use_frontbuffer mode is set wayland engine uses frontbuffer
rendering mode on specified window.

Usage example:

   win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
                efl_ui_win_name_set(efl_added, "win-example"),
                efl_text_set(efl_added, "Elm_Win Example"),
                elm_win_use_frontbuffer_set(efl_added, EINA_TRUE));

   or:

   win = elm_win_frontbuffer_add(NULL, "win-example", "win-example", ELM_WIN_BASIC);

Change-Id: Ia1b06841f7ced23991d275ac09002bb89efa4fd2
src/lib/ecore_evas/Ecore_Evas.h
src/lib/elementary/efl_ui_win.c
src/lib/elementary/efl_ui_win.eo
src/lib/elementary/elm_win_legacy.h
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
src/modules/evas/engines/wayland_common/Evas_Engine_Wayland.h
src/modules/evas/engines/wayland_egl/evas_engine.h
src/modules/evas/engines/wayland_egl/evas_wl_main.c