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