Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/fbdev/fb_backend.h
Show All 21 Lines | |||||
22 | #include "platform.h" | 22 | #include "platform.h" | ||
23 | 23 | | |||
24 | #include <QImage> | 24 | #include <QImage> | ||
25 | #include <QSize> | 25 | #include <QSize> | ||
26 | 26 | | |||
27 | namespace KWin | 27 | namespace KWin | ||
28 | { | 28 | { | ||
29 | 29 | | |||
30 | class Udev; | ||||
31 | | ||||
30 | class KWIN_EXPORT FramebufferBackend : public Platform | 32 | class KWIN_EXPORT FramebufferBackend : public Platform | ||
31 | { | 33 | { | ||
32 | Q_OBJECT | 34 | Q_OBJECT | ||
33 | Q_INTERFACES(KWin::Platform) | 35 | Q_INTERFACES(KWin::Platform) | ||
34 | Q_PLUGIN_METADATA(IID "org.kde.kwin.Platform" FILE "fbdev.json") | 36 | Q_PLUGIN_METADATA(IID "org.kde.kwin.Platform" FILE "fbdev.json") | ||
35 | public: | 37 | public: | ||
36 | explicit FramebufferBackend(QObject *parent = nullptr); | 38 | explicit FramebufferBackend(QObject *parent = nullptr); | ||
37 | virtual ~FramebufferBackend(); | 39 | virtual ~FramebufferBackend(); | ||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | |||||
84 | 86 | | |||
85 | private: | 87 | private: | ||
86 | void openFrameBuffer(); | 88 | void openFrameBuffer(); | ||
87 | bool queryScreenInfo(); | 89 | bool queryScreenInfo(); | ||
88 | void initImageFormat(); | 90 | void initImageFormat(); | ||
89 | QSize m_resolution; | 91 | QSize m_resolution; | ||
90 | QSize m_physicalSize; | 92 | QSize m_physicalSize; | ||
91 | QByteArray m_id; | 93 | QByteArray m_id; | ||
94 | QScopedPointer<Udev> m_udev; | ||||
92 | struct Color { | 95 | struct Color { | ||
93 | quint32 offset; | 96 | quint32 offset; | ||
94 | quint32 length; | 97 | quint32 length; | ||
95 | }; | 98 | }; | ||
96 | Color m_red; | 99 | Color m_red; | ||
97 | Color m_green; | 100 | Color m_green; | ||
98 | Color m_blue; | 101 | Color m_blue; | ||
99 | Color m_alpha; | 102 | Color m_alpha; | ||
Show All 12 Lines |