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 <dali/internal/window-system/common/display-connection-impl.h>
27 class DisplayConnection;
36 * DisplayConnection implementation
38 class DisplayConnectionEcoreWl : public Dali::Internal::Adaptor::DisplayConnection
43 * @brief Default constructor
45 DisplayConnectionEcoreWl();
48 * @brief Create an initialized DisplayConnection.
50 * @return A handle to a newly allocated DisplayConnection resource.
52 static DisplayConnection* New();
57 * @copydoc Dali::DisplayConnection::GetDisplay
62 * @copydoc Dali::DisplayConnection::ConsumeEvents
67 * @copydoc Dali::DisplayConnection::InitializeGraphics
69 bool InitializeGraphics();
72 * @brief Sets the surface type
73 * @param[in] type The surface type
75 void SetSurfaceType( Integration::RenderSurface::Type type );
78 * @brief Sets the graphics interface
79 * @param[in] graphics The graphics interface
81 void SetGraphicsInterface( GraphicsInterface& graphics );
88 virtual ~DisplayConnectionEcoreWl();
93 * @brief Gets display connection for native surface
95 EGLNativeDisplayType GetNativeDisplay();
98 * @brief Release display connection for native surface
100 void ReleaseNativeDisplay();
103 DisplayConnectionEcoreWl(const DisplayConnectionEcoreWl&);
106 DisplayConnectionEcoreWl& operator=(const DisplayConnectionEcoreWl& rhs);
109 EGLNativeDisplayType mDisplay; ///< Wayland-display for rendering
110 Integration::RenderSurface::Type mSurfaceType; ///< The surface type
111 GraphicsInterface* mGraphics; ///< The graphics interface
114 } // namespace Adaptor
116 } // namespace internal
120 #endif // DALI_INTERNAL_WINDOWSYSTEM_ECOREWL_DISPLAY_CONNECTION_IMPL_ECORE_WL_H