From bb8a4555065dbd4b49421e8664917cd23bb53fee Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Tue, 18 Jul 2023 10:54:45 +0900 Subject: [PATCH] Make OffscreenApplication also use FrameworkFactory Change-Id: I806d5d6d7db7e0dfecb216387ff2ba8086859d8d Signed-off-by: Eunki, Hong --- dali/internal/offscreen/common/offscreen-application-impl.cpp | 3 ++- dali/internal/offscreen/common/offscreen-application-impl.h | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/dali/internal/offscreen/common/offscreen-application-impl.cpp b/dali/internal/offscreen/common/offscreen-application-impl.cpp index 3676131..0b2682c 100644 --- a/dali/internal/offscreen/common/offscreen-application-impl.cpp +++ b/dali/internal/offscreen/common/offscreen-application-impl.cpp @@ -51,7 +51,8 @@ OffscreenApplication::OffscreenApplication(uint16_t width, uint16_t height, Dali Dali::Accessibility::Bridge::DisableAutoInit(); // Now we assume separated main loop for the offscreen application - mFramework = Internal::Adaptor::GetFrameworkFactory()->CreateFramework(Internal::Adaptor::FrameworkBackend::GLIB, *this, *this, nullptr, nullptr, Adaptor::Framework::NORMAL, false); + mFrameworkFactory = std::unique_ptr(Dali::Internal::Adaptor::CreateFrameworkFactory()); + mFramework = mFrameworkFactory->CreateFramework(Internal::Adaptor::FrameworkBackend::GLIB, *this, *this, nullptr, nullptr, Adaptor::Framework::NORMAL, false); // Generate a default window IntrusivePtr impl = Internal::OffscreenWindow::New(width, height, surface, isTranslucent); diff --git a/dali/internal/offscreen/common/offscreen-application-impl.h b/dali/internal/offscreen/common/offscreen-application-impl.h index b049c13..f12ce4d 100644 --- a/dali/internal/offscreen/common/offscreen-application-impl.h +++ b/dali/internal/offscreen/common/offscreen-application-impl.h @@ -35,6 +35,11 @@ class Adaptor; namespace Internal { +namespace Adaptor +{ +class FrameworkFactory; +} // namespace Adaptor + /** * Implementation of the OffscreenApplication class. */ @@ -138,7 +143,8 @@ private: std::unique_ptr mAdaptor; Dali::OffscreenWindow mDefaultWindow; - std::unique_ptr mFramework; + std::unique_ptr mFramework; + std::unique_ptr mFrameworkFactory; OffscreenApplicationSignalType mInitSignal; OffscreenApplicationSignalType mTerminateSignal; -- 2.7.4