diff --git a/src/plugins/platforms/drm/drm_gpu.cpp b/src/plugins/platforms/drm/drm_gpu.cpp index 103b980030..6c070ba3ec 100644 --- a/src/plugins/platforms/drm/drm_gpu.cpp +++ b/src/plugins/platforms/drm/drm_gpu.cpp @@ -438,4 +438,14 @@ void DrmGpu::removeOutput(DrmOutput *output) } } +AbstractEglBackend *DrmGpu::eglBackend() const +{ + return m_eglBackend; +} + +void DrmGpu::setEglBackend(AbstractEglBackend *eglBackend) +{ + m_eglBackend = eglBackend; +} + } diff --git a/src/plugins/platforms/drm/drm_gpu.h b/src/plugins/platforms/drm/drm_gpu.h index b1a6facb00..db0489842d 100644 --- a/src/plugins/platforms/drm/drm_gpu.h +++ b/src/plugins/platforms/drm/drm_gpu.h @@ -71,9 +71,8 @@ public: return m_eglDisplay; } - AbstractEglBackend *eglBackend() { - return m_eglBackend; - } + AbstractEglBackend *eglBackend() const; + void setEglBackend(AbstractEglBackend *eglBackend); void setGbmDevice(gbm_device *d) { m_gbmDevice = d; @@ -83,10 +82,6 @@ public: m_eglDisplay = display; } - void setEglBackend(AbstractEglBackend *eglBackend) { - m_eglBackend = eglBackend; - } - /** * Returns the clock from which presentation timestamps are sourced. The returned value * can be either CLOCK_MONOTONIC or CLOCK_REALTIME.