Revert "[Tizen] Add screen and client rotation itself function"
[platform/core/uifw/dali-adaptor.git] / dali / integration-api / egl-interface.h
index 5208501..9c988a4 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __DALI_INTEGRATION_EGL_INTERFACE_H__
-#define __DALI_INTEGRATION_EGL_INTERFACE_H__
+#ifndef DALI_INTEGRATION_EGL_INTERFACE_H
+#define DALI_INTEGRATION_EGL_INTERFACE_H
 
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
@@ -18,6 +18,9 @@
  *
  */
 
+// EXTERNAL INCLUDES
+#include <EGL/egl.h>
+
 namespace Dali
 {
 
@@ -42,7 +45,7 @@ public:
   /**
    * Make the OpenGL context current
    */
-  virtual void MakeContextCurrent() = 0;
+  virtual void MakeContextCurrent( EGLSurface eglSurface, EGLContext eglContext ) = 0;
 
   /**
    * Terminate GL
@@ -52,12 +55,12 @@ public:
   /**
    * Performs an OpenGL swap buffers command
    */
-  virtual void SwapBuffers() = 0;
+  virtual void SwapBuffers( EGLSurface& eglSurface ) = 0;
 
   /**
    * Performs an OpenGL copy buffers command
    */
-  virtual void CopyBuffers() = 0;
+  virtual void CopyBuffers( EGLSurface& eglSurface ) = 0;
 
   /**
    * Performs an EGL wait GL command
@@ -73,4 +76,4 @@ protected:
 
 } // namespace Dali
 
-#endif // __DALI_INTEGRATION_EGL_INTERFACE_H__
+#endif // DALI_INTEGRATION_EGL_INTERFACE_H