/*
- * 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.
// INTERNAL INCLUDES
#include <dali/integration-api/events/event.h>
-#include <dali/integration-api/gl-context-helper-abstraction.h>
-#include <dali/integration-api/gl-sync-abstraction.h>
#include <dali/integration-api/processor-interface.h>
#include <dali/internal/common/core-impl.h>
#include <dali/public-api/actors/layer.h>
{
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,
mImpl->PreRender(status, forceClear, uploadOnly);
}
-void Core::PreRender(Integration::Scene& scene, std::vector<Rect<int>>& damagedRects)
+void Core::PreRender(RenderStatus& status, Integration::Scene& scene, std::vector<Rect<int>>& damagedRects)
{
- mImpl->PreRender(scene, damagedRects);
+ mImpl->PreRender(status, scene, damagedRects);
}
void Core::RenderScene(RenderStatus& status, Integration::Scene& scene, bool renderToFbo)
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