feature: add ohos build
Change-Id: I297770ae07d71987c74b18c475f28b1c5d734ce7
This commit is contained in:
@@ -85,6 +85,7 @@ static const struct {
|
||||
{ _EGL_PLATFORM_SURFACELESS, "surfaceless" },
|
||||
{ _EGL_PLATFORM_DEVICE, "device" },
|
||||
{ _EGL_PLATFORM_WINDOWS, "windows" },
|
||||
{ _EGL_PLATFORM_OHOS, "openharmony" },
|
||||
};
|
||||
|
||||
|
||||
@@ -608,6 +609,22 @@ _eglGetAndroidDisplay(void *native_display,
|
||||
}
|
||||
#endif /* HAVE_ANDROID_PLATFORM */
|
||||
|
||||
#ifdef HAVE_OHOS_PLATFORM
|
||||
_EGLDisplay*
|
||||
_eglGetOHOSDisplay(void *native_display,
|
||||
const EGLAttrib *attrib_list)
|
||||
{
|
||||
/* This platform recognizes no display attributes. */
|
||||
if (attrib_list != NULL && attrib_list[0] != EGL_NONE) {
|
||||
_eglError(EGL_BAD_ATTRIBUTE, "eglGetPlatformDisplay");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return _eglFindDisplay(_EGL_PLATFORM_OHOS, native_display,
|
||||
attrib_list);
|
||||
}
|
||||
#endif /* HAVE_OHOS_PLATFORM */
|
||||
|
||||
_EGLDisplay*
|
||||
_eglGetDeviceDisplay(void *native_display,
|
||||
const EGLAttrib *attrib_list)
|
||||
|
Reference in New Issue
Block a user