X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fadaptor%2Fcommon%2Fadaptor-impl.cpp;h=06ffb2a8189844b84c3d40a9647aabf8b2582189;hb=c0bbc88a04b2aca86ab9c9e1852da7260962374f;hp=131a611044521279df04c1d930cab1d45f9d9c82;hpb=0b453f31180c02bcc98f75dd73b7b016b36bdb12;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/adaptor/common/adaptor-impl.cpp b/dali/internal/adaptor/common/adaptor-impl.cpp index 131a611..06ffb2a 100755 --- a/dali/internal/adaptor/common/adaptor-impl.cpp +++ b/dali/internal/adaptor/common/adaptor-impl.cpp @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include @@ -43,11 +42,9 @@ #include #include #include -#include -#include -#include #include #include +#include #include #include #include @@ -133,35 +130,28 @@ void Adaptor::Initialize( Dali::Configuration::ContextLoss configuration ) mGestureManager = new GestureManager(*this, Vector2(size.width, size.height), mCallbackManager, *mEnvironmentOptions); - if( mEnvironmentOptions->GetGlesCallTime() > 0 ) - { - mGLES = new GlProxyImplementation( *mEnvironmentOptions ); - } - else - { - mGLES = new GlImplementation(); - } - const Integration::DepthBufferAvailable depthBufferAvailable = static_cast< Integration::DepthBufferAvailable >( mEnvironmentOptions->DepthBufferRequired() ); const Integration::StencilBufferAvailable stencilBufferAvailable = static_cast< Integration::StencilBufferAvailable >( mEnvironmentOptions->StencilBufferRequired() ); mEglFactory = new EglFactory( mEnvironmentOptions->GetMultiSamplingLevel(), depthBufferAvailable, stencilBufferAvailable ); - EglSyncImplementation* eglSyncImpl = mEglFactory->GetSyncImplementation(); - - // todo: add somewhere MakeUnique to make it cleaner + // @todo: add somewhere MakeUnique to make it cleaner mGraphics = std::unique_ptr( new Dali::Integration::Graphics::Graphics() ); - // todo: surface shouldn't really be create here :(((( + // @todo: surface shouldn't really be create here :(((( auto xlibSurface = std::unique_ptr( new Dali::Graphics::Vulkan::VkSurfaceXlib2Xcb( *mSurface ) ); mGraphics->Create( std::move(xlibSurface) ); - mCore = Integration::Core::New( *this, *mPlatformAbstraction, *mGraphics, *mGLES, *eglSyncImpl, *mGestureManager, dataRetentionPolicy, + mCore = Integration::Core::New( *this, + *mPlatformAbstraction, + *mGraphics, + *mGestureManager, + dataRetentionPolicy , ( 0u != mEnvironmentOptions->GetRenderToFboInterval() ) ? Integration::RenderToFrameBuffer::TRUE : Integration::RenderToFrameBuffer::FALSE, depthBufferAvailable, stencilBufferAvailable ); @@ -273,7 +263,6 @@ Adaptor::~Adaptor() delete mCore; delete mEglFactory; - delete mGLES; delete mGestureManager; delete mPlatformAbstraction; delete mCallbackManager; @@ -424,19 +413,6 @@ void Adaptor::Stop() } } -void Adaptor::ContextLost() -{ - mCore->GetContextNotifier()->NotifyContextLost(); // Inform stage -} - -void Adaptor::ContextRegained() -{ - // Inform core, so that texture resources can be reloaded - mCore->RecoverFromContextLoss(); - - mCore->GetContextNotifier()->NotifyContextRegained(); // Inform stage -} - void Adaptor::FeedTouchPoint( TouchPoint& point, int timeStamp ) { mEventHandler->FeedTouchPoint( point, timeStamp ); @@ -553,13 +529,7 @@ EglFactoryInterface& Adaptor::GetEGLFactoryInterface() const return *mEglFactory; } -Integration::GlAbstraction& Adaptor::GetGlAbstraction() const -{ - DALI_ASSERT_DEBUG( mGLES && "GLImplementation not created" ); - return *mGLES; -} - -Dali::Integration::Graphics::Graphics& Adaptor::GetGraphics() const +Integration::Graphics::Graphics& Adaptor::GetGraphics() const { return *mGraphics; } @@ -569,11 +539,6 @@ Dali::Integration::PlatformAbstraction& Adaptor::GetPlatformAbstractionInterface return *mPlatformAbstraction; } -Dali::Integration::GlAbstraction& Adaptor::GetGlesInterface() -{ - return *mGLES; -} - TriggerEventInterface& Adaptor::GetProcessCoreEventsTrigger() { return *mNotificationTrigger; @@ -861,8 +826,6 @@ Adaptor::Adaptor(Any nativeWindow, Dali::Adaptor& adaptor, RenderSurface* surfac mCore( NULL ), mThreadController( NULL ), mVSyncMonitor( NULL ), - mGLES( NULL ), - mGlSync( NULL ), mEglFactory( NULL ), mNativeWindow( nativeWindow ), mSurface( surface ),