X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fcore.cpp;h=8c8f09b7869cc8ad45b58df8ebcb953d3a72db78;hb=db9cfcd683be8e4b3a1f83f6378e493770eb9533;hp=d8a8530859e4ee58dcee13f449a6a3b6eb425dc5;hpb=f0e82b550ebf0f0a2241ca499a80d937d572360d;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/core.cpp b/dali/integration-api/core.cpp old mode 100644 new mode 100755 index d8a8530..8c8f09b --- a/dali/integration-api/core.cpp +++ b/dali/integration-api/core.cpp @@ -17,11 +17,15 @@ // CLASS HEADER #include +#include // INTERNAL INCLUDES #include +#include +#include #include #include +#include #include #include @@ -35,22 +39,24 @@ Core* Core::New( RenderController& renderController, PlatformAbstraction& platformAbstraction, GlAbstraction& glAbstraction, GlSyncAbstraction& glSyncAbstraction, - GestureManager& gestureManager, + GlContextHelperAbstraction& glContextHelperAbstraction, ResourcePolicy::DataRetention policy, RenderToFrameBuffer renderToFboEnabled, DepthBufferAvailable depthBufferAvailable, - StencilBufferAvailable stencilBufferAvailable ) + StencilBufferAvailable stencilBufferAvailable, + PartialUpdateAvailable partialUpdateAvailable ) { Core* instance = new Core; instance->mImpl = new Internal::Core( renderController, platformAbstraction, glAbstraction, glSyncAbstraction, - gestureManager, + glContextHelperAbstraction, policy, renderToFboEnabled, depthBufferAvailable, - stencilBufferAvailable ); + stencilBufferAvailable, + partialUpdateAvailable ); return instance; } @@ -60,6 +66,11 @@ Core::~Core() delete mImpl; } +void Core::Initialize() +{ + mImpl->Initialize(); +} + ContextNotifierInterface* Core::GetContextNotifier() { return mImpl->GetContextNotifier(); @@ -80,19 +91,9 @@ void Core::RecoverFromContextLoss() mImpl->RecoverFromContextLoss(); } -void Core::SurfaceResized(uint32_t width, uint32_t height) -{ - mImpl->SurfaceResized(width, height); -} - -void Core::SetTopMargin( uint32_t margin ) +void Core::SurfaceDeleted( Integration::RenderSurface* surface ) { - mImpl->SetTopMargin(margin); -} - -void Core::SetDpi( uint32_t dpiHorizontal, uint32_t dpiVertical) -{ - mImpl->SetDpi(dpiHorizontal, dpiVertical); + mImpl->SurfaceDeleted(surface); } void Core::SceneCreated() @@ -120,14 +121,9 @@ void Core::Update( float elapsedSeconds, uint32_t lastVSyncTimeMilliseconds, uin mImpl->Update( elapsedSeconds, lastVSyncTimeMilliseconds, nextVSyncTimeMilliseconds, status, renderToFboEnabled, isRenderingToFbo ); } -void Core::Render( RenderStatus& status, bool forceClear ) -{ - mImpl->Render( status, forceClear ); -} - -SystemOverlay& Core::GetSystemOverlay() +void Core::Render( RenderStatus& status, bool forceClear, bool uploadOnly ) { - return mImpl->GetSystemOverlay(); + mImpl->Render( status, forceClear, uploadOnly ); } void Core::RegisterProcessor( Processor& processor )