From: JengHyun Kang Date: Wed, 8 Nov 2017 13:13:29 +0000 (+0900) Subject: ecore_wl2: add a new API to ecore_wl2_sync X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~1059 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=78d0d3cd5316a830100e0a14fbe1011a22e6a5b9;p=platform%2Fupstream%2Fefl.git ecore_wl2: add a new API to ecore_wl2_sync @tizen_feature Change-Id: I01c0157b169ce9bfcf5dcbe30a19c833215a13a7 --- diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h index 548f41f..3253000 100644 --- a/src/lib/ecore_wl2/Ecore_Wl2.h +++ b/src/lib/ecore_wl2/Ecore_Wl2.h @@ -2223,6 +2223,9 @@ EAPI void ecore_wl2_display_sync(Ecore_Wl2_Display *display); // TIZEN_ONLY(20171107): add ecore_wl2_window_input_get() EAPI EAPI Ecore_Wl2_Input *ecore_wl2_window_input_get(Ecore_Wl2_Window *win); // +//TIZEN_ONLY(20171108): add a new API to ecore_wl2_sync +EAPI void ecore_wl2_sync(void); +// # endif diff --git a/src/lib/ecore_wl2/ecore_wl2_display.c b/src/lib/ecore_wl2/ecore_wl2_display.c index 1247d3e..7f9e3e0 100644 --- a/src/lib/ecore_wl2/ecore_wl2_display.c +++ b/src/lib/ecore_wl2/ecore_wl2_display.c @@ -868,6 +868,19 @@ ecore_wl2_display_sync(Ecore_Wl2_Display *display) } // +//TIZEN_ONLY(20171108): add a new API to ecore_wl2_sync +EAPI void +ecore_wl2_sync(void) +{ + Ecore_Wl2_Display *ewd; + + ewd = ecore_wl2_connected_display_get(NULL); + if (!ewd) return; + + ecore_wl2_display_sync(ewd); +} +// + static void _ecore_wl2_display_sync_add(Ecore_Wl2_Display *ewd) {