X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fcore.cpp;h=8c8f09b7869cc8ad45b58df8ebcb953d3a72db78;hb=refs%2Ftags%2Fsubmit%2Ftizen_5.5%2F20191205.041657;hp=4f2e5d2c5ed83bad9ea9e4bbab3c3ae55c423fe5;hpb=cd0ce6e412df8961b1a5e28b496369fa49fd72d7;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 4f2e5d2..8c8f09b --- a/dali/integration-api/core.cpp +++ b/dali/integration-api/core.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,11 +17,16 @@ // CLASS HEADER #include +#include // INTERNAL INCLUDES #include +#include +#include #include #include +#include +#include #include namespace Dali @@ -34,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; } @@ -59,6 +66,11 @@ Core::~Core() delete mImpl; } +void Core::Initialize() +{ + mImpl->Initialize(); +} + ContextNotifierInterface* Core::GetContextNotifier() { return mImpl->GetContextNotifier(); @@ -79,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() @@ -119,34 +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() -{ - return mImpl->GetSystemOverlay(); -} - -void Core::SetViewMode( ViewMode viewMode ) -{ - mImpl->SetViewMode( viewMode ); -} - -ViewMode Core::GetViewMode() const -{ - return mImpl->GetViewMode(); -} - -void Core::SetStereoBase( float stereoBase ) -{ - mImpl->SetStereoBase( stereoBase ); -} - -float Core::GetStereoBase() const +void Core::Render( RenderStatus& status, bool forceClear, bool uploadOnly ) { - return mImpl->GetStereoBase(); + mImpl->Render( status, forceClear, uploadOnly ); } void Core::RegisterProcessor( Processor& processor )