From bc22b9e59e85a51c16fb8eb384328777f8145fe8 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 20 May 2021 16:25:13 +0300 Subject: [PATCH] Fix build --- src/plugins/platforms/drm/drm_gpu.cpp | 10 ++++++++++ src/plugins/platforms/drm/drm_gpu.h | 9 ++------- 2 files changed, 12 insertions(+), 7 deletions(-) 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.