Skip to content
  • Vlad Zahorodnii's avatar
    [wayland] Add support for cropped and scaled surfaces · de2c4cb4
    Vlad Zahorodnii authored
    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.
    de2c4cb4