Mir
Public Member Functions | List of all members
WaylandShm Class Reference

#include <wayland_shm.h>

Public Member Functions

 WaylandShm (wl_shm *shm)
 Does not take ownership of the wl_shm. More...
 
auto get_buffer (mir::geometry::Size size, mir::geometry::Stride stride) -> WaylandShmBuffer *
 The returned buffer is automatically released as long as it is sent to the compositor. More...
 

Constructor & Destructor Documentation

◆ WaylandShm()

WaylandShm::WaylandShm ( wl_shm *  shm)

Does not take ownership of the wl_shm.

Member Function Documentation

◆ get_buffer()

auto WaylandShm::get_buffer ( mir::geometry::Size  size,
mir::geometry::Stride  stride 
) -> WaylandShmBuffer*

The returned buffer is automatically released as long as it is sent to the compositor.


The documentation for this class was generated from the following files:

Copyright © 2012-2021 Canonical Ltd.
Generated on Wed Mar 31 08:25:47 UTC 2021
This documentation is licensed under the GPL version 2 or 3.