summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wayland/hardwareintegration/qwaylandserverbufferintegrationplugin.cpp
diff options
context:
space:
mode:
authorMorten Johan Sorvig <morten.sorvig@digia.com>2013-08-23 09:21:26 +0200
committerMorten Johan Sørvig <morten.sorvig@digia.com>2014-12-17 13:46:27 +0100
commit7b722dcd0711f32a5f08acf76bfb58f62c67a279 (patch)
treef907eeebc269e605f2352b96b89993aa5ea0e8d4 /src/plugins/platforms/wayland/hardwareintegration/qwaylandserverbufferintegrationplugin.cpp
parenta40ad12ef2a9e20b91effddf467ed373199c1616 (diff)
Implement high-dpi support
Wayland 1.2 added support for display scaling, where wl_output has a "scale" event informing the the client that the compositor will scale the output surfaces by the given factor. The client then has the option of providing large surfaces to match the target pixel densety and bypass the compositor's scaling. This is done by calling wl_surface::set_buffer_scale. Re-use the current high-dpi support in Qt by implementing devicePixelRatio() for QWaylandScreen and QWaylandWindow. Provide high resolution buffers both for raster and OpenGL graphics. Introduce a new coordinate system: buffer coordinates, which is related to the window coordinate system via an "int scale" scale factor. This scale factor corresponds to Qts qreal devicePixelRatio, but we keep the name and the type in the QtWayland implementation. Change-Id: Ie10d7e5b4833480a9a25d96a26ad02150eb6e83f Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
Diffstat (limited to 'src/plugins/platforms/wayland/hardwareintegration/qwaylandserverbufferintegrationplugin.cpp')
0 files changed, 0 insertions, 0 deletions