1 #ifndef DALI_INTERNAL_ADAPTOR_EGL_CONTEXT_HELPER_IMPLEMENTATION_H
2 #define DALI_INTERNAL_ADAPTOR_EGL_CONTEXT_HELPER_IMPLEMENTATION_H
5 * Copyright (c) 2020 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.
21 #include <dali/internal/graphics/common/egl-include.h>
23 #include <dali/integration-api/gl-context-helper-abstraction.h>
26 #include <dali/public-api/dali-adaptor-common.h>
41 class EglImplementation;
44 * EglContextHelperImplementation is a concrete implementation for GlContextHelperAbstraction.
45 * It provides helper functions to access EGL context APIs
47 class EglContextHelperImplementation : public Integration::GlContextHelperAbstraction
53 EglContextHelperImplementation();
58 virtual ~EglContextHelperImplementation() = default;
61 * Initialize with the Egl implementation.
62 * @param[in] impl The EGL implementation (to access the EGL context)
64 void Initialize( EglImplementation* impl );
67 * @copydoc Dali::Integration::GlContextHelperAbstraction::MakeSurfacelessContextCurrent()
69 virtual void MakeSurfacelessContextCurrent() override;
72 * @copydoc Dali::Integration::GlContextHelperAbstraction::MakeContextNull()
74 virtual void MakeContextNull() override;
77 * @copydoc Dali::Integration::GlContextHelperAbstraction::WaitClient()
79 virtual void WaitClient() override;
83 EglImplementation* mEglImplementation; ///< Egl implementation (to access the EGL context)
86 } // namespace Adaptor
87 } // namespace Internal
90 #endif // DALI_INTERNAL_ADAPTOR_EGL_CONTEXT_HELPER_IMPLEMENTATION_H