From: Adeel Kazmi Date: Thu, 21 Sep 2023 15:36:59 +0000 (+0000) Subject: Merge "Added UIThreadLoader to GLIB framework" into devel/master X-Git-Tag: dali_2.2.45~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b40b09a83baaf719ee0696e236e7353045b089a;hp=25235ce98b8a1d53441fdb0ce234938da001b58c;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Merge "Added UIThreadLoader to GLIB framework" into devel/master --- diff --git a/dali/internal/adaptor/glib/framework-glib.cpp b/dali/internal/adaptor/glib/framework-glib.cpp index dbcbbfc..d4af05d 100644 --- a/dali/internal/adaptor/glib/framework-glib.cpp +++ b/dali/internal/adaptor/glib/framework-glib.cpp @@ -111,6 +111,56 @@ Any FrameworkGlib::GetMainLoopContext() const return mImpl->mContext; } +// If the GLIB profile is being used on desktop, define the UIThreadLoader methods. +// Note that it shouldn't be defined normally, as GLIB framework can be used in +// conjunction with ECORE framework. +#if defined(DALI_PROFILE_GLIB_X11) + +/** + * Impl for Pre-Initailized using UI Thread. + */ +struct UIThreadLoader::Impl +{ + // Constructor + + Impl(void* data) + { + } + + ~Impl() + { + } + + void Run(Runner runner) + { + } + +private: + // Undefined + Impl(const Impl& impl); + Impl& operator=(const Impl& impl); +}; + +/** + * UI Thread loader to support Pre-Initailized using UI Thread. + */ +UIThreadLoader::UIThreadLoader(int* argc, char*** argv) +: mArgc(argc), + mArgv(argv), + mImpl(nullptr) +{ +} + +UIThreadLoader::~UIThreadLoader() +{ +} + +void UIThreadLoader::Run(Runner runner) +{ +} + +#endif + } // namespace Adaptor } // namespace Internal