From 11fc7a5422ccb963d8c87fa66adc8367b84fb98b Mon Sep 17 00:00:00 2001 From: Vitaliy Zarubin Date: Thu, 9 Nov 2023 13:46:21 +0300 Subject: [PATCH] [camera] Remove EGLDestroyImage --- .../include/camera_aurora/texture_camera_egl_helper.h | 1 - .../camera_aurora/aurora/texture_camera_egl_helper.cpp | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/packages/camera/camera_aurora/aurora/include/camera_aurora/texture_camera_egl_helper.h b/packages/camera/camera_aurora/aurora/include/camera_aurora/texture_camera_egl_helper.h index 8281483..9d58cd2 100644 --- a/packages/camera/camera_aurora/aurora/include/camera_aurora/texture_camera_egl_helper.h +++ b/packages/camera/camera_aurora/aurora/include/camera_aurora/texture_camera_egl_helper.h @@ -15,7 +15,6 @@ class TextureCameraEGLHelper public: static void EGLInit(); static EGLImageKHR EGLCreateImage(const void* handle, void* egl_display, void* egl_contex); - static void EGLDestroyImage(EGLImageKHR image); }; #endif /* TEXTURE_CAMERA_EGL_HELPER_H */ diff --git a/packages/camera/camera_aurora/aurora/texture_camera_egl_helper.cpp b/packages/camera/camera_aurora/aurora/texture_camera_egl_helper.cpp index 27cadb6..319258d 100644 --- a/packages/camera/camera_aurora/aurora/texture_camera_egl_helper.cpp +++ b/packages/camera/camera_aurora/aurora/texture_camera_egl_helper.cpp @@ -8,14 +8,11 @@ #include static PFNEGLCREATEIMAGEKHRPROC eglCreateImageKHR; -static PFNEGLDESTROYIMAGEKHRPROC eglDestroyImageKHR; void TextureCameraEGLHelper::EGLInit() { eglCreateImageKHR = reinterpret_cast( eglGetProcAddress("eglCreateImageKHR")); - eglDestroyImageKHR = reinterpret_cast( - eglGetProcAddress("eglDestroyImageKHR")); } EGLImageKHR TextureCameraEGLHelper::EGLCreateImage(const void *handle, void *egl_display, void *egl_context) @@ -28,10 +25,3 @@ EGLImageKHR TextureCameraEGLHelper::EGLCreateImage(const void *handle, void *egl (EGLClientBuffer) handle, eglImgAttrs); } - -void TextureCameraEGLHelper::EGLDestroyImage(EGLImageKHR image) -{ - auto display = PlatformMethods::GetEGLDisplay(); - - eglDestroyImageKHR(display, image); -}