uint32_t EvasPlugin::mEvasPluginCount = 0;
-SingletonService EvasPlugin::mSingletonService = SingletonService();
-
-
IntrusivePtr< EvasPlugin > EvasPlugin::New( Evas_Object* parentEvasObject, int width, int height, bool isTranslucent )
{
IntrusivePtr< EvasPlugin > evasPlugin = new EvasPlugin( parentEvasObject, width, height, isTranslucent );
if( !mAdaptor )
{
- // Create the singleton service
- mSingletonService = SingletonService::New();
-
// Create an adaptor or add new scene holder to the adaptor
mAdaptor = &Adaptor::New( sceneHolderHandler, *surface, Configuration::APPLICATION_DOES_NOT_HANDLE_CONTEXT_LOSS );
}
if( !mEvasPluginCount )
{
delete mAdaptor;
-
- mSingletonService.UnregisterAll();
}
}
#include <memory>
#include <Ecore_IMF_Evas.h>
-#include <dali/devel-api/adaptor-framework/singleton-service.h>
#include <dali/integration-api/adaptor-framework/scene-holder-impl.h>
#include <dali/public-api/common/intrusive-ptr.h>
#include <dali/public-api/math/rect.h>
static Adaptor* mAdaptor;
static uint32_t mEvasPluginCount;
- static SingletonService mSingletonService;
std::unique_ptr< EvasWrapper > mEvasWrapper;
std::unique_ptr< TriggerEventInterface > mRenderNotification;