#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
*/
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::GetDpi with native window
+ * @copydoc Dali::DisplayConnection::InitializeGraphics
*/
- static void GetDpi(Any nativeWindow, unsigned int& dpiHorizontal, unsigned int& dpiVertical);
+ virtual bool InitializeGraphics() = 0;
/**
- * @copydoc Dali::DisplayConnection::ConsumeEvents
+ * Sets the render surface type
+ * @param[in] type The render surface type
*/
- virtual void ConsumeEvents() = 0;
+ virtual void SetSurfaceType( Dali::RenderSurfaceInterface::Type type ) = 0;
/**
- * @copydoc Dali::DisplayConnection::InitializeEgl
+ * Sets the graphics interface
+ * @param[in] graphics The graphics interface
*/
- virtual bool InitializeEgl(EglInterface& egl) = 0;
-
- virtual void SetSurfaceType( RenderSurface::Type type ) = 0;
+ virtual void SetGraphicsInterface( GraphicsInterface& graphics ) = 0;
public: