1 /* 2 * Copyright (c) 2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef RENDER_SERVICE_BASE_SRC_PLATFORM_IOS_RENDER_CONTEXT_IOS_H 17 #define RENDER_SERVICE_BASE_SRC_PLATFORM_IOS_RENDER_CONTEXT_IOS_H 18 19 // For temporary ios build 20 typedef void *EGLConfig; 21 typedef void *EGLSurface; 22 typedef void *EGLContext; 23 typedef unsigned int EGLBoolean; 24 typedef void *EGLDisplay; 25 26 typedef void *EGLNativeDisplayType; 27 typedef void *EGLNativePixmapType; 28 typedef void *EGLNativeWindowType; 29 typedef long long EGLint; 30 31 #if defined(__cplusplus) 32 #define EGL_CAST(type, value) (static_cast<type>(value)) 33 #else 34 #define EGL_CAST(type, value) ((type)(value)) 35 #endif 36 #define EGL_NO_CONTEXT EGL_CAST(EGLContext, 0) 37 #define EGL_NO_DISPLAY EGL_CAST(EGLDisplay, 0) 38 #define EGL_NO_SURFACE EGL_CAST(EGLSurface, 0) 39 #define EGL_UNKNOWN EGL_CAST(EGLint, -1) 40 41 #endif // RENDER_SERVICE_BASE_SRC_PLATFORM_IOS_RENDER_CONTEXT_IOS_H 42