Revert "[Tizen] Implement partial update"
[platform/core/uifw/dali-core.git] / dali / integration-api / core.cpp
index 4f2e5d2..30e1cba 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 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.
 
 // CLASS HEADER
 #include <dali/integration-api/core.h>
+#include <dali/integration-api/render-surface.h>
 
 // INTERNAL INCLUDES
 #include <dali/public-api/common/dali-common.h>
+#include <dali/public-api/actors/layer.h>
+#include <dali/public-api/render-tasks/render-task-list.h>
 #include <dali/integration-api/events/event.h>
 #include <dali/integration-api/gl-sync-abstraction.h>
+#include <dali/integration-api/gl-context-helper-abstraction.h>
+#include <dali/integration-api/processor-interface.h>
 #include <dali/internal/common/core-impl.h>
 
 namespace Dali
@@ -34,8 +39,7 @@ Core* Core::New( RenderController& renderController,
                  PlatformAbstraction& platformAbstraction,
                  GlAbstraction& glAbstraction,
                  GlSyncAbstraction& glSyncAbstraction,
-                 GestureManager& gestureManager,
-                 ResourcePolicy::DataRetention policy,
+                 GlContextHelperAbstraction& glContextHelperAbstraction,
                  RenderToFrameBuffer renderToFboEnabled,
                  DepthBufferAvailable depthBufferAvailable,
                  StencilBufferAvailable stencilBufferAvailable )
@@ -45,8 +49,7 @@ Core* Core::New( RenderController& renderController,
                                         platformAbstraction,
                                         glAbstraction,
                                         glSyncAbstraction,
-                                        gestureManager,
-                                        policy,
+                                        glContextHelperAbstraction,
                                         renderToFboEnabled,
                                         depthBufferAvailable,
                                         stencilBufferAvailable );
@@ -59,6 +62,11 @@ Core::~Core()
   delete mImpl;
 }
 
+void Core::Initialize()
+{
+  mImpl->Initialize();
+}
+
 ContextNotifierInterface* Core::GetContextNotifier()
 {
   return mImpl->GetContextNotifier();
@@ -79,19 +87,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 +117,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 )