1 #ifndef DALI_INTERNAL_WINDOWSYSTEM_ECOREWL_DISPLAY_CONNECTION_IMPL_ECORE_WL_H
2 #define DALI_INTERNAL_WINDOWSYSTEM_ECOREWL_DISPLAY_CONNECTION_IMPL_ECORE_WL_H
5 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <wayland-egl.h>
23 #include <Ecore_Wayland.h>
24 #include <dali/integration-api/wayland/wl-types.h>
27 #include <dali/internal/window-system/common/display-connection-impl.h>
28 #include <dali/public-api/object/base-object.h>
29 #include <dali/internal/graphics/gles20/egl-implementation.h>
35 class DisplayConnection;
45 * DisplayConnection implementation
47 class DisplayConnectionEcoreWl : public Dali::Internal::Adaptor::DisplayConnection
52 * @brief Default constructor
54 DisplayConnectionEcoreWl();
57 * @brief Create an initialized DisplayConnection.
59 * @return A handle to a newly allocated DisplayConnection resource.
61 static DisplayConnection* New();
66 * @copydoc Dali::DisplayConnection::GetDisplay
71 * @copydoc Dali::DisplayConnection::GetDpi
73 static void GetDpi(unsigned int& dpiHorizontal, unsigned int& dpiVertical);
76 * @copydoc Dali::DisplayConnection::ConsumeEvents
81 * @copydoc Dali::DisplayConnection::InitializeEgl
83 bool InitializeEgl(EglInterface& egl);
86 * @brief Sets surface type
88 void SetSurfaceType( RenderSurface::Type type );
97 virtual ~DisplayConnectionEcoreWl();
102 * @brief Gets display connection for native surface
104 EGLNativeDisplayType GetNativeDisplay();
107 * @brief Release display connection for native surface
109 void ReleaseNativeDisplay();
112 DisplayConnectionEcoreWl(const DisplayConnectionEcoreWl&);
115 DisplayConnectionEcoreWl& operator=(const DisplayConnectionEcoreWl& rhs);
118 EGLNativeDisplayType mDisplay; ///< Wayland-display for rendering
119 RenderSurface::Type mSurfaceType;
122 } // namespace Adaptor
124 } // namespace internal
128 #endif // DALI_INTERNAL_WINDOWSYSTEM_ECOREWL_DISPLAY_CONNECTION_IMPL_ECORE_WL_H