[Tizen] Add screen and client rotation itself function
[platform/core/uifw/dali-adaptor.git] / dali / internal / window-system / common / display-connection-impl.h
index cd94d76..8ced957 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTERNAL_WINDOWSYSTEM_COMMON_DISPLAY_CONNECTION_IMPL_H
 
 /*
- * Copyright (c) 2015 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.
 // INTERNAL INCLUDES
 #include <dali/internal/window-system/common/display-connection.h>
 #include <dali/public-api/object/base-object.h>
-#include <dali/internal/graphics/gles20/egl-implementation.h>
+#include <dali/internal/graphics/gles/egl-implementation.h>
 
-#include <memory>
 
 namespace Dali
 {
 
-class RenderSurface;
 class DisplayConnection;
 
 namespace Internal
 {
 namespace Adaptor
 {
-class Impl;
+
 /**
  * DisplayConnection implementation
  */
@@ -63,21 +61,26 @@ public:
   virtual Any GetDisplay() = 0;
 
   /**
-   * @copydoc Dali::DisplayConnection::GetDpi
+   * @copydoc Dali::DisplayConnection::ConsumeEvents
    */
-  static void GetDpi(unsigned int& dpiHorizontal, unsigned int& dpiVertical);
+  virtual void ConsumeEvents() = 0;
 
   /**
-   * @copydoc Dali::DisplayConnection::ConsumeEvents
+   * @copydoc Dali::DisplayConnection::InitializeGraphics
    */
-  virtual void ConsumeEvents() = 0;
+  virtual bool InitializeGraphics() = 0;
 
   /**
-   * @copydoc Dali::DisplayConnection::InitializeEgl
+   * Sets the render surface type
+   * @param[in] type The render surface type
    */
-  virtual bool InitializeEgl(EglInterface& egl) = 0;
+  virtual void SetSurfaceType( Dali::RenderSurfaceInterface::Type type ) = 0;
 
-  virtual void SetSurfaceType( RenderSurface::Type type ) = 0;
+  /**
+   * Sets the graphics interface
+   * @param[in] graphics The graphics interface
+   */
+  virtual void SetGraphicsInterface( GraphicsInterface& graphics ) = 0;
 
 public: