[M108 Migration][WRTjs] Lazy initialization of ContentMainRunner for wrt-loader 90/289490/2
authorDongHyun Song <dh81.song@samsung.com>
Wed, 8 Mar 2023 23:53:57 +0000 (08:53 +0900)
committerBot Blink <blinkbot@samsung.com>
Thu, 9 Mar 2023 05:01:47 +0000 (05:01 +0000)
commit6ca37984fa8438ebb2a2476167e1d7ccb319d573
tree2714955456026c6472b493b66611d9840bff33eb
parentb04cfc174ef6715dc690816a715370bf20d2f689
[M108 Migration][WRTjs] Lazy initialization of ContentMainRunner for wrt-loader

In case cold booting case, WRT initialization takes much time on
the low-end product. (5s ~ 7s)
Even though wrt-loader is prepared on cold booting sequence as soon
as possible, the candidate launch can be failed because wrt-loader
is not yet ready.

To make short the initialization time, this patch defers the jobs
of WRTContentMain's initialization with ecore_idler, and return
loader's create callback early to prepare wrt-loader.

Reference:
https://review.tizen.org/gerrit/284208/

Change-Id: Icb1be128397415903d3de8b3346a862a98e7f1e2
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt/src/app/wrt_content_main.cc