[dali_2.3.23] Merge branch 'devel/master'
[platform/core/uifw/dali-adaptor.git] / dali / internal / graphics / windows-gl / 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
28 {
29 namespace Internal
30 {
31 namespace Adaptor
32 {
33 EglImageExtensions::EglImageExtensions(EglImplementation* eglImpl)
34 : mEglImplementation(eglImpl),
35   mImageKHRInitialized(false),
36   mImageKHRInitializeFailed(false)
37 {
38   DALI_ASSERT_ALWAYS(eglImpl && "EGL Implementation not instantiated");
39 }
40
41 EglImageExtensions::~EglImageExtensions()
42 {
43 }
44
45 void* EglImageExtensions::CreateImageKHR(EGLClientBuffer clientBuffer)
46 {
47   DALI_LOG_ERROR(" does not support CreateImageKHR\n");
48   return NULL;
49 }
50
51 void EglImageExtensions::DestroyImageKHR(void* eglImageKHR)
52 {
53   DALI_LOG_ERROR(" does not support DestroyImageKHR\n");
54 }
55
56 void EglImageExtensions::TargetTextureKHR(void* eglImageKHR)
57 {
58   DALI_LOG_ERROR(" does not support TargetTextureKHR\n");
59 }
60
61 void EglImageExtensions::InitializeEglImageKHR()
62 {
63   DALI_LOG_ERROR(" does not support InitializeEglImageKHR\n");
64 }
65
66 } // namespace Adaptor
67
68 } // namespace Internal
69
70 } // namespace Dali