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>
This commit is contained in:
Samuel Rødal 2012-05-04 16:31:52 +02:00
parent 837edd2e78
commit 5e002bc961

View File

@ -64,7 +64,8 @@ void Compositor::sendOutputGeometry(wl_resource *resource)
void Compositor::sendOutputMode(wl_resource *resource)
{
wl_output_send_mode(resource, WL_OUTPUT_MODE_CURRENT | WL_OUTPUT_MODE_PREFERRED, 640, 480, 60);
const QRect &r = m_outputGeometry;
wl_output_send_mode(resource, WL_OUTPUT_MODE_CURRENT | WL_OUTPUT_MODE_PREFERRED, r.width(), r.height(), 60);
}
void Compositor::setOutputGeometry(void *c, const QList<QVariant> &parameters)