Skip to content
Commit de2c4cb4 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

[wayland] Add support for cropped and scaled surfaces

The wp_viewporter compositor extension allows clients to crop and scale
their surfaces. It can be especially useful for applications wishing to
reduce their power consumption, e.g. video players, etc.

Given that there is no any direct relationship between the surface size
and the buffer size anymore, we have to use specialized helper methods
for converting coordinates from the surface-local space to buffer pixel
space and vice versa.
parent 9e797cf9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment