Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_output.h
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 56 | public: | |||
---|---|---|---|---|---|
71 | bool blank(); | 71 | bool blank(); | ||
72 | 72 | | |||
73 | /** | 73 | /** | ||
74 | * This sets the changes and tests them against the DRM output | 74 | * This sets the changes and tests them against the DRM output | ||
75 | */ | 75 | */ | ||
76 | void setChanges(KWayland::Server::OutputChangeSet *changeset); | 76 | void setChanges(KWayland::Server::OutputChangeSet *changeset); | ||
77 | bool commitChanges(); | 77 | bool commitChanges(); | ||
78 | 78 | | |||
79 | QSize size() const; | 79 | QSize pixelSize() const; | ||
80 | qreal scale() const; | ||||
81 | | ||||
82 | /* | ||||
83 | * The geometry of this output in global compositor co-ordinates (i.e scaled) | ||||
84 | */ | ||||
80 | QRect geometry() const; | 85 | QRect geometry() const; | ||
86 | | ||||
81 | QString name() const; | 87 | QString name() const; | ||
82 | int currentRefreshRate() const; | 88 | int currentRefreshRate() const; | ||
83 | // These values are defined by the kernel | 89 | // These values are defined by the kernel | ||
84 | enum class DpmsMode { | 90 | enum class DpmsMode { | ||
85 | On = DRM_MODE_DPMS_ON, | 91 | On = DRM_MODE_DPMS_ON, | ||
86 | Standby = DRM_MODE_DPMS_STANDBY, | 92 | Standby = DRM_MODE_DPMS_STANDBY, | ||
87 | Suspend = DRM_MODE_DPMS_SUSPEND, | 93 | Suspend = DRM_MODE_DPMS_SUSPEND, | ||
88 | Off = DRM_MODE_DPMS_OFF | 94 | Off = DRM_MODE_DPMS_OFF | ||
Show All 17 Lines | 108 | private: | |||
106 | bool presentAtomically(DrmBuffer *buffer); | 112 | bool presentAtomically(DrmBuffer *buffer); | ||
107 | bool presentLegacy(DrmBuffer *buffer); | 113 | bool presentLegacy(DrmBuffer *buffer); | ||
108 | bool setModeLegacy(DrmBuffer *buffer); | 114 | bool setModeLegacy(DrmBuffer *buffer); | ||
109 | void initEdid(drmModeConnector *connector); | 115 | void initEdid(drmModeConnector *connector); | ||
110 | void initDpms(drmModeConnector *connector); | 116 | void initDpms(drmModeConnector *connector); | ||
111 | bool isCurrentMode(const drmModeModeInfo *mode) const; | 117 | bool isCurrentMode(const drmModeModeInfo *mode) const; | ||
112 | void initUuid(); | 118 | void initUuid(); | ||
113 | void setGlobalPos(const QPoint &pos); | 119 | void setGlobalPos(const QPoint &pos); | ||
120 | void setScale(qreal scale); | ||||
114 | 121 | | |||
115 | void pageFlippedBufferRemover(DrmBuffer *oldbuffer, DrmBuffer *newbuffer); | 122 | void pageFlippedBufferRemover(DrmBuffer *oldbuffer, DrmBuffer *newbuffer); | ||
116 | bool initPrimaryPlane(); | 123 | bool initPrimaryPlane(); | ||
117 | bool initCursorPlane(); | 124 | bool initCursorPlane(); | ||
118 | DrmObject::AtomicReturn atomicReqModesetPopulate(drmModeAtomicReq *req, bool enable); | 125 | DrmObject::AtomicReturn atomicReqModesetPopulate(drmModeAtomicReq *req, bool enable); | ||
119 | 126 | | |||
120 | DrmBackend *m_backend; | 127 | DrmBackend *m_backend; | ||
121 | QPoint m_globalPos; | 128 | QPoint m_globalPos; | ||
129 | qreal m_scale = 1; | ||||
122 | quint32 m_crtcId = 0; | 130 | quint32 m_crtcId = 0; | ||
123 | quint32 m_connector = 0; | 131 | quint32 m_connector = 0; | ||
124 | quint32 m_lastStride = 0; | 132 | quint32 m_lastStride = 0; | ||
125 | bool m_lastGbm = false; | 133 | bool m_lastGbm = false; | ||
126 | drmModeModeInfo m_mode; | 134 | drmModeModeInfo m_mode; | ||
127 | DrmBuffer *m_currentBuffer = nullptr; | 135 | DrmBuffer *m_currentBuffer = nullptr; | ||
128 | DrmBuffer *m_nextBuffer = nullptr; | 136 | DrmBuffer *m_nextBuffer = nullptr; | ||
129 | DrmBuffer *m_blackBuffer = nullptr; | 137 | DrmBuffer *m_blackBuffer = nullptr; | ||
Show All 28 Lines |