Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/hwcomposer/screens_hwcomposer.h
Show All 13 Lines | |||||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #ifndef KWIN_SCREENS_HWCOMPOSER_H | 20 | #ifndef KWIN_SCREENS_HWCOMPOSER_H | ||
21 | #define KWIN_SCREENS_HWCOMPOSER_H | 21 | #define KWIN_SCREENS_HWCOMPOSER_H | ||
22 | #include "screens.h" | 22 | #include "outputscreens.h" | ||
23 | 23 | | |||
24 | namespace KWin | 24 | namespace KWin | ||
25 | { | 25 | { | ||
26 | class HwcomposerBackend; | 26 | class HwcomposerBackend; | ||
27 | 27 | | |||
28 | class HwcomposerScreens : public BasicScreens | 28 | class HwcomposerScreens : public OutputScreens | ||
29 | { | 29 | { | ||
30 | Q_OBJECT | 30 | Q_OBJECT | ||
31 | public: | 31 | public: | ||
32 | HwcomposerScreens(HwcomposerBackend *backend, QObject *parent = nullptr); | 32 | HwcomposerScreens(HwcomposerBackend *backend, QObject *parent = nullptr); | ||
33 | virtual ~HwcomposerScreens(); | 33 | virtual ~HwcomposerScreens() = default; | ||
34 | float refreshRate(int screen) const override; | | |||
35 | QSizeF physicalSize(int screen) const override; | | |||
36 | 34 | | |||
37 | private: | 35 | private: | ||
38 | HwcomposerBackend *m_backend; | 36 | HwcomposerBackend *m_backend; | ||
39 | }; | 37 | }; | ||
40 | 38 | | |||
41 | } | 39 | } | ||
42 | 40 | | |||
43 | #endif | 41 | #endif |