24void QWaylandBrcmEglIntegration::wlDisplayHandleGlobal(
void *data,
struct ::wl_registry *registry, uint32_t id,
const QString &interface, uint32_t version)
29 integration->m_waylandBrcm =
static_cast<
struct qt_brcm *>(wl_registry_bind(registry, id, &qt_brcm_interface, 1));
45 m_display = waylandDisplay;
46 m_waylandDisplay = waylandDisplay->wl_display();
47 waylandDisplay->addRegistryListener(wlDisplayHandleGlobal,
this);
49 m_eglDisplay = eglGetDisplay((EGLNativeDisplayType)EGL_DEFAULT_DISPLAY);
50 if (m_eglDisplay == NULL) {
51 qWarning(
"EGL not available");
53 if (!eglInitialize(m_eglDisplay, &major, &minor)) {
54 qWarning(
"failed to initialize EGL display");
58 eglFlushBRCM = (PFNEGLFLUSHBRCMPROC)eglGetProcAddress(
"eglFlushBRCM");
60 qWarning(
"failed to resolve eglFlushBRCM, performance will suffer");
63 eglCreateGlobalImageBRCM = (PFNEGLCREATEGLOBALIMAGEBRCMPROC)eglGetProcAddress(
"eglCreateGlobalImageBRCM");
64 if (!eglCreateGlobalImageBRCM) {
65 qWarning(
"failed to resolve eglCreateGlobalImageBRCM");
69 eglDestroyGlobalImageBRCM = (PFNEGLDESTROYGLOBALIMAGEBRCMPROC)eglGetProcAddress(
"eglDestroyGlobalImageBRCM");
70 if (!eglDestroyGlobalImageBRCM) {
71 qWarning(
"failed to resolve eglDestroyGlobalImageBRCM");
EGLConfig eglConfig() const
EGLContext eglContext() const