Remove RenderSurface from Core
[platform/core/uifw/dali-adaptor.git] / dali / internal / adaptor / common / adaptor-internal-services.h
index 0cc2d32..ab88729 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTERNAL_ADAPTOR_INTERNAL_SERVICES_H
 
 /*
- * Copyright (c) 2014 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.
 #include <dali/integration-api/gl-abstraction.h>
 
 // INTERNAL INCLUDES
-#include <dali/integration-api/trigger-event-interface.h>
-#include <dali/integration-api/trigger-event-factory-interface.h>
-#include <dali/internal/window-system/common/display-connection.h>
+#include <dali/integration-api/adaptor-framework/render-surface-interface.h>
+#include <dali/integration-api/adaptor-framework/trigger-event-interface.h>
 #include <dali/internal/graphics/common/graphics-interface.h>
-#include <dali/internal/graphics/gles20/egl-factory-interface.h>
+#include <dali/internal/graphics/gles/egl-factory-interface.h>
 #include <dali/internal/network/common/socket-factory-interface.h>
-#include <dali/internal/system/common/performance-interface.h>
-#include <dali/internal/graphics/common/vsync-monitor-interface.h>
 #include <dali/internal/network/common/trace-interface.h>
-#include <dali/integration-api/render-surface.h>
-
+#include <dali/internal/system/common/performance-interface.h>
+#include <dali/internal/window-system/common/display-connection.h>
 
 namespace Dali
 {
@@ -44,6 +41,9 @@ namespace Internal
 namespace Adaptor
 {
 
+class SceneHolder;
+using WindowContainer = std::vector<Internal::Adaptor::SceneHolder*>;
+
 /**
  * A class to contain various interfaces provided by the adaptor which
  * can be used by the cross platform parts of adaptor.
@@ -85,11 +85,6 @@ public:
   virtual TriggerEventInterface& GetProcessCoreEventsTrigger() = 0;
 
   /**
-   * @return trigger event factory interface
-   */
-  virtual TriggerEventFactoryInterface& GetTriggerEventFactoryInterface() = 0;
-
-  /**
    * @return socket factory interface
    */
   virtual SocketFactoryInterface& GetSocketFactoryInterface() = 0;
@@ -97,12 +92,7 @@ public:
   /**
    * @return render surface
    */
-  virtual RenderSurface* GetRenderSurfaceInterface() = 0;
-
-  /**
-   * @return vsync monitor interface
-   */
-  virtual VSyncMonitorInterface* GetVSyncMonitorInterface() = 0;
+  virtual Dali::RenderSurfaceInterface* GetRenderSurfaceInterface() = 0;
 
   /**
    * @return performance interface
@@ -119,6 +109,11 @@ public:
    */
   virtual TraceInterface& GetSystemTraceInterface() = 0;
 
+  /**
+   * Used to access the list of windows from the Render thread
+   * @param[out] windows The list of created windows
+   */
+  virtual void GetWindowContainerInterface( WindowContainer& windows ) = 0;
 
 protected: