-#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.
*
*/
+// EXTERNAL INCLUDES
+#include <EGL/egl.h>
+
namespace Dali
{
/**
* Make the OpenGL context current
*/
- virtual void MakeContextCurrent() = 0;
+ virtual void MakeContextCurrent( EGLSurface eglSurface, EGLContext eglContext ) = 0;
/**
* Terminate GL
/**
* 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
} // namespace Dali
-#endif // __DALI_INTEGRATION_EGL_INTERFACE_H__
+#endif // DALI_INTEGRATION_EGL_INTERFACE_H