diff options
author | Jorgen Lind <jorgen.lind@digia.com> | 2014-01-03 17:14:08 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-03 17:38:53 +0100 |
commit | 76bb668aee8be5e8e1f022c4d09603d957e8e7e7 (patch) | |
tree | 65d61370b67fdafce74e92e19a18e6ec27ec3c5b /src/compositor/hardware_integration | |
parent | 4df5d7613a035178bacbdd29569bb7a3453586f1 (diff) |
Update the Compositor side ServerBufferIntegration
so its possible to ask for supported formats and make the
createServerBuffer function pure virtual
Change-Id: Idf07b993ea54927a51d43ef5e3a11fa1639dc1fe
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/compositor/hardware_integration')
-rw-r--r-- | src/compositor/hardware_integration/qwaylandserverbufferintegration.cpp | 7 | ||||
-rw-r--r-- | src/compositor/hardware_integration/qwaylandserverbufferintegration.h | 3 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/compositor/hardware_integration/qwaylandserverbufferintegration.cpp b/src/compositor/hardware_integration/qwaylandserverbufferintegration.cpp index 8c742a847..520f9307b 100644 --- a/src/compositor/hardware_integration/qwaylandserverbufferintegration.cpp +++ b/src/compositor/hardware_integration/qwaylandserverbufferintegration.cpp @@ -72,11 +72,4 @@ void QWaylandServerBufferIntegration::initializeHardware(QWaylandCompositor *com Q_UNUSED(compositor); } -QWaylandServerBuffer *QWaylandServerBufferIntegration::createServerBuffer(const QSize &size, QWaylandServerBuffer::Format format) -{ - Q_UNUSED(size); - Q_UNUSED(format); - return 0; -} - QT_END_NAMESPACE diff --git a/src/compositor/hardware_integration/qwaylandserverbufferintegration.h b/src/compositor/hardware_integration/qwaylandserverbufferintegration.h index 35614d513..ae35265f9 100644 --- a/src/compositor/hardware_integration/qwaylandserverbufferintegration.h +++ b/src/compositor/hardware_integration/qwaylandserverbufferintegration.h @@ -89,7 +89,8 @@ public: virtual void initializeHardware(QWaylandCompositor *); - virtual QWaylandServerBuffer *createServerBuffer(const QSize &size, QWaylandServerBuffer::Format format); + virtual bool supportsFormat(QWaylandServerBuffer::Format format) const = 0; + virtual QWaylandServerBuffer *createServerBuffer(const QSize &size, QWaylandServerBuffer::Format format) = 0; }; QT_END_NAMESPACE |