summaryrefslogtreecommitdiffstats
path: root/src/compositor/wayland_wrapper/wloutput.h
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2012-05-04 16:31:52 +0200
committerSamuel Rødal <samuel.rodal@nokia.com>2012-05-09 14:32:00 +0200
commite14b1548b7d1211201b138bc077353cdbc0d0bed (patch)
tree7b7d56cc22789967089f20ffcbe75818d2a67a74 /src/compositor/wayland_wrapper/wloutput.h
parent7f71672e27a2cbb7fb19333b77d7b3e4d4a068b9 (diff)
Implemented refresh rate support.
Implements QWaylandScreen::refreshRate() based on the wl_output mode information we get from the compositor. In the compositor, adds API to override the refresh rate, with the default set to whatever QScreen reports on the compositor-side. Change-Id: I5f5175f2498940875c6ec68d29d25cf5993a1e65 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper/wloutput.h')
-rw-r--r--src/compositor/wayland_wrapper/wloutput.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compositor/wayland_wrapper/wloutput.h b/src/compositor/wayland_wrapper/wloutput.h
index df7534f10..0a28b02e4 100644
--- a/src/compositor/wayland_wrapper/wloutput.h
+++ b/src/compositor/wayland_wrapper/wloutput.h
@@ -64,12 +64,16 @@ public:
int y() const { return m_geometry.y(); }
QSize size() const { return m_geometry.size(); }
+ void setRefreshRate(int rate);
+ int refreshRate() const { return m_refreshRate; }
+
Output *outputForClient(struct wl_client *client) const;
static void output_bind_func(struct wl_client *client, void *data,
uint32_t version, uint32_t id);
private:
QRect m_geometry;
+ int m_refreshRate;
int m_displayId;
int m_numQueued;
QList<Output *> m_outputs;