Revert "[Tizen] Add GlWindow"
[platform/core/uifw/dali-adaptor.git] / dali / internal / graphics / gles / egl-graphics.h
index f02d673..8ee45bc 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTERNAL_BASE_GRAPHICS_IMPLEMENTATION_H
 
 /*
- * Copyright (c) 2018 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
-
 // INTERNAL INCLUDES
+#include <dali/integration-api/adaptor-framework/egl-interface.h>
+#include <dali/internal/graphics/common/egl-image-extensions.h>
 #include <dali/internal/graphics/common/graphics-interface.h>
-#include <dali/internal/graphics/gles/gl-proxy-implementation.h>
 #include <dali/internal/graphics/gles/gl-implementation.h>
-#include <dali/integration-api/egl-interface.h>
-
+#include <dali/internal/graphics/gles/gl-proxy-implementation.h>
+#include <dali/internal/graphics/gles/egl-context-helper-implementation.h>
 #include <dali/internal/graphics/gles/egl-implementation.h>
-#include <dali/internal/graphics/common/egl-image-extensions.h>
 #include <dali/internal/graphics/gles/egl-sync-implementation.h>
 
-
 namespace Dali
 {
 
@@ -107,6 +104,12 @@ public:
   EglSyncImplementation& GetSyncImplementation();
 
   /**
+   * Gets the implementation of GlContextHelperAbstraction for EGL.
+   * @return The implementation of GlContextHelperAbstraction for EGL.
+   */
+  EglContextHelperImplementation& GetContextHelperImplementation();
+
+  /**
    * @copydoc Dali::Internal::Adaptor::GraphicsInterface::GetDepthBufferRequired()
    */
   Integration::DepthBufferAvailable& GetDepthBufferRequired();
@@ -138,6 +141,7 @@ private:
   std::unique_ptr< EglImplementation > mEglImplementation;      ///< EGL implementation
   std::unique_ptr< EglImageExtensions > mEglImageExtensions;    ///< EGL image extension
   std::unique_ptr< EglSyncImplementation > mEglSync;            ///< GlSyncAbstraction implementation for EGL
+  std::unique_ptr< EglContextHelperImplementation > mEglContextHelper; ///< GlContextHelperAbstraction implementation for EGL
 
   int mMultiSamplingLevel;                                      ///< The multiple sampling level
 };
@@ -148,4 +152,4 @@ private:
 
 } // namespace Dali
 
-#endif // __DALI_INTERNAL_BASE_GRAPHICS_IMPLEMENTATION_H__
+#endif // DALI_INTERNAL_BASE_GRAPHICS_IMPLEMENTATION_H