Support for the macOS platform
[platform/core/uifw/dali-adaptor.git] / dali / internal / graphics / macos / egl-image-extensions.cpp
1 /*
2  * Copyright (c) 2020 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
19 // CLASS HEADER
20 #include <dali/internal/graphics/common/egl-image-extensions.h>
21
22 // EXTERNAL INCLUDES
23 #include <dali/integration-api/debug.h>
24
25 // INTERNAL INCLUDES
26 #include <dali/internal/graphics/gles/egl-implementation.h>
27
28 namespace Dali::Internal::Adaptor
29 {
30
31 EglImageExtensions::EglImageExtensions(EglImplementation* eglImpl)
32 : mEglImplementation(eglImpl),
33   mImageKHRInitialized(false),
34   mImageKHRInitializeFailed(false)
35 {
36   DALI_ASSERT_ALWAYS( eglImpl && "EGL Implementation not instantiated" );
37 }
38
39 EglImageExtensions::~EglImageExtensions()
40 {
41 }
42
43 void* EglImageExtensions::CreateImageKHR(EGLClientBuffer clientBuffer)
44 {
45   DALI_LOG_ERROR(" does not support CreateImageKHR\n");
46   return NULL;
47 }
48
49 void EglImageExtensions::DestroyImageKHR(void* eglImageKHR)
50 {
51   DALI_LOG_ERROR(" does not support DestroyImageKHR\n");
52 }
53
54 void EglImageExtensions::TargetTextureKHR(void* eglImageKHR)
55 {
56   DALI_LOG_ERROR(" does not support TargetTextureKHR\n");
57 }
58
59 void EglImageExtensions::InitializeEglImageKHR()
60 {
61   DALI_LOG_ERROR(" does not support InitializeEglImageKHR\n");
62 }
63
64 } // namespace Dali::Internal::Adaptor