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
6QT_BEGIN_NAMESPACE
7
8namespace QtWayland {
9
10ServerBuffer::ServerBuffer(const QSize &size, ServerBuffer::Format format)
11 : m_size(size)
12 , m_format(format)
13{ }
14ServerBuffer::~ServerBuffer()
15{ }
16
17
18bool ServerBuffer::isYInverted() const
19{
20 return false;
21}
22
23QSize ServerBuffer::size() const
24{ return m_size; }
25
26ServerBuffer::Format ServerBuffer::format() const
27{ return m_format; }
28
29ServerBufferIntegration::ServerBufferIntegration()
30{ }
31
32ServerBufferIntegration::~ServerBufferIntegration()
33{ }
34
35bool ServerBufferIntegration::initializeHardware(QWaylandCompositor *compositor)
36{
37 Q_UNUSED(compositor);
38 return true;
39}
40
41}
42
43QT_END_NAMESPACE
44

source code of qtwayland/src/compositor/hardware_integration/qwlserverbufferintegration.cpp