| 1 | // Copyright (C) 2017 The Qt Company Ltd. |
|---|---|
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | #include "qwlserverbufferintegration_p.h" |
| 5 | |
| 6 | QT_BEGIN_NAMESPACE |
| 7 | |
| 8 | namespace QtWayland { |
| 9 | |
| 10 | ServerBuffer::ServerBuffer(const QSize &size, ServerBuffer::Format format) |
| 11 | : m_size(size) |
| 12 | , m_format(format) |
| 13 | { } |
| 14 | ServerBuffer::~ServerBuffer() |
| 15 | { } |
| 16 | |
| 17 | |
| 18 | bool ServerBuffer::isYInverted() const |
| 19 | { |
| 20 | return false; |
| 21 | } |
| 22 | |
| 23 | QSize ServerBuffer::size() const |
| 24 | { return m_size; } |
| 25 | |
| 26 | ServerBuffer::Format ServerBuffer::format() const |
| 27 | { return m_format; } |
| 28 | |
| 29 | ServerBufferIntegration::ServerBufferIntegration() |
| 30 | { } |
| 31 | |
| 32 | ServerBufferIntegration::~ServerBufferIntegration() |
| 33 | { } |
| 34 | |
| 35 | bool ServerBufferIntegration::initializeHardware(QWaylandCompositor *compositor) |
| 36 | { |
| 37 | Q_UNUSED(compositor); |
| 38 | return true; |
| 39 | } |
| 40 | |
| 41 | } |
| 42 | |
| 43 | QT_END_NAMESPACE |
| 44 |
