Revert "Remove EGL surface in the update thread"
[platform/core/uifw/dali-adaptor.git] / dali / internal / system / common / thread-controller.h
index 686c653..471a5f9 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTERNAL_THREAD_CONTROLLER_H
 
 /*
- * Copyright (c) 2019 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.
@@ -112,15 +112,14 @@ public:
   void ReplaceSurface( Dali::RenderSurfaceInterface* surface );
 
   /**
-   * Deletes the surface.
-   * @param surface The surface to be deleted
+   * Resize the surface.
    */
-  void DeleteSurface( Dali::RenderSurfaceInterface* surface );
+  void ResizeSurface();
 
   /**
-   * Resize the surface.
+   * Wait until the graphics is initialised.
    */
-  void ResizeSurface();
+  void WaitForGraphicsInitialization();
 
   /**
    * @copydoc Dali::Adaptor::SetRenderRefreshRate()
@@ -132,6 +131,18 @@ public:
    */
   void SetPreRenderCallback( CallbackBase* callback );
 
+  /**
+   * @brief Adds the new surface.
+   *
+   * @param surface new surface
+   */
+  void AddSurface( Dali::RenderSurfaceInterface* surface );
+
+  /**
+   * @copydoc Dali::Adaptor::IsRenderingWindows()
+   */
+  bool IsRenderingWindows() const;
+
 private:
 
   // Undefined copy constructor.