2 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 #include <dali/internal/graphics/common/egl-image-extensions.h>
23 #include <dali/integration-api/debug.h>
26 #include <dali/internal/graphics/gles/egl-implementation.h>
28 namespace Dali::Internal::Adaptor
31 EglImageExtensions::EglImageExtensions(EglImplementation* eglImpl)
32 : mEglImplementation(eglImpl),
33 mImageKHRInitialized(false),
34 mImageKHRInitializeFailed(false)
36 DALI_ASSERT_ALWAYS( eglImpl && "EGL Implementation not instantiated" );
39 EglImageExtensions::~EglImageExtensions()
43 void* EglImageExtensions::CreateImageKHR(EGLClientBuffer clientBuffer)
45 DALI_LOG_ERROR(" does not support CreateImageKHR\n");
49 void EglImageExtensions::DestroyImageKHR(void* eglImageKHR)
51 DALI_LOG_ERROR(" does not support DestroyImageKHR\n");
54 void EglImageExtensions::TargetTextureKHR(void* eglImageKHR)
56 DALI_LOG_ERROR(" does not support TargetTextureKHR\n");
59 void EglImageExtensions::InitializeEglImageKHR()
61 DALI_LOG_ERROR(" does not support InitializeEglImageKHR\n");
64 } // namespace Dali::Internal::Adaptor