1 #ifndef __DALI_INTERNAL_ECORE_WAYLAND_DIPLAY_CONNECTION_H__
2 #define __DALI_INTERNAL_ECORE_WAYLAND_DIPLAY_CONNECTION_H__
5 * Copyright (c) 2015 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>
27 #include <base/display-connection.h>
28 #include <dali/public-api/object/base-object.h>
29 #include <gl/egl-implementation.h>
35 class DisplayConnection;
44 * DisplayConnection implementation
46 class DisplayConnection : public Dali::BaseObject
51 * @brief Default constructor
56 * @brief Create an initialized DisplayConnection.
58 * @return A handle to a newly allocated DisplayConnection resource.
60 static DisplayConnection* New();
65 * @copydoc Dali::DisplayConnection::GetDisplay
70 * @copydoc Dali::DisplayConnection::GetDpi
72 static void GetDpi(unsigned int& dpiHorizontal, unsigned int& dpiVertical);
75 * @copydoc Dali::DisplayConnection::ConsumeEvents
80 * @copydoc Dali::DisplayConnection::InitializeEgl
82 bool InitializeEgl(EglInterface& egl);
85 * @brief Sets surface type
87 void SetSurfaceType( RenderSurface::Type type );
94 virtual ~DisplayConnection();
99 * @brief Gets display connection for native surface
101 EGLNativeDisplayType GetNativeDisplay();
104 * @brief Release display connection for native surface
106 void ReleaseNativeDisplay();
109 DisplayConnection(const DisplayConnection&);
112 DisplayConnection& operator=(const DisplayConnection& rhs);
115 EGLNativeDisplayType mDisplay; ///< Wayland-display for rendering
116 RenderSurface::Type mSurfaceType;
119 } // namespace Adaptor
121 } // namespace internal
125 #endif // __DALI_INTERNAL_ECORE_X_DIPLAY_CONNECTION_H__