Merge branch 'devel/master' into tizen
[platform/core/uifw/dali-adaptor.git] / dali / internal / graphics / macos / egl-image-extensions.cpp
1 /*
2  * Copyright (c) 2021 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 // CLASS HEADER
19 #include <dali/internal/graphics/common/egl-image-extensions.h>
20
21 // EXTERNAL INCLUDES
22 #include <dali/integration-api/debug.h>
23
24 // INTERNAL INCLUDES
25 #include <dali/internal/graphics/gles/egl-implementation.h>
26
27 namespace Dali::Internal::Adaptor
28 {
29 EglImageExtensions::EglImageExtensions(EglImplementation* eglImpl)
30 : mEglImplementation(eglImpl),
31   mImageKHRInitialized(false),
32   mImageKHRInitializeFailed(false)
33 {
34   DALI_ASSERT_ALWAYS(eglImpl && "EGL Implementation not instantiated");
35 }
36
37 EglImageExtensions::~EglImageExtensions()
38 {
39 }
40
41 void* EglImageExtensions::CreateImageKHR(EGLClientBuffer clientBuffer)
42 {
43   DALI_LOG_ERROR(" does not support CreateImageKHR\n");
44   return NULL;
45 }
46
47 void EglImageExtensions::DestroyImageKHR(void* eglImageKHR)
48 {
49   DALI_LOG_ERROR(" does not support DestroyImageKHR\n");
50 }
51
52 void EglImageExtensions::TargetTextureKHR(void* eglImageKHR)
53 {
54   DALI_LOG_ERROR(" does not support TargetTextureKHR\n");
55 }
56
57 void EglImageExtensions::InitializeEglImageKHR()
58 {
59   DALI_LOG_ERROR(" does not support InitializeEglImageKHR\n");
60 }
61
62 } // namespace Dali::Internal::Adaptor