1 #ifndef DALI_INTERNAL_WINDOWSYSTEM_DISPLAY_CONNECTION_IMPL_ANDROID_H
2 #define DALI_INTERNAL_WINDOWSYSTEM_DISPLAY_CONNECTION_IMPL_ANDROID_H
5 * Copyright (c) 2021 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>
26 class DisplayConnection;
33 * DisplayConnection implementation
35 class DisplayConnectionAndroid : public Dali::Internal::Adaptor::DisplayConnection
39 * @brief Default constructor
41 DisplayConnectionAndroid();
44 * @brief Create an initialized DisplayConnection.
46 * @return A handle to a newly allocated DisplayConnection resource.
48 static DisplayConnection* New();
52 * @copydoc Dali::DisplayConnection::GetDisplay
57 * @copydoc Dali::DisplayConnection::ConsumeEvents
62 * @copydoc Dali::DisplayConnection::InitializeGraphics
64 bool InitializeGraphics();
67 * @brief Sets the surface type
68 * @param[in] type The surface type
70 void SetSurfaceType(Dali::RenderSurfaceInterface::Type type);
73 * @brief Sets the graphics interface
74 * @param[in] graphics The graphics interface
76 void SetGraphicsInterface(GraphicsInterface& graphics);
82 virtual ~DisplayConnectionAndroid();
86 DisplayConnectionAndroid(const DisplayConnectionAndroid&);
89 DisplayConnectionAndroid& operator=(const DisplayConnectionAndroid& rhs);
92 EGLNativeDisplayType mDisplay; ///< EGL display for rendering
93 Dali::RenderSurfaceInterface::Type mSurfaceType; ///< The surface type
94 GraphicsInterface* mGraphics; ///< The graphics interface
97 } // namespace Adaptor
99 } // namespace Internal
103 #endif // DALI_INTERNAL_WINDOWSYSTEM_DISPLAY_CONNECTION_IMPL_ANDROID_H