From 78d0d3cd5316a830100e0a14fbe1011a22e6a5b9 Mon Sep 17 00:00:00 2001 From: JengHyun Kang Date: Wed, 8 Nov 2017 22:13:29 +0900 Subject: [PATCH] ecore_wl2: add a new API to ecore_wl2_sync @tizen_feature Change-Id: I01c0157b169ce9bfcf5dcbe30a19c833215a13a7 --- src/lib/ecore_wl2/Ecore_Wl2.h | 3 +++ src/lib/ecore_wl2/ecore_wl2_display.c | 13 +++++++++++++ 2 files changed, 16 insertions(+) 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) { -- 2.7.4