summaryrefslogtreecommitdiff
path: root/src/compositor/hardware_integration/qwlserverbufferintegration.cpp
blob: e08af020650c1ffa6c039b076a6a9d0b69bcf7af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#include "qwlserverbufferintegration_p.h"

QT_BEGIN_NAMESPACE

namespace QtWayland {

ServerBuffer::ServerBuffer(const QSize &size, ServerBuffer::Format format)
    : m_size(size)
    , m_format(format)
{ }
ServerBuffer::~ServerBuffer()
{ }


bool ServerBuffer::isYInverted() const
{
    return false;
}

QSize ServerBuffer::size() const
{ return m_size; }

ServerBuffer::Format ServerBuffer::format() const
{ return m_format; }

ServerBufferIntegration::ServerBufferIntegration()
{ }

ServerBufferIntegration::~ServerBufferIntegration()
{ }

bool ServerBufferIntegration::initializeHardware(QWaylandCompositor *compositor)
{
    Q_UNUSED(compositor);
    return true;
}

}

QT_END_NAMESPACE