Revert "Remove EGL surface in the update thread"
[platform/core/uifw/dali-adaptor.git] / dali / internal / system / common / thread-controller.cpp
index 3cffd54..605c76d 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.
@@ -80,12 +80,12 @@ void ThreadController::RequestUpdate()
   mThreadControllerInterface->RequestUpdate();
 }
 
-void ThreadController::RequestUpdateOnce()
+void ThreadController::RequestUpdateOnce(   UpdateMode updateMode )
 {
-  mThreadControllerInterface->RequestUpdateOnce();
+  mThreadControllerInterface->RequestUpdateOnce( updateMode );
 }
 
-void ThreadController::ReplaceSurface( RenderSurface* newSurface )
+void ThreadController::ReplaceSurface( Dali::RenderSurfaceInterface* newSurface )
 {
   mThreadControllerInterface->ReplaceSurface( newSurface );
 }
@@ -95,6 +95,11 @@ void ThreadController::ResizeSurface()
   mThreadControllerInterface->ResizeSurface();
 }
 
+void ThreadController::WaitForGraphicsInitialization()
+{
+  mThreadControllerInterface->WaitForGraphicsInitialization();
+}
+
 void ThreadController::SetRenderRefreshRate(unsigned int numberOfVSyncsPerRender )
 {
   mThreadControllerInterface->SetRenderRefreshRate( numberOfVSyncsPerRender );
@@ -105,6 +110,16 @@ void ThreadController::SetPreRenderCallback( CallbackBase* callback )
   mThreadControllerInterface->SetPreRenderCallback( callback );
 }
 
+void ThreadController::AddSurface( Dali::RenderSurfaceInterface* newSurface )
+{
+  mThreadControllerInterface->AddSurface( newSurface );
+}
+
+bool ThreadController::IsRenderingWindows() const
+{
+  return mThreadControllerInterface->IsRenderingWindows();
+}
+
 } // namespace Adaptor
 
 } // namespace Internal