From: hyunho Date: Mon, 3 Feb 2020 07:14:47 +0000 (+0900) Subject: Implement no_render_push feature X-Git-Tag: submit/tizen/20200209.233938~2^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3eca517f27fffd24bae06701946f02e586b0328;p=platform%2Fcore%2Fappfw%2Fwidget-viewer.git Implement no_render_push feature Resume request will stop rendering until the viewer receive the buffer from provider or timeout occurred. Signed-off-by: hyunho --- diff --git a/watch-holder/src/watch.cc b/watch-holder/src/watch.cc index c329df64..bfd95b56 100644 --- a/watch-holder/src/watch.cc +++ b/watch-holder/src/watch.cc @@ -33,14 +33,16 @@ Watch::Watch(string appid, Evas_Object* viewer_win, Watch::IEvent* listener) : RemoteSurfaceEvas(appid, RemoteSurface::WATCH, make_shared(viewer_win, false)), appid_(appid), listener_(listener) { + RemoteSurfaceEvas::SetAutoVisibility(false); } void Watch::Resume() { - SendVisibility(true); + RemoteSurfaceEvas::NoRenderPush(200); + RemoteSurfaceEvas::SendVisibility(true); } void Watch::Pause() { - SendVisibility(false); + RemoteSurfaceEvas::SendVisibility(false); } void Watch::Terminate() { @@ -65,6 +67,10 @@ int Watch::GetRid() const { return RemoteSurface::GetRid(); } +int Watch::GetPid() const { + return pid_; +} + void Watch::Bind(Evas_Object* win) { bind_win_ = win; elm_win_aux_hint_add(win, "wm.policy.win.msg.use", "1"); diff --git a/watch-holder/src/watch.hh b/watch-holder/src/watch.hh index 2d71deb6..8bf2464d 100644 --- a/watch-holder/src/watch.hh +++ b/watch-holder/src/watch.hh @@ -46,7 +46,7 @@ class EXPORT_API Watch : private screen_connector::RemoteSurfaceEvas { void NotifyChangedEvent(); bool IsBound(); std::string GetAppId(); - int GetPid(); + int GetPid() const ; int GetRid() const ; tizen_base::Bundle GetExtra(); bool IsFaulted();