summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wayland/hardwareintegration/qwaylandserverbufferintegration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/wayland/hardwareintegration/qwaylandserverbufferintegration.cpp')
-rw-r--r--src/plugins/platforms/wayland/hardwareintegration/qwaylandserverbufferintegration.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/plugins/platforms/wayland/hardwareintegration/qwaylandserverbufferintegration.cpp b/src/plugins/platforms/wayland/hardwareintegration/qwaylandserverbufferintegration.cpp
index 66fec00ea2b..9b4174d3191 100644
--- a/src/plugins/platforms/wayland/hardwareintegration/qwaylandserverbufferintegration.cpp
+++ b/src/plugins/platforms/wayland/hardwareintegration/qwaylandserverbufferintegration.cpp
@@ -1,5 +1,31 @@
#include "qwaylandserverbufferintegration.h"
+QT_BEGIN_NAMESPACE
+
+QWaylandServerBuffer::QWaylandServerBuffer()
+ : m_user_data(0)
+{
+}
+
+QWaylandServerBuffer::~QWaylandServerBuffer()
+{
+}
+
+void QWaylandServerBuffer::setUserData(void *userData)
+{
+ m_user_data = userData;
+}
+
+void *QWaylandServerBuffer::userData() const
+{
+ return m_user_data;
+}
+
+QWaylandServerBuffer::Format QWaylandServerBuffer::format() const
+{
+ return m_format;
+}
+
QWaylandServerBufferIntegration::QWaylandServerBufferIntegration()
{
}
@@ -7,3 +33,4 @@ QWaylandServerBufferIntegration::~QWaylandServerBufferIntegration()
{
}
+QT_END_NAMESPACE