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