X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fcore.cpp;h=870861bb227f89a856b6a1ce25fe44ee3d7069c7;hb=c8e0d2807617b0ba441ae67e735512bf6f3c1c68;hp=b14df7c2fd4e36d1aa4aaf2e72f33c539097889d;hpb=d8944bba8449a3c5bce03041eccccf2eba4a7ae3;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/core.cpp b/dali/integration-api/core.cpp index b14df7c..870861b 100644 --- a/dali/integration-api/core.cpp +++ b/dali/integration-api/core.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 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,43 +17,35 @@ // CLASS HEADER #include -#include // INTERNAL INCLUDES -#include -#include -#include #include -#include #include #include +#include +#include +#include namespace Dali { - namespace Integration { - -Core* Core::New( RenderController& renderController, - PlatformAbstraction& platformAbstraction, - GlAbstraction& glAbstraction, - GlSyncAbstraction& glSyncAbstraction, - GestureManager& gestureManager, - ResourcePolicy::DataRetention policy, - RenderToFrameBuffer renderToFboEnabled, - DepthBufferAvailable depthBufferAvailable, - StencilBufferAvailable stencilBufferAvailable ) -{ - Core* instance = new Core; - instance->mImpl = new Internal::Core( renderController, - platformAbstraction, - glAbstraction, - glSyncAbstraction, - gestureManager, - policy, - renderToFboEnabled, - depthBufferAvailable, - stencilBufferAvailable ); +Core* Core::New(RenderController& renderController, + PlatformAbstraction& platformAbstraction, + Graphics::Controller& graphicsController, + RenderToFrameBuffer renderToFboEnabled, + DepthBufferAvailable depthBufferAvailable, + StencilBufferAvailable stencilBufferAvailable, + PartialUpdateAvailable partialUpdateAvailable) +{ + Core* instance = new Core; + instance->mImpl = new Internal::Core(renderController, + platformAbstraction, + graphicsController, + renderToFboEnabled, + depthBufferAvailable, + stencilBufferAvailable, + partialUpdateAvailable); return instance; } @@ -88,11 +80,6 @@ void Core::RecoverFromContextLoss() mImpl->RecoverFromContextLoss(); } -void Core::SurfaceResized( Integration::RenderSurface* surface ) -{ - mImpl->SurfaceResized(surface); -} - void Core::SceneCreated() { mImpl->SceneCreated(); @@ -113,28 +100,58 @@ uint32_t Core::GetMaximumUpdateCount() const return mImpl->GetMaximumUpdateCount(); } -void Core::Update( float elapsedSeconds, uint32_t lastVSyncTimeMilliseconds, uint32_t nextVSyncTimeMilliseconds, UpdateStatus& status, bool renderToFboEnabled, bool isRenderingToFbo ) +void Core::Update(float elapsedSeconds, uint32_t lastVSyncTimeMilliseconds, uint32_t nextVSyncTimeMilliseconds, UpdateStatus& status, bool renderToFboEnabled, bool isRenderingToFbo, bool uploadOnly) +{ + mImpl->Update(elapsedSeconds, lastVSyncTimeMilliseconds, nextVSyncTimeMilliseconds, status, renderToFboEnabled, isRenderingToFbo, uploadOnly); +} + +void Core::PreRender(RenderStatus& status, bool forceClear) +{ + mImpl->PreRender(status, forceClear); +} + +void Core::PreRender(Integration::Scene& scene, std::vector>& damagedRects) +{ + mImpl->PreRender(scene, damagedRects); +} + +void Core::RenderScene(RenderStatus& status, Integration::Scene& scene, bool renderToFbo) +{ + mImpl->RenderScene(status, scene, renderToFbo); +} + +void Core::RenderScene(RenderStatus& status, Integration::Scene& scene, bool renderToFbo, Rect& clippingRect) +{ + mImpl->RenderScene(status, scene, renderToFbo, clippingRect); +} + +void Core::PostRender() +{ + mImpl->PostRender(); +} + +void Core::RegisterProcessor(Processor& processor, bool postProcessor) { - mImpl->Update( elapsedSeconds, lastVSyncTimeMilliseconds, nextVSyncTimeMilliseconds, status, renderToFboEnabled, isRenderingToFbo ); + mImpl->RegisterProcessor(processor, postProcessor); } -void Core::Render( RenderStatus& status, bool forceClear ) +void Core::UnregisterProcessor(Processor& processor, bool postProcessor) { - mImpl->Render( status, forceClear ); + mImpl->UnregisterProcessor(processor, postProcessor); } -void Core::RegisterProcessor( Processor& processor ) +ObjectRegistry Core::GetObjectRegistry() const { - mImpl->RegisterProcessor( processor ); + return ObjectRegistry(&mImpl->GetObjectRegistry()); } -void Core::UnregisterProcessor( Processor& processor ) +void Core::LogMemoryPools() const { - mImpl->UnregisterProcessor( processor ); + mImpl->LogMemoryPools(); } Core::Core() -: mImpl( NULL ) +: mImpl(nullptr) { }