Refactor EGLImage creation into a separate shared class

This commit is contained in:
Cameron Gutman committed 2023-09-26 21:03:19 -05:00
1 parent e143293e91
commit b01dfea343
7 files changed
+436 -385

No files matched your search

+5 -5
View File
@@ -3,6 +3,10 @@
#include "renderer.h"
#include "swframemapper.h"
#ifdef HAVE_EGL
#include "eglimagefactory.h"
#endif
#include <xf86drm.h>
#include <xf86drmMode.h>
@@ -105,11 +109,7 @@ private:
} m_SwFrame[k_SwFrameCount];
#ifdef HAVE_EGL
bool m_EGLExtDmaBuf;
PFNEGLCREATEIMAGEPROC m_eglCreateImage;
PFNEGLDESTROYIMAGEPROC m_eglDestroyImage;
PFNEGLCREATEIMAGEKHRPROC m_eglCreateImageKHR;
PFNEGLDESTROYIMAGEKHRPROC m_eglDestroyImageKHR;
EglImageFactory m_EglImageFactory;
#endif
};