Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qlinuxfbdrmscreen.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QLINUXFBDRMSCREEN_H
6#define QLINUXFBDRMSCREEN_H
7
8#include <QtFbSupport/private/qfbscreen_p.h>
9
10QT_BEGIN_NAMESPACE
11
12class QKmsScreenConfig;
13class QLinuxFbDevice;
14
16{
18public:
21
22 bool initialize() override;
23 QRegion doRedraw() override;
24 QPixmap grabWindow(WId wid, int x, int y, int width, int height) const override;
25
26private:
27 QKmsScreenConfig *m_screenConfig;
28 QLinuxFbDevice *m_device;
29};
30
31QT_END_NAMESPACE
32
33#endif // QLINUXFBDRMSCREEN_H
QPlatformScreen * createScreen(const QKmsOutput &output) override
Output * output(int idx)
int outputCount() const
QLinuxFbDevice(QKmsScreenConfig *screenConfig)
void close() override
bool open() override
void * nativeDisplay() const override
void swapBuffers(Output *output)
void registerScreen(QPlatformScreen *screen, bool isPrimary, const QPoint &virtualPos, const QList< QPlatformScreen * > &virtualSiblings) override
bool initialize() override
QPixmap grabWindow(WId wid, int x, int y, int width, int height) const override
This function is called when Qt needs to be able to grab the content of a window.
QRegion doRedraw() override
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")
static uint32_t bppForDrmFormat(uint32_t drmFormat)
static QT_BEGIN_NAMESPACE const int BUFFER_COUNT
static QImage::Format formatForDrmFormat(uint32_t drmFormat)
static int depthForDrmFormat(uint32_t drmFormat)
#define MAP_FAILED
QRegion dirty[BUFFER_COUNT]
Framebuffer fb[BUFFER_COUNT]