1 #ifndef DALI_INTERNAL_ADAPTOR_EGL_CONTEXT_HELPER_IMPLEMENTATION_H
2 #define DALI_INTERNAL_ADAPTOR_EGL_CONTEXT_HELPER_IMPLEMENTATION_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.
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>
39 class EglImplementation;
42 * EglContextHelperImplementation is a concrete implementation for GlContextHelperAbstraction.
43 * It provides helper functions to access EGL context APIs
45 class EglContextHelperImplementation : public Integration::GlContextHelperAbstraction
51 EglContextHelperImplementation();
56 virtual ~EglContextHelperImplementation() = default;
59 * Initialize with the Egl implementation.
60 * @param[in] impl The EGL implementation (to access the EGL context)
62 void Initialize(EglImplementation* impl);
65 * @copydoc Dali::Integration::GlContextHelperAbstraction::MakeSurfacelessContextCurrent()
67 void MakeSurfacelessContextCurrent() override;
70 * @copydoc Dali::Integration::GlContextHelperAbstraction::MakeContextNull()
72 void MakeContextNull() override;
75 * @copydoc Dali::Integration::GlContextHelperAbstraction::WaitClient()
77 void WaitClient() override;
80 EglImplementation* mEglImplementation; ///< Egl implementation (to access the EGL context)
83 } // namespace Adaptor
84 } // namespace Internal
87 #endif // DALI_INTERNAL_ADAPTOR_EGL_CONTEXT_HELPER_IMPLEMENTATION_H