X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fcore.cpp;h=36b6319c17bb629ea3f025cc6940cbffc71d7864;hb=872c598cecbe0c7922dfdbca0d2f8009eeaff5cd;hp=83cfedf71a2e90f60bab78addbbc81c43b62109c;hpb=0e992e5613b2aefafe288d00372c95ebfbb265f0;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/core.cpp b/dali/integration-api/core.cpp index 83cfedf..36b6319 100644 --- a/dali/integration-api/core.cpp +++ b/dali/integration-api/core.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -20,8 +20,6 @@ // INTERNAL INCLUDES #include -#include -#include #include #include #include @@ -32,22 +30,18 @@ namespace Dali { namespace Integration { -Core* Core::New(RenderController& renderController, - PlatformAbstraction& platformAbstraction, - GlAbstraction& glAbstraction, - GlSyncAbstraction& glSyncAbstraction, - GlContextHelperAbstraction& glContextHelperAbstraction, - RenderToFrameBuffer renderToFboEnabled, - DepthBufferAvailable depthBufferAvailable, - StencilBufferAvailable stencilBufferAvailable, - PartialUpdateAvailable partialUpdateAvailable) +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, - glAbstraction, - glSyncAbstraction, - glContextHelperAbstraction, + graphicsController, renderToFboEnabled, depthBufferAvailable, stencilBufferAvailable, @@ -116,9 +110,9 @@ void Core::PreRender(RenderStatus& status, bool forceClear, bool uploadOnly) mImpl->PreRender(status, forceClear, uploadOnly); } -void Core::PreRender(Integration::Scene& scene, std::vector>& damagedRects) +void Core::PreRender(RenderStatus& status, Integration::Scene& scene, std::vector>& damagedRects) { - mImpl->PreRender(scene, damagedRects); + mImpl->PreRender(status, scene, damagedRects); } void Core::RenderScene(RenderStatus& status, Integration::Scene& scene, bool renderToFbo) @@ -136,14 +130,14 @@ void Core::PostRender(bool uploadOnly) mImpl->PostRender(uploadOnly); } -void Core::RegisterProcessor(Processor& processor) +void Core::RegisterProcessor(Processor& processor, bool postProcessor) { - mImpl->RegisterProcessor(processor); + mImpl->RegisterProcessor(processor, postProcessor); } -void Core::UnregisterProcessor(Processor& processor) +void Core::UnregisterProcessor(Processor& processor, bool postProcessor) { - mImpl->UnregisterProcessor(processor); + mImpl->UnregisterProcessor(processor, postProcessor); } ObjectRegistry Core::GetObjectRegistry() const