4 * Copyright (c) 2021 Samsung Electronics Co., Ltd.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
21 #include <dali/internal/graphics/gles/egl-implementation.h>
22 #include <dali/internal/window-system/common/display-connection-impl.h>
23 #include <dali/public-api/object/base-object.h>
25 namespace Dali::Internal::Adaptor
28 * DisplayConnection implementation
30 class DisplayConnectionCocoa : public Dali::Internal::Adaptor::DisplayConnection
34 * @brief Default constructor
36 DisplayConnectionCocoa();
39 * @brief Create an initialized DisplayConnection.
41 * @return A handle to a newly allocated DisplayConnection resource.
43 static DisplayConnection* New();
47 * @copydoc Dali::DisplayConnection::GetDisplay
52 * @copydoc Dali::DisplayConnection::ConsumeEvents
57 * @copydoc Dali::DisplayConnection::InitializeEgl
59 bool InitializeEgl(EglInterface& egl);
62 * @copydoc Dali::DisplayConnection::InitializeGraphics
64 bool InitializeGraphics();
67 * @copydoc Dali::Internal::Adaptor::DisplayConnection::SetSurfaceType
69 void SetSurfaceType(Dali::RenderSurfaceInterface::Type type);
72 * @copydoc Dali::Internal::Adaptor::DisplayConnection::SetGraphicsInterface
74 void SetGraphicsInterface(GraphicsInterface& graphics);
80 virtual ~DisplayConnectionCocoa();
84 DisplayConnectionCocoa(const DisplayConnectionCocoa&) = delete;
87 DisplayConnectionCocoa& operator=(const DisplayConnectionCocoa& rhs) = delete;
90 GraphicsInterface* mGraphics; ///< The graphics interface
93 } // namespace Dali::Internal::Adaptor