4 * Copyright (c) 2020 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/window-system/common/display-connection-impl.h>
22 #include <dali/public-api/object/base-object.h>
23 #include <dali/internal/graphics/gles/egl-implementation.h>
25 namespace Dali::Internal::Adaptor
29 * DisplayConnection implementation
31 class DisplayConnectionCocoa : public Dali::Internal::Adaptor::DisplayConnection
36 * @brief Default constructor
38 DisplayConnectionCocoa();
41 * @brief Create an initialized DisplayConnection.
43 * @return A handle to a newly allocated DisplayConnection resource.
45 static DisplayConnection* New();
50 * @copydoc Dali::DisplayConnection::GetDisplay
55 * @copydoc Dali::DisplayConnection::ConsumeEvents
60 * @copydoc Dali::DisplayConnection::InitializeEgl
62 bool InitializeEgl(EglInterface& egl);
65 * @copydoc Dali::DisplayConnection::InitializeGraphics
67 bool InitializeGraphics();
70 * @copydoc Dali::Internal::Adaptor::DisplayConnection::SetSurfaceType
72 void SetSurfaceType( Dali::RenderSurfaceInterface::Type type );
75 * @copydoc Dali::Internal::Adaptor::DisplayConnection::SetGraphicsInterface
77 void SetGraphicsInterface( GraphicsInterface& graphics );
84 virtual ~DisplayConnectionCocoa();
89 DisplayConnectionCocoa(const DisplayConnectionCocoa&) = delete;
92 DisplayConnectionCocoa& operator=(const DisplayConnectionCocoa& rhs) = delete;
96 GraphicsInterface *mGraphics; ///< The graphics interface
99 } // namespace Dali::Internal::Adaptor